Documentation
¶
Index ¶
- type ClientOptions
- type Decoded
- type HTTPNamespace
- func (c *HTTPNamespace) AddKey(keyring, name string, key *api.Key) error
- func (c *HTTPNamespace) AddKeyRing(keyring *api.KeyRing) error
- func (c *HTTPNamespace) CreateKeyRing(name string, ttl int) (*api.KeyRing, error)
- func (c *HTTPNamespace) DestroyKeyRing(keyring string) error
- func (c *HTTPNamespace) DestroyNamespace(namespace string) error
- func (c *HTTPNamespace) GetKey(keyring, key string) (*api.Key, error)
- func (c *HTTPNamespace) GetKeyRing(keyring string) (*api.KeyRing, error)
- func (c *HTTPNamespace) Init(namespace *api.Namespace) error
- func (c *HTTPNamespace) Keys(keyring string) (map[string]*api.Key, error)
- func (c *HTTPNamespace) RemoveKey(keyring, key string) error
- func (c *HTTPNamespace) RotateKeyRing(keyring string, keys map[string]*api.Key) error
- func (c *HTTPNamespace) UpdateKeyRing(keyring *api.KeyRing) error
- type InteractiveKeyReader
- type ResponseMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOptions ¶
type Decoded ¶
type Decoded struct { KeyRing *api.KeyRing Key *api.Key Keys []*api.Key Composite *api.CompositeKey }
func DecodeResponse ¶
type HTTPNamespace ¶
func NewHTTPNamespace ¶
func (*HTTPNamespace) AddKey ¶
func (c *HTTPNamespace) AddKey(keyring, name string, key *api.Key) error
func (*HTTPNamespace) AddKeyRing ¶
func (c *HTTPNamespace) AddKeyRing(keyring *api.KeyRing) error
func (*HTTPNamespace) CreateKeyRing ¶
func (*HTTPNamespace) DestroyKeyRing ¶
func (c *HTTPNamespace) DestroyKeyRing(keyring string) error
func (*HTTPNamespace) DestroyNamespace ¶
func (c *HTTPNamespace) DestroyNamespace(namespace string) error
func (*HTTPNamespace) GetKey ¶
func (c *HTTPNamespace) GetKey(keyring, key string) (*api.Key, error)
func (*HTTPNamespace) GetKeyRing ¶
func (c *HTTPNamespace) GetKeyRing(keyring string) (*api.KeyRing, error)
func (*HTTPNamespace) Init ¶
func (c *HTTPNamespace) Init(namespace *api.Namespace) error
Initialize this client with the given namespace, where appropriate.
This will also authenticate the client, if necessary.
func (*HTTPNamespace) RemoveKey ¶
func (c *HTTPNamespace) RemoveKey(keyring, key string) error
func (*HTTPNamespace) RotateKeyRing ¶
func (*HTTPNamespace) UpdateKeyRing ¶
func (c *HTTPNamespace) UpdateKeyRing(keyring *api.KeyRing) error
type InteractiveKeyReader ¶
type InteractiveKeyReader interface { }
InteractiveKeyReader defines a client type that returns keys that can be used interactively by consumers.
type ResponseMeta ¶
ResponseMeta contains metadata returned from a given response, such as the key's expiration time.
Click to show internal directories.
Click to hide internal directories.