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.
type List ¶
type List struct {
// contains filtered or unexported fields
}
func NewList ¶
func NewList(clusters []linodego.LKECluster) List
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 ¶
func (s *NodePoolSpec) Diff(in *NodePoolSpec) (*linodego.LKEClusterPoolUpdateOptions, error)
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
Click to show internal directories.
Click to hide internal directories.