kubernetes

package
v0.0.0-...-7d8fbd2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Namespace          = "Namespace"
	CRD                = "CustomResourceDefinition"
	ClusterRoleBinding = "ClusterRoleBinding"
	ClusterRole        = "ClusterRole"
	Role               = "Role"
	ServiceAccount     = "ServiceAccount"
	RoleBinding        = "RoleBinding"
	PodSecurityPolicy  = "PodSecurityPolicy"
	Deployment         = "Deployment"
)

Variables

View Source
var (
	ApiHandler    map[string]func(config, body string) error
	DelApiHandler map[string]func(config, body string) error
)

Functions

func ClusterRoleBindingHandler

func ClusterRoleBindingHandler(config, body string) error

func ClusterRoleHandler

func ClusterRoleHandler(config, body string) error

func CustomResourceDefinitionHandler

func CustomResourceDefinitionHandler(config, body string) error

func DelClusterRoleBindingHandler

func DelClusterRoleBindingHandler(config, body string) error

func DelClusterRoleHandler

func DelClusterRoleHandler(config, body string) error

func DelCustomResourceDefinitionHandler

func DelCustomResourceDefinitionHandler(config, body string) error

func DelDeploymentHandler

func DelDeploymentHandler(config, body string) error

func DelNamespaceHandler

func DelNamespaceHandler(config, body string) error

func DelPodSecurityPolicyHandler

func DelPodSecurityPolicyHandler(config, body string) error

func DelRoleBindingHandler

func DelRoleBindingHandler(config, body string) error

func DelRoleHandler

func DelRoleHandler(config, body string) error

func DelServiceAccountHandler

func DelServiceAccountHandler(config, body string) error

func DelStorageClassHandler

func DelStorageClassHandler(config, body string) error

func DeploymentHandler

func DeploymentHandler(config, body string) error

func NamespaceHandler

func NamespaceHandler(config, body string) error

func PodSecurityPolicyHandler

func PodSecurityPolicyHandler(config, body string) error

func RoleBindingHandler

func RoleBindingHandler(config, body string) error

func RoleHandler

func RoleHandler(config, body string) error

func ServiceAccountHandler

func ServiceAccountHandler(config, body string) error

func StorageClassHandler

func StorageClassHandler(config, body string) error

Types

type PodClient

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

func NewPodClient

func NewPodClient(kcfg, namespace string) (*PodClient, error)

func (*PodClient) ExecInPod

func (p *PodClient) ExecInPod(pod *apiv1.Pod, container string, commands []string, stdout, stderr io.Writer) error

func (*PodClient) GetPodByFilter

func (p *PodClient) GetPodByFilter(filter string) (*apiv1.Pod, error)

Jump to

Keyboard shortcuts

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