v3

package
v0.0.0-...-f4df827 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(client api.Interface, k8sClient k8s.Interface, tm auth.TokenManager, svcs *rest.ServiceList, prefix string) rest.Service

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 AuthReq

type AuthReq struct {
	Auth AuthInfo `json:"auth"`
}

type DomainCreateReq

type DomainCreateReq struct {
	Domain DomainInfo `json:"domain"`
}

type DomainInfo

type DomainInfo struct {
	ID          string        `json:"id"`
	Name        string        `json:"name"`
	Description string        `json:"description"`
	Enabled     bool          `json:"enabled"`
	Links       rest.LinkInfo `json:"links"`
}

type DomainInfoRef

type DomainInfoRef struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type DomainListRes

type DomainListRes struct {
	Domains []DomainInfo `json:"domains"`
}

type DomainShowRes

type DomainShowRes struct {
	Domain DomainInfo `json:"domain"`
}

type DomainUpdateInfo

type DomainUpdateInfo struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
	Enabled     *bool   `json:"enabled"`
}

type DomainUpdateReq

type DomainUpdateReq struct {
	Domain DomainUpdateInfo `json:"domain"`
}

type GroupCreateReq

type GroupCreateReq struct {
	Group GroupInfo `json:"group"`
}

type GroupInfo

type GroupInfo struct {
	ID          string   `json:"id"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	DomainID    string   `json:"domain_id"`
	Links       LinkInfo `json:"links"`
}

type GroupListRes

type GroupListRes struct {
	Groups []GroupInfo `json:"groups"`
}

type GroupShowRes

type GroupShowRes struct {
	Group GroupInfo `json:"group"`
}

type GroupUpdateInfo

type GroupUpdateInfo struct {
	ID          string  `json:"id"`
	Name        *string `json:"name"`
	Description *string `json:"description"`
}

type GroupUpdateReq

type GroupUpdateReq struct {
	Group GroupUpdateInfo `json:"group"`
}

type GroupUserListRes

type GroupUserListRes struct {
	Users []UserInfo `json:"users"`
}

type LinkInfo

type LinkInfo struct {
	Self string `json:"self"`
}

type ProjectCreateReq

type ProjectCreateReq struct {
	Project ProjectInfo `json:"project"`
}

type ProjectInfo

type ProjectInfo struct {
	ID          string        `json:"id"`
	Name        string        `json:"name"`
	Description string        `json:"description"`
	Enabled     bool          `json:"enabled"`
	IsDomain    bool          `json:"is_domain"`
	ParentID    string        `json:"parent_id"`
	DomainID    string        `json:"domain_id"`
	Links       rest.LinkInfo `json:"links"`
}

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 ProjectUpdateInfo struct {
	Name        *string `json:"name"`
	Description *string `json:"description"`
	Enabled     *bool   `json:"enabled"`
}

type ProjectUpdateReq

type ProjectUpdateReq struct {
	Project ProjectUpdateInfo `json:"project"`
}

type RoleInfo

type RoleInfo struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

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 TokenInfoEndpoint struct {
	ID        string `json:"id"`
	Region    string `json:"region"`
	RegionID  string `json:"region_id"`
	URL       string `json:"url"`
	Interface string `json:"interface"`
}

type TokenRes

type TokenRes struct {
	Token TokenInfo `json:"token"`
}

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 UserUpdateInfo struct {
	Name             *string `json:"name"`
	Enabled          *bool   `json:"enabled"`
	DomainID         *string `json:"domain_id"`
	DefaultProjectID *string `json:"default_project_id"`
	Password         *string `json:"password"`
	Description      *string `json:"description"`
	EMail            *string `json:"email"`
}

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 struct {
	HRef string `json:"href"`
	Rel  string `json:"rel"`
}

type VersionInfoMediaType

type VersionInfoMediaType struct {
	Base string `json:"base"`
	Type string `json:"type"`
}

type VersionReq

type VersionReq struct {
	Version VersionInfo `json:"version"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL