cmd

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatHTML = "html"
	FormatYAML = "yaml"
)

Variables

View Source
var Version = "v0.0.0-dev"

Functions

func Execute

func Execute() error

Execute runs the main krok command.

func ShowUsage

func ShowUsage(cmd *cobra.Command, _ []string)

ShowUsage shows usage of the given command on stdout.

Types

type APIGroups added in v1.1.2

type APIGroups struct {
	Name        string    `json:"name"`
	Description string    `json:"description,omitempty"`
	Files       []string  `json:"files,omitempty"`
	Folders     []string  `json:"folders,omitempty"`
	URLs        []URLs    `json:"urls,omitempty"`
	GitURLs     []GITUrls `json:"gitUrls,omitempty"`
}

APIGroups defines groups by which grouping will happen in the resulting HTML output.

type ConfigHandler added in v1.0.3

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

func (*ConfigHandler) CRDs added in v1.0.3

func (h *ConfigHandler) CRDs() ([]*pkg.SchemaType, error)

type FileHandler added in v0.6.0

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

func (*FileHandler) CRDs added in v0.6.0

func (h *FileHandler) CRDs() ([]*pkg.SchemaType, error)

type FolderHandler added in v0.6.0

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

func (*FolderHandler) CRDs added in v0.6.0

func (h *FolderHandler) CRDs() ([]*pkg.SchemaType, error)

type GITUrls added in v1.1.2

type GITUrls struct {
	URL         string `json:"url"`
	Username    string `json:"username,omitempty"`
	Password    string `json:"password,omitempty"`
	Token       string `json:"token,omitempty"`
	Tag         string `json:"tag,omitempty"`
	PrivateKey  string `json:"privateKey,omitempty"`
	UseSSHAgent bool   `json:"useSSHAgent,omitempty"`
}

type GitHandler added in v1.1.1

type GitHandler struct {
	URL      string
	Username string
	Password string
	Token    string
	Tag      string
	// contains filtered or unexported fields
}

func (*GitHandler) CRDs added in v1.1.1

func (g *GitHandler) CRDs() ([]*pkg.SchemaType, error)

type Handler added in v0.6.0

type Handler interface {
	CRDs() ([]*pkg.SchemaType, error)
}

type KindVersionGroup added in v1.0.2

type KindVersionGroup struct {
	Kind    string `json:"kind"`
	Version string `json:"version"`
	Group   string `json:"group"`
}

type KubeHandler added in v1.1.4

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

func (*KubeHandler) CRDs added in v1.1.4

func (h *KubeHandler) CRDs() ([]*pkg.SchemaType, error)

type RenderConfig added in v1.1.2

type RenderConfig struct {
	APIGroups []APIGroups `json:"apiGroups"`
}

RenderConfig defines a configuration for the resulting rendered HTML content.

type Schema added in v1.0.2

type Schema struct {
	*v1beta1.JSONSchemaProps       `json:",inline"`
	KubernetesGroupVersionKindList []KindVersionGroup `json:"x-kubernetes-group-version-kind"`
}

type StdInHandler added in v1.1.4

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

func (*StdInHandler) CRDs added in v1.1.4

func (s *StdInHandler) CRDs() ([]*pkg.SchemaType, error)

type URLHandler added in v0.6.0

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

func (*URLHandler) CRDs added in v0.6.0

func (h *URLHandler) CRDs() ([]*pkg.SchemaType, error)

type URLs added in v1.1.2

type URLs struct {
	URL      string `json:"url"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Token    string `json:"token,omitempty"`
}

Jump to

Keyboard shortcuts

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