kubernetesimplementationindependend

package
v0.406.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetObjectPlural added in v0.349.0

func GetObjectPlural(objectName string) (string, error)

func SanitizeKindName added in v0.345.0

func SanitizeKindName(name string) (string, error)

func SortObjectsYaml added in v0.349.0

func SortObjectsYaml(objectsYaml string) (sortedObjectsYaml string, err error)

Sort objects in given multi yaml string. Objects are sorted by:

  1. Namespace
  2. Object name
  3. Kind

Types

type ObjectYamlEntry added in v0.349.0

type ObjectYamlEntry struct {
	Content string
}

func UnmarshalObjectYaml added in v0.349.0

func UnmarshalObjectYaml(objectYaml string) (objects []*ObjectYamlEntry, err error)

func (*ObjectYamlEntry) ApiVersion added in v0.349.0

func (r *ObjectYamlEntry) ApiVersion() string

func (*ObjectYamlEntry) Kind added in v0.349.0

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

func (*ObjectYamlEntry) Name added in v0.349.0

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

func (*ObjectYamlEntry) Namespace added in v0.349.0

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

func (*ObjectYamlEntry) Validate added in v0.349.0

func (r *ObjectYamlEntry) 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