kubernetes

package
v0.0.0-...-270f78c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Zlib Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8sConfigMapOrSecret

type K8sConfigMapOrSecret struct {
	UID          string            `json:"UID"`
	Name         string            `json:"Name"`
	Namespace    string            `json:"Namespace"`
	CreationDate string            `json:"CreationDate"`
	Annotations  map[string]string `json:"Annotations"`
	Data         map[string]string `json:"Data"`
	Applications []string          `json:"Applications"`
	IsSecret     bool              `json:"IsSecret"`

	// SecretType will be an empty string for config maps.
	SecretType string `json:"SecretType"`
}

type K8sIngressController

type K8sIngressController struct {
	Name         string `json:"Name"`
	ClassName    string `json:"ClassName"`
	Type         string `json:"Type"`
	Availability bool   `json:"Availability"`
	New          bool   `json:"New"`
	Used         bool   `json:"Used"`
}

type K8sIngressControllers

type K8sIngressControllers []K8sIngressController

func (K8sIngressControllers) Validate

func (r K8sIngressControllers) Validate(request *http.Request) error

type K8sIngressDeleteRequests

type K8sIngressDeleteRequests map[string][]string

K8sIngressDeleteRequests is a mapping of namespace names to a slice of ingress names.

func (K8sIngressDeleteRequests) Validate

func (r K8sIngressDeleteRequests) Validate(request *http.Request) error

type K8sIngressInfo

type K8sIngressInfo struct {
	Name        string            `json:"Name"`
	UID         string            `json:"UID"`
	Type        string            `json:"Type"`
	Namespace   string            `json:"Namespace"`
	ClassName   string            `json:"ClassName"`
	Annotations map[string]string `json:"Annotations"`
	Hosts       []string          `json:"Hosts"`
	Paths       []K8sIngressPath  `json:"Paths"`
	TLS         []K8sIngressTLS   `json:"TLS"`
}

func (K8sIngressInfo) Validate

func (r K8sIngressInfo) Validate(request *http.Request) error

type K8sIngressPath

type K8sIngressPath struct {
	IngressName string `json:"IngressName"`
	Host        string `json:"Host"`
	ServiceName string `json:"ServiceName"`
	Port        int    `json:"Port"`
	Path        string `json:"Path"`
	PathType    string `json:"PathType"`
}

type K8sIngressTLS

type K8sIngressTLS struct {
	Hosts      []string `json:"Hosts"`
	SecretName string   `json:"SecretName"`
}

type K8sMetrics

type K8sMetrics struct {
	Resources []K8sMetricsResources `json:"resources"`
}

type K8sMetricsResources

type K8sMetricsResources struct {
	Kind         string   `json:"Kind,omitempty"`
	Name         string   `json:"Name,omitempty"`
	Namespaced   bool     `json:"Namespaced,omitempty"`
	SingularName string   `json:"SingularName,omitempty"`
	Verbs        []string `json:"Verbs,omitempty"`
}

type K8sNamespaceDetails

type K8sNamespaceDetails struct {
	Name        string            `json:"Name"`
	Annotations map[string]string `json:"Annotations"`
}

func (*K8sNamespaceDetails) Validate

func (r *K8sNamespaceDetails) Validate(request *http.Request) error

type K8sServiceDeleteRequests

type K8sServiceDeleteRequests map[string][]string

K8sServiceDeleteRequests is a mapping of namespace names to a slice of service names.

func (K8sServiceDeleteRequests) Validate

func (r K8sServiceDeleteRequests) Validate(request *http.Request) error

type K8sServiceInfo

type K8sServiceInfo struct {
	Name                          string              `json:"Name"`
	UID                           string              `json:"UID"`
	Type                          string              `json:"Type"`
	Namespace                     string              `json:"Namespace"`
	Annotations                   map[string]string   `json:"Annotations"`
	CreationTimestamp             string              `json:"CreationTimestamp"`
	Labels                        map[string]string   `json:"Labels"`
	AllocateLoadBalancerNodePorts *bool               `json:"AllocateLoadBalancerNodePorts,omitempty"`
	Ports                         []K8sServicePort    `json:"Ports"`
	Selector                      map[string]string   `json:"Selector"`
	IngressStatus                 []K8sServiceIngress `json:"IngressStatus"`
}

func (*K8sServiceInfo) Validate

func (s *K8sServiceInfo) Validate(request *http.Request) error

type K8sServiceIngress

type K8sServiceIngress struct {
	IP   string `json:"IP"`
	Host string `json:"Host"`
}

type K8sServicePort

type K8sServicePort struct {
	Name       string `json:"Name"`
	NodePort   int    `json:"NodePort"`
	Port       int    `json:"Port"`
	Protocol   string `json:"Protocol"`
	TargetPort int    `json:"TargetPort"`
}

Jump to

Keyboard shortcuts

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