cmd

package
v0.0.0-...-c44469d Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *log.Logger

Logger - logger instance

View Source
var Version = "latest"

Version - klarista cli version

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func FormatStruct

func FormatStruct(inputs ...interface{}) string

FormatStruct - format struct as string

Types

type AssetWriter

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

AssetWriter - Asset writer strict

func NewAssetWriter

func NewAssetWriter(pwd, localStateDir string, box *packr.Box) *AssetWriter

func (*AssetWriter) Digest

func (w *AssetWriter) Digest(args ...interface{})

type FormatStructOptions

type FormatStructOptions struct {
	Compact bool
	Format  string
}

FormatStructOptions - format struct options

type InputProcessor

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

InputProcessor - Input processor struct

func NewInputProcessor

func NewInputProcessor(writer *AssetWriter) *InputProcessor

func (*InputProcessor) Changed

func (p *InputProcessor) Changed() bool

func (*InputProcessor) Commit

func (p *InputProcessor) Commit()

func (*InputProcessor) Digest

func (p *InputProcessor) Digest(inputPaths []string) []string

type KubernetesCluster

type KubernetesCluster struct {
	Cluster KubernetesClusterCluster `json:"cluster"`
	Name    string                   `json:"name"`
}

type KubernetesClusterCluster

type KubernetesClusterCluster struct {
	CertificateAuthorityData *string `json:"certificate-authority-data,omitempty"`
	Server                   string  `json:"server"`
}

type KubernetesConfig

type KubernetesConfig struct {
	ApiVersion     string                 `json:"apiVersion"`
	Clusters       []KubernetesCluster    `json:"clusters"`
	Contexts       []KubernetesContext    `json:"contexts"`
	CurrentContext string                 `json:"current-context"`
	Kind           string                 `json:"kind"`
	Preferences    map[string]interface{} `json:"preferences"`
	Users          []KubernetesUser       `json:"users"`
}

type KubernetesContext

type KubernetesContext struct {
	Context KubernetesContextContext `json:"context"`
	Name    string                   `json:"name"`
}

type KubernetesContextContext

type KubernetesContextContext struct {
	Cluster string `json:"cluster"`
	User    string `json:"user"`
}

type KubernetesUser

type KubernetesUser struct {
	Name string             `json:"name"`
	User KubernetesUserUser `json:"user"`
}

type KubernetesUserUser

type KubernetesUserUser struct {
	ClientCertificateData *string                 `json:"client-certificate-data,omitempty"`
	ClientKeyData         *string                 `json:"client-key-data,omitempty"`
	Exec                  *map[string]interface{} `json:"exec,omitempty"`
}

type ShellErrorCallback

type ShellErrorCallback = func(error)

ShellErrorCallback - shell error callback function

type ShellOutputCallback

type ShellOutputCallback = func([]byte)

ShellOutputCallback - shell output callback function

type UseTempDirCallback

type UseTempDirCallback = func(string)

UseTempDirCallback - useTempDir callback function

Jump to

Keyboard shortcuts

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