v1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAddress

type IPAddress struct {
	Identifier string `json:"identifier,omitempty"`
	Name       string `json:"name,omitempty"`
}

type Prefix

type Prefix struct {
	gs.GenericService
	gs.HasState

	Identifier string `json:"identifier,omitempty" anxcloud:"identifier"`
	Prefix     string `json:"prefix,omitempty"`
}

type StorageServerInterface

type StorageServerInterface struct {
	gs.GenericService
	gs.HasState

	Identifier string `json:"identifier,omitempty" anxcloud:"identifier"`
	Name       string `json:"name,omitempty"`

	IPAddress IPAddress       `json:"ip_address"`
	Location  corev1.Location `json:"location,omitempty"`
}

func (*StorageServerInterface) EndpointURL

func (s *StorageServerInterface) EndpointURL(ctx context.Context) (*url.URL, error)

func (*StorageServerInterface) GetIdentifier

func (s *StorageServerInterface) GetIdentifier(ctx context.Context) (string, error)

type Volume

type Volume struct {
	gs.GenericService
	gs.HasState

	Identifier string `json:"identifier,omitempty" anxcloud:"identifier"`
	Name       string `json:"name,omitempty"`

	StorageServerInterfaces *[]StorageServerInterface `json:"storage_server_interfaces,omitempty"`
	Prefixes                *[]Prefix                 `json:"prefixes,omitempty"`

	ADSClass string `json:"ads_class,omitempty"`
	Size     int64  `json:"size,omitempty"`
	Path     string `json:"path,omitempty"`
	Error    string `json:"error,omitempty"`
}

func (*Volume) EndpointURL

func (v *Volume) EndpointURL(ctx context.Context) (*url.URL, error)

func (*Volume) FilterAPIRequestBody

func (v *Volume) FilterAPIRequestBody(ctx context.Context) (interface{}, error)

func (*Volume) GetIdentifier

func (v *Volume) GetIdentifier(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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