k8s

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package k8s defines types needed

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIClient

func NewAPIClient(tlscfg *tls.Config) (*http.Client, error)

func NewAPIRequest

func NewAPIRequest(token string, reqURL string) (*http.Request, error)

Types

type Node

type Node struct {
	Metadata NodeMetadata `json:"metadata"`
	Status   NodeStatus   `json:"status"`
}

type NodeCondition

type NodeCondition struct {
	Type    string `json:"type"`
	Status  string `json:"status"`
	Message string `json:"message"`
}

type NodeInfo

type NodeInfo struct {
	KernelVersion  string `json:"kernelVersion"`
	OSImage        string `json:"osImage"`
	KubeletVersion string `json:"kubeletVersion"`
}

type NodeList

type NodeList struct {
	Items []Node `json:"items"`
}

type NodeMetadata

type NodeMetadata struct {
	Name     string            `json:"name"`
	SelfLink string            `json:"selfLink"`
	Labels   map[string]string `json:"labels"`
}

type NodeStatus

type NodeStatus struct {
	Conditions []NodeCondition `json:"conditions"`
	NodeInfo   NodeInfo        `json:"nodeInfo"`
}

type Service

type Service struct {
	Metadata ServiceMetadata `json:"metadata"`
	Spec     ServiceSpec     `json:"spec"`
}

type ServiceList

type ServiceList struct {
	Items []*Service `json:"items"`
}

type ServiceMetadata

type ServiceMetadata struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	SelfLink  string `json:"selfLink"`
}

type ServicePort

type ServicePort struct {
	Name       string `json:"name"`
	Protocol   string `json:"protocol"`
	Port       uint   `json:"port"`
	TargetPort string `json:"targetPort"`
}

type ServiceSpec

type ServiceSpec struct {
	Ports []ServicePort `json:"ports"`
}

Jump to

Keyboard shortcuts

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