Documentation ¶
Index ¶
- Variables
- func Execute()
- func FormatStruct(inputs ...interface{}) string
- type AssetWriter
- type FormatStructOptions
- type InputProcessor
- type KubernetesCluster
- type KubernetesClusterCluster
- type KubernetesConfig
- type KubernetesContext
- type KubernetesContextContext
- type KubernetesUser
- type KubernetesUserUser
- type ShellErrorCallback
- type ShellOutputCallback
- type UseTempDirCallback
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 ¶
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 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 KubernetesUser ¶
type KubernetesUser struct { Name string `json:"name"` User KubernetesUserUser `json:"user"` }
type KubernetesUserUser ¶
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
Click to show internal directories.
Click to hide internal directories.