Documentation ¶
Index ¶
- type Client
- func (c *Client) Cloud(tag names.CloudTag) (jujucloud.Cloud, error)
- func (c *Client) Clouds() (map[names.CloudTag]jujucloud.Cloud, error)
- func (c *Client) Credentials(tags ...names.CloudCredentialTag) ([]params.CloudCredentialResult, error)
- func (c *Client) DefaultCloud() (names.CloudTag, error)
- func (c *Client) RevokeCredential(tag names.CloudCredentialTag) error
- func (c *Client) UpdateCredential(tag names.CloudCredentialTag, credential jujucloud.Credential) error
- func (c *Client) UserCredentials(user names.UserTag, cloud names.CloudTag) ([]names.CloudCredentialTag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { base.ClientFacade // contains filtered or unexported fields }
Client provides methods that the Juju client command uses to interact with models stored in the Juju Server.
func NewClient ¶
func NewClient(st base.APICallCloser) *Client
NewClient creates a new `Client` based on an existing authenticated API connection.
func (*Client) Credentials ¶
func (c *Client) Credentials(tags ...names.CloudCredentialTag) ([]params.CloudCredentialResult, error)
Credentials return a slice of credential values for the specified tags. Secrets are excluded from the credential attributes.
func (*Client) DefaultCloud ¶
DefaultCloud returns the tag of the cloud that models will be created in by default.
func (*Client) RevokeCredential ¶
RevokeCredential revokes/deletes a cloud credential.
func (*Client) UpdateCredential ¶
func (c *Client) UpdateCredential(tag names.CloudCredentialTag, credential jujucloud.Credential) error
UpdateCredential updates a cloud credentials.
func (*Client) UserCredentials ¶
func (c *Client) UserCredentials(user names.UserTag, cloud names.CloudTag) ([]names.CloudCredentialTag, error)
UserCredentials returns the tags for cloud credentials available to a user for use with a specific cloud.
Click to show internal directories.
Click to hide internal directories.