model

package
v0.0.0-...-3de950c Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiVersion

type ApiVersion struct {
	Id         string `json:"id"`
	MinVersion string `json:"min_version"`
	Status     string `json:"status"`
	Updated    string `json:"updated"`
	Version    string `json:"version"`
}

func (*ApiVersion) VersoinInfo

func (v *ApiVersion) VersoinInfo() string

type ApiVersions

type ApiVersions []ApiVersion

func (ApiVersions) Current

func (client ApiVersions) Current() *ApiVersion

func (ApiVersions) Stable

func (client ApiVersions) Stable() *ApiVersion

type Auth

type Auth struct {
	Identity Identity `json:"identity,omitempty"`
	Scope    Scope    `json:"scope,omitempty"`
}

type AuthBody

type AuthBody struct {
	Auth Auth `json:"auth"`
}

type Catalog

type Catalog struct {
	Type      string     `json:"type"`
	Name      string     `json:"name"`
	Id        string     `json:"id"`
	Endpoints []Endpoint `json:"endpoints"`
}

type Domain

type Domain struct {
	Id   string `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type Endpoint

type Endpoint struct {
	Id        string `json:"id"`
	Region    string `json:"region"`
	Url       string `json:"url"`
	Interface string `json:"interface"`
	RegionId  string `json:"region_id"`
	ServiceId string `json:"service_id"`
}

type Identity

type Identity struct {
	Methods  []string `json:"methods,omitempty"`
	Password Password `json:"password,omitempty"`
}

type Password

type Password struct {
	User User `json:"user"`
}

type Project

type Project struct {
	Id          string   `json:"id,omitempty"`
	Name        string   `json:"name,omitempty"`
	Domain      Domain   `json:"domain,omitempty"`
	Description string   `json:"description,omitempty"`
	Enabled     bool     `json:"enabled,omitempty"`
	DomainId    string   `json:"domain_id,omitempty"`
	Tags        []string `json:"tags,omitempty"`
	IsDomain    bool     `json:"is_domain,omitempty"`
	ParentId    string   `json:"parent_id,omitempty"`
}

type RequestId

type RequestId struct {
	// contains filtered or unexported fields
}

func (RequestId) GetRequestId

func (r RequestId) GetRequestId() string

func (*RequestId) SetRequestId

func (r *RequestId) SetRequestId(requestId string)

type Resource

type Resource struct {
	Id          string `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
	Status      string `json:"status,omitempty"`
	CreatedAt   string `json:"created_at,omitempty"`
	UpdatedAt   string `json:"updated_at,omitempty"`
	Created     string `json:"created,omitempty"`
	Updated     string `json:"updated,omitempty"`
	ProjectId   string `json:"project_id,omitempty"`
	TenantId    string `json:"tenant_id,omitempty"`
	UserId      string `json:"user_id,omitempty"`
}

func (Resource) GetStructTags

func (resource Resource) GetStructTags() []string

func (Resource) IsActive

func (resource Resource) IsActive() bool

func (Resource) IsError

func (resource Resource) IsError() bool

func (Resource) NameOrId

func (resource Resource) NameOrId() string

type RespToken

type RespToken struct {
	Token Token `json:"token"`
}

type Role

type Role struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type Scope

type Scope struct {
	Project Project `json:"project,omitempty"`
}

type Token

type Token struct {
	IsDomain  bool      `json:"is_domain"`
	Methods   []string  `json:"methods"`
	ExpiresAt string    `json:"expires_at"`
	Catalogs  []Catalog `json:"catalog"`
	Roles     []Role    `json:"roles"`
	Project   Project
	User      User
	TokenId   string
}

type User

type User struct {
	Id          string   `json:"id,omitempty"`
	Name        string   `json:"name"`
	Password    string   `json:"password"`
	Project     string   `json:"project,omitempty"`
	Description string   `json:"description,omitempty"`
	Email       string   `json:"email,omitempty"`
	Enabled     bool     `json:"enabled,omitempty"`
	Domain      Domain   `json:"domain"`
	DomainId    string   `json:"domain_id,omitempty"`
	IsDomain    bool     `json:"is_domain,omitempty"`
	ParentId    bool     `json:"parent_id,omitempty"`
	Tags        []string `json:"tags,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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