resource

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDocsTopic

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

Types

type ClusterDocsTopic

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

func NewClusterDocsTopic

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

func (*ClusterDocsTopic) Create

func (dt *ClusterDocsTopic) Create(meta metav1.ObjectMeta, docsTopicSpec v1alpha1.CommonDocsTopicSpec) error

func (*ClusterDocsTopic) Delete

func (dt *ClusterDocsTopic) Delete(name string) error

func (*ClusterDocsTopic) 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