objectstorage

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Credential

type Credential struct {
	ID        int             `json:"id"`
	Location  common.Location `json:"location"`
	Endpoint  string          `json:"endpoint"`
	AccessKey string          `json:"access_key"`
	SecretKey string          `json:"secret_key"`
}

type CredentialList

type CredentialList struct {
	Items      []Credential
	Pagination goclient.Pagination
}

type CredentialService

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

func NewCredentialService

func NewCredentialService(client goclient.Client) CredentialService

func (CredentialService) List

func (i CredentialService) List(ctx context.Context, cursor goclient.Cursor) (list CredentialList, err error)

type Instance

type Instance struct {
	ID       int             `json:"id"`
	Name     string          `json:"name"`
	Location common.Location `json:"location"`
}

type InstanceCreate

type InstanceCreate struct {
	LocationID int `json:"location_id"`
}

type InstanceList

type InstanceList struct {
	Items      []Instance
	Pagination goclient.Pagination
}

type InstanceService

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

func NewInstanceService

func NewInstanceService(client goclient.Client) InstanceService

func (InstanceService) Create

func (i InstanceService) Create(ctx context.Context, body InstanceCreate) (instance Instance, err error)

func (InstanceService) Delete

func (i InstanceService) Delete(ctx context.Context, id int) (err error)

func (InstanceService) List

func (i InstanceService) List(ctx context.Context, cursor goclient.Cursor) (list InstanceList, err error)

Jump to

Keyboard shortcuts

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