client

package
v0.0.0-...-7eb8b13 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2021 License: NCSA Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientOptions

type ClientOptions struct {
	Certificate      string
	SkipVerification bool
	ClientID         string
	ClientSecret     string
}

type Decoded

type Decoded struct {
	KeyRing   *api.KeyRing
	Key       *api.Key
	Keys      []*api.Key
	Composite *api.CompositeKey
}

func DecodeResponse

func DecodeResponse(encoded *encoding.Encoded) *Decoded

type HTTPNamespace

type HTTPNamespace struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewHTTPNamespace

func NewHTTPNamespace(opts *types.Options, cl *http.Client) (*HTTPNamespace, error)

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 (c *HTTPNamespace) CreateKeyRing(name string, ttl int) (*api.KeyRing, error)

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) Keys

func (c *HTTPNamespace) Keys(keyring string) (map[string]*api.Key, error)

func (*HTTPNamespace) RemoveKey

func (c *HTTPNamespace) RemoveKey(keyring, key string) error

func (*HTTPNamespace) RotateKeyRing

func (c *HTTPNamespace) RotateKeyRing(keyring string, keys map[string]*api.Key) error

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

type ResponseMeta struct {
	Expires *time.Time
}

ResponseMeta contains metadata returned from a given response, such as the key's expiration time.

Jump to

Keyboard shortcuts

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