resource

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	ServiceName string `json:"service_name"`
	ServicePort string `json:"service_port"`
}

type ConfigMap

type ConfigMap struct {
	Name              string            `json:"name"`
	Age               string            `json:"age"`
	Labels            map[string]string `json:"labels"`
	Data              map[string]string `json:"data"`
	CreationTimestamp time.Time         `json:"creationTimestamp"`
	LastUpdateTime    time.Time         `json:"lastUpdateTime"`
}

type Container

type Container struct {
	Name         string          `json:"name"`
	Image        string          `json:"image"`
	RestartCount int32           `json:"restart_count"`
	Status       string          `json:"status"`
	Ready        bool            `json:"ready"`
	Ports        []ContainerPort `json:"ports"`
	// Message regarding the last termination of the container
	Message string `json:"message"`
	// reason from the last termination of the container
	Reason string `json:"reason"`
	// Time at which previous execution of the container started
	StartedAt int64 `json:"started_at,omitempty"`
	// Time at which the container last terminated
	FinishedAt int64 `json:"finished_at,omitempty"`
}

type ContainerImage

type ContainerImage struct {
	Name      string `json:"name"`
	Image     string `json:"image"`
	ImageName string `json:"image_name"`
}

type ContainerPort

type ContainerPort struct {
	// If specified, this must be an IANA_SVC_NAME and unique within the pod. Each
	// named port in a pod must have a unique name. Name for the port that can be
	// referred to by services.
	// +optional
	Name string `json:"name,omitempty"`
	// Number of port to expose on the host.
	// If specified, this must be a valid port number, 0 < x < 65536.
	// If HostNetwork is specified, this must match ContainerPort.
	// Most containers do not need this.
	// +optional
	HostPort int32 `json:"hostPort,omitempty"`
	// Number of port to expose on the pod's IP address.
	// This must be a valid port number, 0 < x < 65536.
	ContainerPort int32 `json:"containerPort"`
	// Protocol for port. Must be UDP, TCP, or SCTP.
	// Defaults to "TCP".
	// +optional
	// +default="TCP"
	Protocol Protocol `json:"protocol,omitempty"`
	// What host IP to bind the external port to.
	// +optional
	HostIP string `json:"hostIP,omitempty"`
}

type CronJob

type CronJob struct {
	Name         string            `json:"name"`
	Labels       map[string]string `json:"labels"`
	Images       []*ContainerImage `json:"images"`
	Pods         []*Pod            `json:"pods"`
	CreateTime   int64             `json:"create_time,omitempty"`
	Suspend      bool              `json:"suspend"`
	Schedule     string            `json:"schedule,omitempty"`
	LastSchedule string            `json:"last_schedule,omitempty"`
	Active       int               `json:"active,omitempty"`
}

type Event

type Event struct {
	Reason string `json:"reason,omitempty"`

	// A human-readable description of the status of this operation.
	Message string `json:"message,omitempty" protobuf:"bytes,4,opt,name=message"`

	// The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)
	FirstSeen int64 `json:"first_seen,omitempty"`

	// The time at which the most recent occurrence of this event was recorded.
	LastSeen int64 `json:"last_seen,omitempty"`

	// The number of times this event has occurred.
	Count int32 `json:"count,omitempty"`

	// Type of this event (Normal, Warning), new types could be added in the future
	Type string `json:"type,omitempty"`
}

type HostInfo

type HostInfo struct {
	Host     string    `json:"host"`
	Backends []Backend `json:"backend"`
}

type Ingress

type Ingress struct {
	Name     string            `json:"name"`
	Labels   map[string]string `json:"labels"`
	HostInfo []HostInfo        `json:"host_info"`
	IPs      []string          `json:"ips"`
	Age      string            `json:"age"`
}

type Job

type Job struct {
	Name       string            `json:"name"`
	Age        string            `json:"age"`
	Labels     map[string]string `json:"labels"`
	CreateTime int64             `json:"create_time,omitempty"`
	Active     int32             `json:"active,omitempty"`
	Succeeded  int32             `json:"succeeded,omitempty"`
	Failed     int32             `json:"failed,omitempty"`
	Containers []v1.Container    `json:"-"`
}

Job ...

type Namespace

type Namespace struct {
	Name   string            `json:"name"`
	Status string            `json:"status"`
	Age    string            `json:"age"`
	Labels map[string]string `json:"labels"`
	// Whether it is the namespace currently installed by zadig
	Current bool `json:"current"`
}

type Node

type Node struct {
	Labels []string `json:"labels"`
	Ready  bool     `json:"ready"`
	IP     string   `json:"ip"`
}

type Pod

type Pod struct {
	Kind                 string            `json:"kind"`
	Name                 string            `json:"name"`
	Status               string            `json:"status"`
	Age                  string            `json:"age"`
	CreateTime           int64             `json:"createtime"`
	IP                   string            `json:"ip"`
	Labels               map[string]string `json:"labels"`
	Containers           []Container       `json:"containers"`
	NodeName             string            `json:"node_name"`
	HostIP               string            `json:"host_ip"`
	EnableDebugContainer bool              `json:"enable_debug_container"`
	PodReady             bool              `json:"pod_ready"`
	ContainersReady      bool              `json:"containers_ready"`
	ContainersMessage    string            `json:"containers_message"`
	Succeed              bool              `json:"-"`
	Ready                bool              `json:"-"`
}

type Protocol

type Protocol string
const (
	// ProtocolTCP is the TCP protocol.
	ProtocolTCP Protocol = "TCP"
	// ProtocolUDP is the UDP protocol.
	ProtocolUDP Protocol = "UDP"
	// ProtocolSCTP is the SCTP protocol.
	ProtocolSCTP Protocol = "SCTP"
)

type Service

type Service struct {
	Name   string            `json:"name"`
	Age    string            `json:"age"`
	Labels map[string]string `json:"labels"`
	Ports  []ServicePort     `json:"endpoints"`
}

type ServicePort

type ServicePort struct {
	ServiceName string `json:"service_name"`
	ServicePort int32  `json:"service_port"`
	NodePort    int32  `json:"node_port"`
}

type Workload

type Workload struct {
	Name     string           `json:"name"`
	Type     string           `json:"type"`
	Images   []ContainerImage `json:"images"`
	Pods     []*Pod           `json:"pods"`
	Replicas int32            `json:"replicas"`
	// ZadigXReleaseType represent the release type of workload created by zadigx when it is not empty
	// frontend should limit or allow some operations on these workloads
	ZadigXReleaseType string `json:"zadigx_release_type"`
	ZadigXReleaseTag  string `json:"zadigx_release_tag"`
}

Jump to

Keyboard shortcuts

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