resource

package
v0.0.0-...-18cdee1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

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)

Jump to

Keyboard shortcuts

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