k8s

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource added in v0.0.5

type Resource map[string]interface{}

func (*Resource) GetKind added in v0.0.5

func (resource *Resource) GetKind(dataMap string) (string, error)

GetKind helps in identifying kind form the kubernetes resource.

func (*Resource) GetName added in v0.0.5

func (resource *Resource) GetName(dataMap string) (string, error)

GetName gets the name form the kubernetes resource.

func (*Resource) GetNameSpace added in v0.0.6

func (resource *Resource) GetNameSpace(name, kind, dataMap string) (string, error)

GetNameSpace gets the namespace form the kubernetes resource.

func (*Resource) IsHelmHook added in v0.0.7

func (resource *Resource) IsHelmHook(dataMap string, hookKinds []string) (bool, error)

IsHelmHook gets the namespace form the kubernetes resource.

type ResourceInterface added in v0.0.5

type ResourceInterface interface {
	GetName(dataMap string) (string, error)
	GetKind(dataMap string) (string, error)
	GetNameSpace(name, kind, dataMap string) (string, error)
	IsHelmHook(dataMap string, hookKinds []string) (bool, error)
}

ResourceInterface implements methods to get resource name and kind.

func NewResource added in v0.0.5

func NewResource() ResourceInterface

NewResource returns aa new instance of ResourceInterface.

Jump to

Keyboard shortcuts

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