actions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CreateKindClusterAction is the action name for creating a cluster
	CreateKindClusterAction = "octant-plugin-for-kind.dev/create"
	// DeleteKindClusterAction is the action name for deleting a cluster
	DeleteKindClusterAction = "octant-plugin-for-kind.dev/delete"
	// LoadImageAction is the action name for loading a kind image
	LoadImageAction = "octant-plugin-for-kind.dev/loadImage"
	// DeleteImageAction is the action name for deleting a kind image
	DeleteImageAction = "octant-plugin-for-kind.dev/deleteImage"
)

Variables

This section is empty.

Functions

func ActionHandler

func ActionHandler(request *service.ActionRequest) error

ActionHandler is a handler for actions

Types

type ClusterConfig

type ClusterConfig struct {
	Details  ClusterDetails         `json:"clusterConfiguration"`
	Features map[string]interface{} `json:"featureGates"`
}

ClusterConfig contains input from stepper

type ClusterDetails

type ClusterDetails struct {
	ClusterName       string   `json:"clusterName"`
	ControlPlaneNodes FlexInt  `json:"controlPlaneNodes"`
	Workers           FlexInt  `json:"workers"`
	Version           []string `json:"version"`
}

ClusterDetails are used to build v1alpha4Config

type FlexInt

type FlexInt int

FlexInt is an integer that can also handle string representations

func (*FlexInt) UnmarshalJSON

func (fi *FlexInt) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals FlexInt

Jump to

Keyboard shortcuts

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