k8s

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 6 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) Get added in v0.1.0

func (resource *Resource) Get(dataMap string, key string, log *logrus.Logger) (string, error)

Get helps in identifying kind form the kubernetes resource.

func (*Resource) GetMetadata added in v0.1.0

func (resource *Resource) GetMetadata(dataMap string, key string, log *logrus.Logger) (string, error)

GetMetadata 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 {
	Get(dataMap string, key string, log *logrus.Logger) (string, error)
	GetMetadata(dataMap string, key string, log *logrus.Logger) (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