kubernetesimplementationindependend

package
v0.348.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourcePlural added in v0.345.0

func GetResourcePlural(resourceName string) (string, error)

func SanitizeKindName added in v0.345.0

func SanitizeKindName(name string) (string, error)

func SortResourcesYaml added in v0.348.0

func SortResourcesYaml(resourcesYaml string) (sortedResourcesYaml string, err error)

Sort resources in given multi yaml string. Resources are sorted by:

  1. Namespace
  2. Resource name
  3. Kind

Types

type ResourceYamlEntry added in v0.348.0

type ResourceYamlEntry struct {
	Content string
}

func UnmarshalResourceYaml added in v0.348.0

func UnmarshalResourceYaml(resourceYaml string) (resources []*ResourceYamlEntry, err error)

func (*ResourceYamlEntry) ApiVersion added in v0.348.0

func (r *ResourceYamlEntry) ApiVersion() string

func (*ResourceYamlEntry) Kind added in v0.348.0

func (r *ResourceYamlEntry) Kind() (name string)

func (*ResourceYamlEntry) Name added in v0.348.0

func (r *ResourceYamlEntry) Name() (name string)

func (*ResourceYamlEntry) Namespace added in v0.348.0

func (r *ResourceYamlEntry) Namespace() (namespace string)

func (*ResourceYamlEntry) Validate added in v0.348.0

func (r *ResourceYamlEntry) Validate() (err error)

type UserInfo

type UserInfo struct {
	Username string
}

Jump to

Keyboard shortcuts

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