types

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceKindPod                   = "pod"
	ResourceKindDeployment            = "deployment"
	ResourceKindDaemonSet             = "daemonset"
	ResourceKindStatefulSet           = "statefulset"
	ResourceKindJob                   = "job"
	ResourceKindCronJob               = "cronjob"
	ResourceKindReplicaSet            = "replicaset"
	ResourceKindReplicationController = "replicationcontroller"

	ResourceKindPods                   = "pods"
	ResourceKindDeployments            = "deployments"
	ResourceKindDaemonSets             = "daemonsets"
	ResourceKindStatefulSets           = "statefulsets"
	ResourceKindJobs                   = "jobs"
	ResourceKindCronJobs               = "cronjobs"
	ResourceKindReplicaSets            = "replicasets"
	ResourceKindReplicationControllers = "replicationcontrollers"
)

k8s resource kind

View Source
const (
	FieldManager = "client-go"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Applyer

type Applyer interface {
	//ApplyFromRaw(raw map[string]interface{}) (interface{}, error)
	//ApplyFromBytes(data []byte) (interface{}, error)
	//ApplyFromFile(path string) (interface{}, error)
	Apply(name string) (interface{}, error)
}

type Creater

type Creater interface {
	//CreateFromRaw(raw map[string]interface{}) (interface{}, error)
	//CreateFromBytes(data []byte) (interface{}, error)
	//CreateFromFile(path string) (interface{}, error)
	Create(name string) (interface{}, error)
}

type Deleter

type Deleter interface {
	//DeleteByName(data []byte) error
	//DeleteFromBytes(data []byte) error
	//DeleteFromFile(path string) error
	Delete(name string) error
}

type Geter

type Geter interface {
	//GetByName(name string) (interface{}, error)
	//GetFromBytes(name string) (interface{}, error)
	//GetFromFile(path string) (interface{}, error)
	Get(name string) (interface{}, error)
}

type Handler

type Handler interface {
	Creater
	Updater
	Applyer
	Deleter
	Geter
	Lister
	Watcher
}

type HandlerOptions

type HandlerOptions struct {
	ListOptions   metav1.ListOptions
	GetOptions    metav1.GetOptions
	CreateOptions metav1.CreateOptions
	DeleteOptions metav1.DeleteOptions
	ApplyOptions  metav1.ApplyOptions
	UpdateOptions metav1.UpdateOptions
	PatchOptions  metav1.PatchOptions
}

type Lister

type Lister interface {
	//ListByLabel(label string) (interface{}, error)
	//ListAll() (interface{}, error)
	List(label string) (interface{}, error)
}

type Updater

type Updater interface {
	//UpdateFromRaw(raw map[string]interface{}) (interface{}, error)
	//UpdateFromBytes(data []byte) (interface{}, error)
	//UpdateFromFile(path string) (interface{}, error)
	Update(name string) (interface{}, error)
}

type Watcher

type Watcher interface {
	//WatchByName(name string, addFunc, modifyFunc, deleteFunc func(x interface{}), x interface{}) error
	//WatchByLabel(label string, addFunc, modifyFunc, deleteFunc func(x interface{}), x interface{}) error
	Watch(name string, addFunc, modifyFunc, deleteFunc func(x interface{}), x interface{}) error
}

Jump to

Keyboard shortcuts

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