etcd

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.0.2

type Client clientv3.Client

func New added in v0.0.2

func New(conf config.Config) (*Client, error)

func (Client) List added in v0.0.2

func (c Client) List(ctx context.Context, prefix string) ([]KeyValue, error)

type CoreDnsRecord added in v0.0.2

type CoreDnsRecord struct {
	Host        string `json:"host,omitempty"`
	TTL         int64  `json:"ttl,omitempty" default:"60"`
	TargetStrip int    `json:"targetstrip,omitempty"`
}

func MarshalRecord added in v0.0.2

func MarshalRecord(b []byte) (*CoreDnsRecord, error)

type KeyValue added in v0.0.2

type KeyValue struct {
	Key   []byte
	Value []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL