Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthOption ¶
type CreateTokenAPI ¶
type CreateTokenAPI struct { Path string Method string Header map[string]string Request CreateTokenRequest Response CreateTokenResponse }
type CreateTokenRequest ¶
type CreateTokenRequest struct { Auth struct { Identity struct { Methods []string `json:"methods"` Password struct { User struct { Name string `json:"name"` Domain struct { ID string `json:"id"` } `json:"domain"` Password string `json:"password"` } `json:"user"` } `json:"password"` } `json:"identity"` Scope struct { Project struct { Name string `json:"name"` Domain struct { ID string `json:"id"` } `json:"domain"` } `json:"project"` } `json:"scope"` } `json:"auth"` }
type CreateTokenResponse ¶
type CreateTokenResponse struct { Token struct { Methods []string `json:"methods"` User struct { Domain struct { ID string `json:"id"` Name string `json:"name"` } `json:"domain"` ID string `json:"id"` Name string `json:"name"` PasswordExpiresAt interface{} `json:"password_expires_at"` } `json:"user"` AuditIds []string `json:"audit_ids"` ExpiresAt time.Time `json:"expires_at"` IssuedAt time.Time `json:"issued_at"` Project struct { Domain struct { ID string `json:"id"` Name string `json:"name"` } `json:"domain"` ID string `json:"id"` Name string `json:"name"` } `json:"project"` IsDomain bool `json:"is_domain"` Roles []struct { ID string `json:"id"` Name string `json:"name"` } `json:"roles"` Catalog []Catalog } }
type ProviderClient ¶
type ProviderClient struct { Token string UserID string UserName string ProjectID string ProjectName string Catalog []Catalog TlsCfg *tls.Config // contains filtered or unexported fields }
func AuthenticatedClient ¶
func AuthenticatedClient(options AuthOption) (*ProviderClient, error)
Click to show internal directories.
Click to hide internal directories.