Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAssetGroup

func NewAssetGroup(dynamicCli dynamic.Interface, namespace string, logFn func(format string, args ...interface{})) *assetGroup

Types

type ClusterAssetGroup

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

func NewClusterAssetGroup

func NewClusterAssetGroup(dynamicCli dynamic.Interface, logFn func(format string, args ...interface{})) *ClusterAssetGroup

func (*ClusterAssetGroup) Create

func (self *ClusterAssetGroup) Create(meta metav1.ObjectMeta, clusterAssetGroupSpec v1beta1.CommonAssetGroupSpec) error

func (*ClusterAssetGroup) Delete

func (self *ClusterAssetGroup) Delete(name string) error

func (*ClusterAssetGroup) Get

type Resource

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

func New

func New(dynamicCli dynamic.Interface, s schema.GroupVersionResource, namespace string, logFn func(format string, args ...interface{})) *Resource

func (*Resource) Create

func (r *Resource) Create(res interface{}) error

func (*Resource) Delete

func (r *Resource) Delete(name string) error

func (*Resource) Get

func (r *Resource) Get(name string) (*unstructured.Unstructured, error)