Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOpts ¶
type CreateOpts struct { UserID string `json:"user_id" required:"true"` Description string `json:"description,omitempty"` }
func (CreateOpts) ToCredentialCreateMap ¶
func (opts CreateOpts) ToCredentialCreateMap() (map[string]interface{}, error)
type CreateOptsBuilder ¶
type CreateResult ¶
type CreateResult struct {
// contains filtered or unexported fields
}
CreateResult is the response of a Create operations. Call its Extract method to interpret it as a Credential.
func Create ¶
func Create(client *golangsdk.ServiceClient, opts CreateOptsBuilder) (r CreateResult)
func Update ¶
func Update(client *golangsdk.ServiceClient, credentialID string, opts UpdateOptsBuilder) (r CreateResult)
func (CreateResult) Extract ¶
func (r CreateResult) Extract() (*Credential, error)
Extract provides access to the Credential returned by the Get and Create functions.
type Credential ¶
type Credential struct { // IAM user ID UserID string `json:"user_id"` // Description of the access key Description string `json:"description"` // AK AccessKey string `json:"access"` // SK, returned only during creation SecretKey string `json:"secret,omitempty"` // Status of the access key, active/inactive Status string `json:"status"` // Time when the access key was created CreateTime string `json:"create_time"` // Time when the access key was last used LastUseTime string `json:"last_use_time,omitempty"` }
type DeleteResult ¶
DeleteResult is the response from a Delete operation. Call its ExtractErr to determine if the request succeeded or failed.
func Delete ¶
func Delete(client *golangsdk.ServiceClient, credentialID string) (r DeleteResult)
type GetResult ¶
type GetResult struct {
// contains filtered or unexported fields
}
GetResult is the response of a Get operations. Call its Extract method to interpret it as a Credential.
func (GetResult) Extract ¶
func (r GetResult) Extract() (*Credential, error)
Extract provides access to the Credential returned by the Get and Create functions.
type ListOpts ¶
type ListOpts struct {
UserID string `json:"user_id,omitempty"`
}
func (ListOpts) ToCredentialListQuery ¶
type ListOptsBuilder ¶
type ListResult ¶
func List ¶
func List(client *golangsdk.ServiceClient, opts ListOptsBuilder) (l ListResult)
func (ListResult) Extract ¶
func (lr ListResult) Extract() ([]Credential, error)
type UpdateOpts ¶
type UpdateOpts struct { Status string `json:"status,omitempty"` Description string `json:"description,omitempty"` }
func (UpdateOpts) ToCredentialUpdateMap ¶
func (opts UpdateOpts) ToCredentialUpdateMap() (map[string]interface{}, error)
type UpdateOptsBuilder ¶
type UpdateResult ¶
type UpdateResult struct {
// contains filtered or unexported fields
}
UpdateResult is the response from an Update operation. Call its Extract method to interpret it as a Credential.
func (UpdateResult) Extract ¶
func (r UpdateResult) Extract() (*Credential, error)
Extract provides access to the Credential returned by the Get and Create functions.