Documentation ¶
Index ¶
- type Client
- func (c *Client) Access(ctx context.Context, p *params.AccessRequest) (*params.AccessResponse, error)
- func (c *Client) FindRootKey(ctx context.Context, p *params.FindRootKeyRequest) (*params.FindRootKeyResponse, error)
- func (c *Client) Get(ctx context.Context, id []byte) ([]byte, error)
- func (c *Client) Login(ctx context.Context, password string) (*bakery.Macaroon, error)
- func (c *Client) NewRootKey(ctx context.Context, p *params.NewRootKeyRequest) (*params.NewRootKeyResponse, error)
- func (c *Client) RootKey(ctx context.Context) (rootKey, id []byte, err error)
- func (c *Client) SetPassword(ctx context.Context, p *params.SetPasswordRequest) error
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
}
func New ¶
New returns a new client that uses the given token for access. If accessToken is nil, the only methods that may be called are Login and ChangePassword.
func (*Client) Access ¶
func (c *Client) Access(ctx context.Context, p *params.AccessRequest) (*params.AccessResponse, error)
func (*Client) FindRootKey ¶
func (c *Client) FindRootKey(ctx context.Context, p *params.FindRootKeyRequest) (*params.FindRootKeyResponse, error)
func (*Client) Get ¶
Get implemets bakery.RootKeyStore.Get by getting the key from the macaroond server.
func (*Client) NewRootKey ¶
func (c *Client) NewRootKey(ctx context.Context, p *params.NewRootKeyRequest) (*params.NewRootKeyResponse, error)
func (*Client) SetPassword ¶
func (c *Client) SetPassword(ctx context.Context, p *params.SetPasswordRequest) error
Click to show internal directories.
Click to hide internal directories.