resource

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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"`
	// 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 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 added in v1.8.0

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"`
	ContainerStatuses []Container       `json:"containers"`
}

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"`
}

Jump to

Keyboard shortcuts

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