Documentation ¶
Index ¶
- type Resource
- func (resource *Resource) GetKind(dataMap string) (string, error)
- func (resource *Resource) GetName(dataMap string) (string, error)
- func (resource *Resource) GetNameSpace(name, kind, dataMap string) (string, error)
- func (resource *Resource) IsHelmHook(dataMap string, hookKinds []string) (bool, error)
- type ResourceInterface
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
GetKind helps in identifying kind form the kubernetes resource.
func (*Resource) GetNameSpace ¶ added in v0.0.6
GetNameSpace 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.
Click to show internal directories.
Click to hide internal directories.