Documentation ¶
Index ¶
- func NewService(client api.Interface, k8sClient k8s.Interface, tm auth.TokenManager, ...) rest.Service
- type AuthInfo
- type AuthInfoIdentity
- type AuthInfoPassword
- type AuthInfoScope
- type AuthInfoToken
- type AuthReq
- type DomainCreateReq
- type DomainInfo
- type DomainInfoRef
- type DomainListRes
- type DomainShowRes
- type DomainUpdateInfo
- type DomainUpdateReq
- type GroupCreateReq
- type GroupInfo
- type GroupListRes
- type GroupShowRes
- type GroupUpdateInfo
- type GroupUpdateReq
- type GroupUserListRes
- type LinkInfo
- type ProjectCreateReq
- type ProjectInfo
- type ProjectInfoRef
- type ProjectListRes
- type ProjectShowRes
- type ProjectUpdateInfo
- type ProjectUpdateReq
- type RoleInfo
- type TokenInfo
- type TokenInfoCatalog
- type TokenInfoEndpoint
- type TokenRes
- type UserCreateReq
- type UserInfo
- type UserInfoRef
- type UserListRes
- type UserShowRes
- type UserUpdateInfo
- type UserUpdateReq
- type VersionInfo
- type VersionInfoLink
- type VersionInfoMediaType
- type VersionReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
Types ¶
type AuthInfo ¶
type AuthInfo struct { Scope AuthInfoScope `json:"scope"` Identity AuthInfoIdentity `json:"identity"` }
type AuthInfoIdentity ¶
type AuthInfoIdentity struct { Methods []string `json:"methods"` Password AuthInfoPassword `json:"password"` Token AuthInfoToken `json:"token"` }
type AuthInfoPassword ¶
type AuthInfoPassword struct {
User UserInfoRef `json:"user"`
}
type AuthInfoScope ¶
type AuthInfoScope struct {
Project ProjectInfoRef `json:"project"`
}
type AuthInfoToken ¶
type AuthInfoToken struct {
ID string `json:"id"`
}
type DomainCreateReq ¶
type DomainCreateReq struct {
Domain DomainInfo `json:"domain"`
}
type DomainInfo ¶
type DomainInfoRef ¶
type DomainListRes ¶
type DomainListRes struct {
Domains []DomainInfo `json:"domains"`
}
type DomainShowRes ¶
type DomainShowRes struct {
Domain DomainInfo `json:"domain"`
}
type DomainUpdateInfo ¶
type DomainUpdateReq ¶
type DomainUpdateReq struct {
Domain DomainUpdateInfo `json:"domain"`
}
type GroupCreateReq ¶
type GroupCreateReq struct {
Group GroupInfo `json:"group"`
}
type GroupListRes ¶
type GroupListRes struct {
Groups []GroupInfo `json:"groups"`
}
type GroupShowRes ¶
type GroupShowRes struct {
Group GroupInfo `json:"group"`
}
type GroupUpdateInfo ¶
type GroupUpdateReq ¶
type GroupUpdateReq struct {
Group GroupUpdateInfo `json:"group"`
}
type GroupUserListRes ¶
type GroupUserListRes struct {
Users []UserInfo `json:"users"`
}
type ProjectCreateReq ¶
type ProjectCreateReq struct {
Project ProjectInfo `json:"project"`
}
type ProjectInfo ¶
type ProjectInfoRef ¶
type ProjectInfoRef struct { ID string `json:"id"` Name string `json:"name"` Domain DomainInfoRef `json:"domain"` }
type ProjectListRes ¶
type ProjectListRes struct {
Projects []ProjectInfo `json:"projects"`
}
type ProjectShowRes ¶
type ProjectShowRes struct {
Project ProjectInfo `json:"project"`
}
type ProjectUpdateInfo ¶
type ProjectUpdateReq ¶
type ProjectUpdateReq struct {
Project ProjectUpdateInfo `json:"project"`
}
type TokenInfo ¶
type TokenInfo struct { Methods []string `json:"methods"` Roles []RoleInfo `json:"roles"` ExpiresAt string `json:"expires_at"` IssuedAt string `json:"issued_at"` Project ProjectInfoRef `json:"project"` IsDomain bool `json:"is_domain"` Catalogs []TokenInfoCatalog `json:"catalog"` User UserInfoRef `json:"user"` AuditIDs []string `json:"audit_ids"` Extras map[string]string `json:"extras"` }
type TokenInfoCatalog ¶
type TokenInfoCatalog struct { ID string `json:"id"` Endpoints []TokenInfoEndpoint `json:"endpoints"` Type string `json:"type"` Name string `json:"name"` }
type TokenInfoEndpoint ¶
type UserCreateReq ¶
type UserCreateReq struct {
User UserInfo `json:"user"`
}
type UserInfo ¶
type UserInfo struct { ID string `json:"id"` Name string `json:"name"` Enabled bool `json:"enabled"` DomainID string `json:"domain_id"` Password string `json:"password,omitempty"` PasswordExpiresAt *string `json:"password_expires_at"` DefaultProjectID string `json:"default_project_id,omitempty"` Links rest.LinkInfo `json:"links"` Description string `json:"description,omitempty"` EMail string `json:"email,omitempty"` }
type UserInfoRef ¶
type UserInfoRef struct { ID string `json:"id"` Name string `json:"name"` Domain DomainInfoRef `json:"domain"` Password string `json:"password"` PasswordExpiresAt string `json:"password_expires_at"` }
type UserListRes ¶
type UserListRes struct {
Users []UserInfo `json:"users"`
}
type UserShowRes ¶
type UserShowRes struct {
User UserInfo `json:"user"`
}
type UserUpdateInfo ¶
type UserUpdateReq ¶
type UserUpdateReq struct {
User UserUpdateInfo `json:"user"`
}
type VersionInfo ¶
type VersionInfo struct { Status string `json:"status"` Updated string `json:"updated"` MediaTypes []VersionInfoMediaType `json:"media-types"` ID string `json:"id"` Links []VersionInfoLink `json:"links"` }
type VersionInfoLink ¶
type VersionInfoMediaType ¶
type VersionReq ¶
type VersionReq struct {
Version VersionInfo `json:"version"`
}
Click to show internal directories.
Click to hide internal directories.