types

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ResourceClusterRole           = "clusterroles"
	ResourceClusterRoleBinding    = "clusterrolebindings"
	ResourceConfigMap             = "configmaps"
	ResourceCronJob               = "cronjobs"
	ResourceDaemonSet             = "daemonsets"
	ResourceDeployment            = "deployments"
	ResourceIngress               = "ingresses"
	ResourceIngressClass          = "ingressclasses"
	ResourceJob                   = "jobs"
	ResourceNamespace             = "namespaces"
	ResourceNetworkPolicy         = "networkpolicies"
	ResourceNode                  = "nodes"
	ResourcePersistentVolume      = "persistentvolumes"
	ResourcePersistentVolumeClaim = "persistentvolumeclaims"
	ResourcePod                   = "pods"
	ResourceReplicaSet            = "replicasets"
	ResourceReplicationController = "replicationcontrollers"
	ResourceRole                  = "roles"
	ResourceRoleBinding           = "rolebindings"
	ResourceSecret                = "secrets"
	ResourceService               = "services"
	ResourceServiceAccount        = "serviceaccounts"
	ResourceStatefulSet           = "statefulsets"
	ResourceStorageClass          = "storageclasses"
)

k8s resource name

View Source
const (
	KindClusterRole           = "ClusterRole"
	KindClusterRoleBinding    = "ClusterRoleBinding"
	KindConfigMap             = "ConfigMap"
	KindCronJob               = "CronJob"
	KindDaemonSet             = "DaemonSet"
	KindDeployment            = "Deployment"
	KindIngress               = "Ingress"
	KindIngressClass          = "IngressClass"
	KindJob                   = "Job"
	KindNamespace             = "Namespace"
	KindNetworkPolicy         = "NetworkPolicy"
	KindNode                  = "Node"
	KindPersistentVolume      = "PersistentVolume"
	KindPersistentVolumeClaim = "PersistentVolumeClaim"
	KindPod                   = "Pod"
	KindReplicaSet            = "ReplicaSet"
	KindReplicationController = "ReplicationController"
	KindRole                  = "Role"
	KindRoleBinding           = "RoleBinding"
	KindSecret                = "Secret"
	KindService               = "Service"
	KindServiceAccount        = "ServiceAccount"
	KindStatefulSet           = "StatefulSet"
	KindStorageClass          = "StorageClass"
)

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