kubernetes

package
v0.0.0-...-0c70d8f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDockerRegistrySecret

func CreateDockerRegistrySecret(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func CreateIngress

func CreateIngress(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func CreateService

func CreateService(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func DeleteIngress

func DeleteIngress(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func DeletePod

func DeletePod(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func DeletePvcByLabels

func DeletePvcByLabels(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func DeleteService

func DeleteService(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func Describe

func Describe(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func DownloadLogByKubernetes

func DownloadLogByKubernetes(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func ExecByKubernetes

func ExecByKubernetes(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func LogsByKubernetes

func LogsByKubernetes(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

func NewResponseError

func NewResponseError(key, cmdType, commandId string, err error) *model.Packet

func ScalePod

func ScalePod(opts *command.Opts, cmd *model.Packet) ([]*model.Packet, *model.Packet)

Types

type DeletePodInfo

type DeletePodInfo struct {
	PodName   string `json:"podName,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Status    string `json:"status,omitempty"`
}

type DeletePvcInfo

type DeletePvcInfo struct {
	Labels    map[string]string
	Namespace string
}

type DescribeRequest

type DescribeRequest struct {
	DescribeID string `json:"describeID,omitempty"`
	Namespace  string `json:"namespace,omitempty"`
	Kind       string `json:"kind,omitempty"`
	Name       string `json:"name,omitempty"`
}

type DockerConfig

type DockerConfig map[string]DockerConfigEntry

DockerConfig represents the config file used by the docker CLI. This config that represents the credentials that should be used when pulling images from specific image repositories.

type DockerConfigEntry

type DockerConfigEntry struct {
	Name      string `json:"name,omitempty"`
	Auth      string `json:"auth,omitempty"`
	Email     string `json:"email,omitempty"`
	Server    string `json:"server,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Username  string `json:"username,omitempty"`
	Password  string `json:"password,omitempty"`
}

type DockerConfigJSON

type DockerConfigJSON struct {
	Auths DockerConfig `json:"auths"`
	// +optional
	HttpHeaders map[string]string `json:"HttpHeaders,omitempty"`
}

DockerConfigJSON represents a local docker auth config file for pulling images.

type ExecByKubernetesRequest

type ExecByKubernetesRequest struct {
	PodName       string `json:"podName,omitempty"`
	ContainerName string `json:"containerName,omitempty"`
	PipeID        string `json:"pipeID,omitempty"`
	Namespace     string `json:"namespace,omitempty"`
}

type GetLogsByKubernetesRequest

type GetLogsByKubernetesRequest struct {
	PodName       string `json:"podName,omitempty"`
	ContainerName string `json:"containerName,omitempty"`
	PipeID        string `json:"pipeID,omitempty"`
	Namespace     string `json:"namespace,omitempty"`
	InstanceId    string `json:"instanceId,omitempty"`
	Previous      bool   `json:"previous,omitempty"`
}

type ScalePodRequest

type ScalePodRequest struct {
	Name      string `json:"name,omitempty"`
	Count     int    `json:"count,omitempty"`
	Namespace string `json:"namespace,omitempty"`
	Kind      string `json:"kind,omitempty"`
	CommandId string `json:"commandId,omitempty"`
}

type ScalePodResponse

type ScalePodResponse struct {
	CommandId string `json:"commandId,omitempty"`
	Msg       string `json:"msg,omitempty"`
}

Jump to

Keyboard shortcuts

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