gvk

package
v0.2.30 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GVK

type GVK struct {
	Group     string `json:"group,omitempty"`
	Version   string `json:"version,omitempty"`
	Kind      string `json:"kind,omitempty"`
	Name      string `json:"Name,omitempty"`
	NameSpace string `json:"Namespace,omitempty"`
}

GVK identifies a resource with Group - Version - Kind - Name - NameSpace

func String2GVK

func String2GVK(s string) (*GVK, error)

func (*GVK) GetGroup

func (gvk *GVK) GetGroup() string

func (*GVK) GetKind

func (gvk *GVK) GetKind() string

func (*GVK) GetName

func (gvk *GVK) GetName() string

func (*GVK) GetNameSpace

func (gvk *GVK) GetNameSpace() string

func (*GVK) GetVersion

func (gvk *GVK) GetVersion() string

func (*GVK) SetGroup

func (gvk *GVK) SetGroup(s string)

func (*GVK) SetKind

func (gvk *GVK) SetKind(s string)

func (*GVK) SetName

func (gvk *GVK) SetName(s string)

func (*GVK) SetNameSpace

func (gvk *GVK) SetNameSpace(s string)

func (*GVK) SetVersion

func (gvk *GVK) SetVersion(s string)

func (*GVK) String

func (gvk *GVK) String() (string, error)

Jump to

Keyboard shortcuts

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