lkecluster

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterByRefs

func FilterByRefs(clusters []linodego.LKECluster, refs resourceref.List) (r []linodego.LKECluster)

FilterByRefs filters for the referenced LKE Clusters.

Types

type FilterFlags

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

func (*FilterFlags) AddFlags

func (f *FilterFlags) AddFlags(c *cobra.Command)

AddFlags recieves a *cobra.Command reference and binds a flag for specifying a preset.

func (*FilterFlags) Filter

func (f *FilterFlags) Filter(label string) *linodego.Filter

type List

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

func NewList

func NewList(clusters []linodego.LKECluster) List

func (List) Items

func (l List) Items() []resource.Resource

func (List) Meta

func (l List) Meta() resource.Meta

type Meta

type Meta struct{}

func (Meta) DefaultColumns

func (Meta) DefaultColumns() []string

func (Meta) Name

func (Meta) Name() string

func (Meta) RequiredColumns

func (Meta) RequiredColumns() []string

type NodePoolSpec

type NodePoolSpec struct {
	ID         int                               `yaml:"id"`
	Count      int                               `yaml:"count"`
	Type       string                            `yaml:"type"`
	Disks      []linodego.LKEClusterPoolDisk     `yaml:"disks"`
	Linodes    []linodego.LKEClusterPoolLinode   `yaml:"nodes"`
	Tags       []string                          `yaml:"tag"`
	Autoscaler linodego.LKEClusterPoolAutoscaler `yaml:"autoscaler"`
}

func (*NodePoolSpec) Diff

type Resource

type Resource linodego.LKECluster

func (Resource) Properties

func (r Resource) Properties() resource.PropertyMap

type Spec

type Spec struct {
	ID           int                             `yaml:"id"`
	Created      *time.Time                      `yaml:"created"`
	Updated      *time.Time                      `yaml:"updated"`
	Region       string                          `yaml:"region"`
	K8sVersion   string                          `yaml:"k8s_version"`
	Status       linodego.LKEClusterStatus       `yaml:"status"`
	Tags         []string                        `yaml:"tags"`
	ControlPlane linodego.LKEClusterControlPlane `yaml:"control_plane"`
	NodePools    []NodePoolSpec                  `yaml:"node_pools"`
}

func SpecFromObject

func SpecFromObject(cluster *linodego.LKECluster, pools []linodego.LKEClusterPool) *Spec

func (*Spec) Diff

func (s *Spec) Diff(in *Spec) (*linodego.LKEClusterUpdateOptions, error)

Jump to

Keyboard shortcuts

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