Documentation ¶
Index ¶
- func CheckNecessaryCliAppsAvailable()
- func CsvStr2arr(str string) []string
- func CsvStr2arrSep(str string, sep string) []string
- func CurrentContext() string
- func DownloadEverything(types []*ApiResourceType) string
- func GroupByNamespace(all []*Resource) map[string][]*Resource
- func ListAvailableContexts() []string
- func MapStrValOrElse(dict map[string]string, key string, fallback string) string
- func ParseStdOutTable(table string) []map[string]string
- func PipeToCommand(input string, app string, args ...string) string
- func RunCommand(app string, args ...string) string
- func SplitLines(s string) []string
- func Str2boolOrElse(str string, fallback bool) bool
- func WierdKubectlArray2arr(strIn string) []string
- type ApiResourceType
- type ApiResourceTypesAccessible
- type ApiResourceTypesResponse
- type ApiVersion
- type Resource
- type ResourceMetadata
- type StdOutTableColumn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNecessaryCliAppsAvailable ¶ added in v1.27.5
func CheckNecessaryCliAppsAvailable()
func CsvStr2arr ¶
func CsvStr2arrSep ¶
func CurrentContext ¶
func CurrentContext() string
func DownloadEverything ¶
func DownloadEverything(types []*ApiResourceType) string
func GroupByNamespace ¶
func ListAvailableContexts ¶
func ListAvailableContexts() []string
func MapStrValOrElse ¶
func ParseStdOutTable ¶
func RunCommand ¶
func SplitLines ¶
func Str2boolOrElse ¶
func WierdKubectlArray2arr ¶
Types ¶
type ApiResourceType ¶
type ApiResourceType struct { Name string ShortNames []string Namespaced bool Kind string Verbs []string ApiVersion ApiVersion QualifiedName string }
func (*ApiResourceType) IsSecret ¶
func (r *ApiResourceType) IsSecret() bool
type ApiResourceTypesAccessible ¶
type ApiResourceTypesAccessible struct { All []*ApiResourceType Global []*ApiResourceType Namespaced []*ApiResourceType }
type ApiResourceTypesResponse ¶
type ApiResourceTypesResponse struct { All []*ApiResourceType Accessible ApiResourceTypesAccessible }
func ApiResourceTypes ¶
func ApiResourceTypes() ApiResourceTypesResponse
type ApiVersion ¶
type Resource ¶
type Resource struct { Kind string `yaml:"kind"` ApiVersion string `yaml:"apiVersion"` MetaData ResourceMetadata `yaml:"metadata"` SourceYaml string QualifiedTypeName string }
func ParseResourceList ¶
func ParseResources ¶
func ParseSingleResource ¶
func (*Resource) IsNamespaced ¶
type ResourceMetadata ¶
type StdOutTableColumn ¶
type StdOutTableColumn struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.