linode

package
v0.0.0-...-ad3a29e Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	GetInstance(context.Context, int) (*linodego.Instance, error)
	UpdateInstance(context.Context, int, linodego.InstanceUpdateOptions) (*linodego.Instance, error)
	CreateInstance(context.Context, linodego.InstanceCreateOptions) (*linodego.Instance, error)
	DeleteInstance(context.Context, int) error
	ListInstances(context.Context, *linodego.ListOptions) ([]linodego.Instance, error)

	CreateLKECluster(context.Context, linodego.LKEClusterCreateOptions) (*linodego.LKECluster, error)
	ListLKEClusters(context.Context, *linodego.ListOptions) ([]linodego.LKECluster, error)
	ListLKEClusterPools(context.Context, int, *linodego.ListOptions) ([]linodego.LKEClusterPool, error)
	GetLKEClusterKubeconfig(context.Context, int) (*linodego.LKEClusterKubeconfig, error)
	UpdateLKECluster(context.Context, int, linodego.LKEClusterUpdateOptions) (*linodego.LKECluster, error)
	UpdateLKEClusterPool(context.Context, int, int, linodego.LKEClusterPoolUpdateOptions) (*linodego.LKEClusterPool, error)
	DeleteLKECluster(context.Context, int) error

	ListStackscripts(context.Context, *linodego.ListOptions) ([]linodego.Stackscript, error)
	DeleteStackscript(context.Context, int) error

	ListObjectStorageBuckets(context.Context, *linodego.ListOptions) ([]linodego.ObjectStorageBucket, error)
	DeleteObjectStorageBucket(context.Context, string, string) error
	CreateObjectStorageBucket(context.Context, linodego.ObjectStorageBucketCreateOptions) (*linodego.ObjectStorageBucket, error)
	CreateObjectStorageKey(context.Context, linodego.ObjectStorageKeyCreateOptions) (*linodego.ObjectStorageKey, error)
	DeleteObjectStorageKey(context.Context, int) error

	GetProfile(context.Context) (*linodego.Profile, error)
}

func NewClient

func NewClient(profile config.Profile) Client

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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