utils

package
v0.0.0-...-e0af2a1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientset

func GetClientset(kubeconfig string, overrides *clientcmd.ConfigOverrides) (clientset.Interface, error)

Types

type DetailsResult

type DetailsResult interface {
	IsMixedInstanceTypes() bool
	GetInstanceTypes() []string
	GetRegion() string
}

type InstanceDetails

type InstanceDetails struct {
	InstanceType     string
	AvailabilityZone string
	IsSpot           bool
}

func (*InstanceDetails) FromString

func (i *InstanceDetails) FromString(s string)

func (InstanceDetails) GetInstanceTypes

func (i InstanceDetails) GetInstanceTypes() []string

func (InstanceDetails) GetRegion

func (i InstanceDetails) GetRegion() string

func (InstanceDetails) IsMixedInstanceTypes

func (i InstanceDetails) IsMixedInstanceTypes() bool

func (InstanceDetails) String

func (i InstanceDetails) String() string

type MixedInstanceTypesDetails

type MixedInstanceTypesDetails struct {
	InstanceDetails
	InstanceTypes []string
}

func (MixedInstanceTypesDetails) GetInstanceTypes

func (m MixedInstanceTypesDetails) GetInstanceTypes() []string

func (MixedInstanceTypesDetails) IsMixedInstanceTypes

func (m MixedInstanceTypesDetails) IsMixedInstanceTypes() bool

Jump to

Keyboard shortcuts

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