model

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential interface{}

type DomainScope

type DomainScope struct {
	Scope  `json:",omitempty,inline"`
	Domain domain `json:"domain"`
}

func NewDomainScope

func NewDomainScope(id *string, name *string) *DomainScope

type ExplicitUnScoped

type ExplicitUnScoped = string

type IDOrName

type IDOrName struct {
	ID   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

type PasswordCredential

type PasswordCredential struct {
	Credential `json:",omitempty,inline"`
	User       user `json:"user"`
}

func NewPasswordCredential

func NewPasswordCredential(
	userID *string, userName *string, password string,
	domainID *string, domainName *string,
) *PasswordCredential

NewPasswordCredential creates a password credential.

func NewPasswordCredentialByEmail added in v0.2.19

func NewPasswordCredentialByEmail(
	email string, password string,
	domainID *string, domainName *string,
) *PasswordCredential

NewPasswordCredentialByEmail creates a password credential by email. This feature is supported by easystack cloud only.

type ProjectScope

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

func NewProjectScope

func NewProjectScope(
	projectID *string, ProjectName *string,
	domainID *string, domainName *string,
) *ProjectScope

type Scope

type Scope interface{}

type ServiceProviderScope added in v0.2.23

type ServiceProviderScope struct {
	Scope           `json:",omitempty,inline"`
	ServiceProvider serviceProvider `json:"service_provider"`
}

func NewServiceProviderScope added in v0.2.23

func NewServiceProviderScope(id *string, name *string) *ServiceProviderScope

type SystemScope

type SystemScope struct {
	Scope  `json:",omitempty,inline"`
	System system `json:"system"`
}

func NewSystemScope

func NewSystemScope() *SystemScope

type TokenCredential

type TokenCredential struct {
	Credential `json:",omitempty,inline"`
	ID         string `json:"id"`
}

func NewTokenCredential

func NewTokenCredential(id string) *TokenCredential

type TokenRequestData

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

Jump to

Keyboard shortcuts

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