resrcid

package
v0.0.0-...-3d5d804 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceID

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

func NewResourceID

func NewResourceID(name, namespace string, gvk schema.GroupVersionKind, opts ResourceIDOptions) *ResourceID

func NewResourceIDFromID

func NewResourceIDFromID(id string, opts ResourceIDOptions) *ResourceID

func NewResourceIDFromUnstruct

func NewResourceIDFromUnstruct(unstruct *unstructured.Unstructured, opts ResourceIDOptions) *ResourceID

func (*ResourceID) FilePath

func (i *ResourceID) FilePath() string

func (*ResourceID) GroupVersionKind

func (i *ResourceID) GroupVersionKind() schema.GroupVersionKind

func (*ResourceID) GroupVersionResource

func (i *ResourceID) GroupVersionResource() (schema.GroupVersionResource, error)

func (*ResourceID) HumanID

func (i *ResourceID) HumanID() string

func (*ResourceID) ID

func (i *ResourceID) ID() string

func (*ResourceID) Name

func (i *ResourceID) Name() string

func (*ResourceID) Namespace

func (i *ResourceID) Namespace() string

func (*ResourceID) Namespaced

func (i *ResourceID) Namespaced() (namespaced bool, err error)

func (*ResourceID) VersionID

func (i *ResourceID) VersionID() string

type ResourceIDOptions

type ResourceIDOptions struct {
	DefaultNamespace string
	FilePath         string
	Mapper           meta.ResettableRESTMapper
}

Jump to

Keyboard shortcuts

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