model

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 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 AkSk

type AkSk struct {

	// ProjectId or TenantId is the tenant that the user belongs to.
	ProjectId string `json:"project_id,omitempty"`

	// The id of the user for whom the AkSk is being generated.
	UserId string `json:"user_id,omitempty"`

	// The json containing the accesskey and secretkey
	Blob string `json:"blob,omitempty"`

	//The type of backend ??
	Type string `json:"type,omitempty"`
}

type AkSkBlob

type AkSkBlob struct {
	Blob string `json:"aksk,omitempty"`
}

type AkSkListOut

type AkSkListOut struct {
	Credentials []struct {
		UserID string `json:"user_id"`
		Links  struct {
			Self string `json:"self"`
		} `json:"links"`
		Blob      string `json:"blob"`
		ProjectID string `json:"project_id"`
		Type      string `json:"type"`
		ID        string `json:"id"`
	} `json:"credentials"`
	Links struct {
		Self     string      `json:"self"`
		Previous interface{} `json:"previous"`
		Next     interface{} `json:"next"`
	} `json:"links"`
}

type AkSkOut

type AkSkOut struct {
	Credential struct {
		UserID string `json:"user_id"`
		Links  struct {
			Self string `json:"self"`
		} `json:"links"`
		Blob      string `json:"blob"`
		ProjectID string `json:"project_id"`
		Type      string `json:"type"`
		ID        string `json:"id"`
	} `json:"credential"`
}

type Blob

type Blob struct {
	Access string `json:"access"`
	Secret string `json:"secret"`
}

type CredBlob added in v1.3.3

type CredBlob struct {
	UserID    string `json:"user_id"`
	Blob      Blob   `json:"blob"`
	ProjectID string `json:"project_id"`
	Type      string `json:"type"`
	ID        string `json:"id"`
}

type CredBody

type CredBody struct {
	ProjectId string `json:"project_id"`
	UserId    string `json:"user_id"`
	Blob      string `json:"blob"`
	Type      string `json:"type"`
}

type Credential

type Credential struct {
	Credential CredBody `json:"credential"`
}

type Credentials added in v1.3.3

type Credentials []struct {
	UserID    string `json:"user_id"`
	Blob      Blob   `json:"blob"`
	ProjectID string `json:"project_id"`
	Type      string `json:"type"`
	ID        string `json:"id"`
}

type GetAkSk

type GetAkSk struct {
	Credentials GetAkSkBody `json:"credentials,omitempty"`
}

type GetAkSkBody

type GetAkSkBody struct {
	// ProjectId or TenantId is the tenant that the user belongs to.
	ProjectId string `json:"project_id,omitempty"`

	// The id of the user for whom the AkSk is being generated.
	UserId string `json:"user_id,omitempty"`

	// The json containing the accesskey and secretkey
	Blob string `json:"blob,omitempty"`

	//The type of backend
	Type string `json:"type,omitempty"`

	Links string `json:"links,omitempty"`
}

Jump to

Keyboard shortcuts

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