Documentation ¶
Index ¶
- type Client
- func (c *Client) DeleteKnot(ip, port string) error
- func (c *Client) DeletePubkey(pubkey string) error
- func (c *Client) DeleteWing(name string) error
- func (c *Client) GetAllKnots(knots *[]Knot) error
- func (c *Client) GetAllPubkeys(pubkeys *[]Pubkey) error
- func (c *Client) GetAllWings(wings *[]Wing) error
- func (c *Client) GetKnot(ip, port string) (Knot, error)
- func (c *Client) GetPubkey(pubkey string) (Pubkey, error)
- func (c *Client) GetWing(name string) (Wing, error)
- func (c *Client) InitDB()
- func (c *Client) PutKnot(knot Knot) error
- func (c *Client) PutPubkey(pubkey Pubkey) error
- type KVPair
- type Knot
- type Pubkey
- type Wing
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds the etcd connection
func (*Client) DeleteKnot ¶
DeleteKnot removes a knot and also keys from wings:
func (*Client) DeletePubkey ¶
DeletePubkey receives a string and deletes public key by prefix it also deletes the public key from the wings
func (*Client) DeleteWing ¶
func (*Client) GetAllKnots ¶
GetAllKnots always returns all knots, or error
func (*Client) GetAllPubkeys ¶
GetAllPubkeys receives a pointer to a slice and fills it up with all public keys
func (*Client) GetAllWings ¶
func (*Client) GetKnot ¶
GetKnot returns all keys belonging to a knot in the database keys will always start with "knot:"
type KVPair ¶
type KVPair struct {
// contains filtered or unexported fields
}
KVPair can be used to send data at etcd
Click to show internal directories.
Click to hide internal directories.