api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Kconfig *kubernetes.Clientset
)

Functions

func AllObject

func AllObject(Clusterns string)

func Configmaps

func Configmaps(Clusterns string, Output string, Wide bool)

func CreateDeployment

func CreateDeployment(Clusterns string, Deploymentname string, Podimage string, Containerport int32)

func CreateNamespace

func CreateNamespace(Namespacename string)

This func will create namespace

func CreatePod

func CreatePod(Clusterns string, Podname string, Podimage string, Ports string)

This func will create any pod

func CreateService

func CreateService(Clusterns string, Podname string, Servicename string, Servicetype string, Ports string, Nodeport int32)

This func will create any service

func CurrentNs

func CurrentNs(Clusterns string) (string, error)

func Daemonsets

func Daemonsets(Clusterns string, Output string, Wide bool)

func Declarative

func Declarative(filename string, Delete bool)

This function is used to apply declarative resource config in the cluster

func DeleteAllObject

func DeleteAllObject(Clusterns string)

func DeleteDeployment

func DeleteDeployment(Clusterns string, DeploymentName string)

This function Deletes the Deployments

func DeleteNamespace

func DeleteNamespace(Namespacename string)

This func will delete namespace

func DeletePod

func DeletePod(Clusterns string, PodName string)

This func will delete any pod

func DeleteService

func DeleteService(Clusterns string, ServiceName string)

This func will delete any service

func Deployments

func Deployments(Clusterns string, Output string, Wide bool)

func Events

func Events(Clusterns string, Output string, Wide bool)

func Main

func Main()

func Namespaces

func Namespaces() string

func OutputType

func OutputType(otype string, list interface{}) string

func OutsideClusterConfig

func OutsideClusterConfig()

func OutsideClusterConfigFancy

func OutsideClusterConfigFancy()

func PodDetails

func PodDetails(Clusterns string, ContainerDetails bool) string

func PodLogs

func PodLogs(Clusterns string, PodName string)

func Pods

func Pods(Clusterns string) error

This function is used to get the all the list of pods name only

func Replicasets

func Replicasets(Clusterns string, Output string, Wide bool)

func Replicationcontrollers

func Replicationcontrollers(Clusterns string, Output string, Wide bool)

func Run

func Run(stderr io.Writer, namespace string)

func Secrets

func Secrets(Clusterns string, Output string, Wide bool)

func Services

func Services(Clusterns string, Output string, Wide bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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