linode

package
v0.3.15 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientAndAccount

func ClientAndAccount(token string) wisshes.Step

func ClientFromToken

func ClientFromToken(ctx context.Context, token string) (*linodego.Client, *linodego.Account, error)

func CtxLinodeAccount

func CtxLinodeAccount(ctx context.Context) *linodego.Account

func CtxLinodeClient

func CtxLinodeClient(ctx context.Context) *linodego.Client

func CtxLinodeInstanceTypes

func CtxLinodeInstanceTypes(ctx context.Context) []linodego.LinodeType

func CtxLinodeInstances

func CtxLinodeInstances(ctx context.Context) []linodego.Instance

func CtxLinodeRegion

func CtxLinodeRegion(ctx context.Context) []linodego.Region

func CtxWithLinodeAccount

func CtxWithLinodeAccount(ctx context.Context, account *linodego.Account) context.Context

func CtxWithLinodeClient

func CtxWithLinodeClient(ctx context.Context, client *linodego.Client) context.Context

func CtxWithLinodeInstanceTypes

func CtxWithLinodeInstanceTypes(ctx context.Context, instanceTypes []linodego.LinodeType) context.Context

func CtxWithLinodeInstances

func CtxWithLinodeInstances(ctx context.Context, instances []linodego.Instance) context.Context

func CtxWithLinodeRegion

func CtxWithLinodeRegion(ctx context.Context, regions []linodego.Region) context.Context

func CurrentInstances

func CurrentInstances(includes ...linodego.InstanceStatus) wisshes.Step

func DesiredInstances

func DesiredInstances(args DesiredInstancesArgs, spinupSteps ...wisshes.Step) wisshes.Step

func ForEachInstance

func ForEachInstance(
	rootPassword string,
	cb func(ctx context.Context, instance linodego.Instance) ([]wisshes.Step, error),
) wisshes.Step

func InstanceToIP4

func InstanceToIP4(instance linodego.Instance) string

func InstanceTypes

func InstanceTypes() wisshes.Step

func Regions

func Regions() wisshes.Step

func RemoveAllInstances

func RemoveAllInstances(prefix string) wisshes.Step

Types

type DesiredInstancesArgs

type DesiredInstancesArgs struct {
	RootPassword            string
	LabelPrefix             string
	InstancesPerRegionCount int
	CountrySelection        PingMode
	RegionCount             int
	RegionSelection         PingMode
	TargetMonthlyBudget     float32
}

type PingMode

type PingMode string
const (
	PingModeShortest    PingMode = "shortest"
	PingModeDistributed PingMode = "distributed"
)

Jump to

Keyboard shortcuts

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