page

package
v0.0.0-...-9cbdc0a Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombinedVersionsToStrings

func CombinedVersionsToStrings(items []CombinedVersion) (result []string)

func ReverseCombinedVersions

func ReverseCombinedVersions(items []CombinedVersion)

func SearchCombinedVersions

func SearchCombinedVersions(items []CombinedVersion, one string) int

func SortCombinedVersions

func SortCombinedVersions(versions []CombinedVersion)

SortCombinedVersions sorts a slice of combined versions

Types

type ByBirth

type ByBirth []Pod

ByBirth implements sort.Interface for []Pod based on the ContainerBirth field.

func (ByBirth) Len

func (a ByBirth) Len() int

func (ByBirth) Less

func (a ByBirth) Less(i, j int) bool

func (ByBirth) Swap

func (a ByBirth) Swap(i, j int)

type ByName

type ByName []Pod

func (ByName) Len

func (a ByName) Len() int

func (ByName) Less

func (a ByName) Less(i, j int) bool

func (ByName) Swap

func (a ByName) Swap(i, j int)

type CombinedVersion

type CombinedVersion struct {
	Prefix  string
	Version semver.Version
}

func LimitCombinedVersions

func LimitCombinedVersions(items []CombinedVersion, max int) []CombinedVersion

func ParseImageTag

func ParseImageTag(s string) (CombinedVersion, error)

ParseImageTag parses the docker image tag string and returns a validated Version or error

func (CombinedVersion) String

func (v CombinedVersion) String() string

type Endpoint

type Endpoint struct {
	Name      string
	Age       string
	Endpoints string
}

type Event

type Event struct {
	FirstSeen     string
	LastSeen      string
	Count         int
	FromComponent string
	FromHost      string
	SubobjectName string
	SubobjectKind string
	SubobjectPath string
	Reason        string
	Message       string
}

type Namespace

type Namespace struct {
	Name       string
	PodCount   int
	EventCount int
}

type Node

type Node struct {
	Name               string
	Status             []string
	Age                string
	Labels             map[string]string
	Capacity           map[string]string
	Pods               []*api.Pod
	TerminatedPods     []*api.Pod
	NonTerminatedPods  []*api.Pod
	AllocatedResources Resources
	FractionPods       int64
}

type NodeDetail

type NodeDetail struct {
	Name                       string
	Labels                     map[string]string
	CreationTimestamp          string
	Conditions                 []api.NodeCondition
	Capacity                   map[string]string
	SystemInfo                 api.NodeSystemInfo
	Pods                       []*api.Pod
	TerminatedPods             []*api.Pod
	NonTerminatedPods          []*api.Pod
	TerminatedPodsResources    []Resources
	NonTerminatedPodsResources []Resources
	AllocatedResources         Resources
}

type Pod

type Pod struct {
	Namespace       string
	Name            string
	Images          []PodImage
	TotalContainers int
	ReadyContainers int
	Status          string
	Restarts        int
	Age             string
	ContainerAge    string
	ContainerBirth  time.Time
	HostNetwork     bool
	HostIP          string
	PodIP           string
	Ports           []string
	Requests        map[string]string
	Limits          map[string]string
}

func FilterPodsByHost

func FilterPodsByHost(pods []Pod, host string) (result []Pod)

func FilterPodsByImage

func FilterPodsByImage(pods []Pod, image PodImage) (result []Pod)

func FilterPodsByStatus

func FilterPodsByStatus(pods []Pod, status string) (result []Pod)

type PodImage

type PodImage struct {
	Image       string
	PrivateRepo bool
}

func GetPodsFilters

func GetPodsFilters(pods []Pod) (images []PodImage, statuses []string, hosts []string)

type ReplicationController

type ReplicationController struct {
	Name            string
	DesiredReplicas int
	CurrentReplicas int
	Age             string
	Selector        map[string]string
	SelectorString  string
	TemplateImages  []PodImage
}

type Resources

type Resources struct {
	Namespace             string
	Name                  string
	CpuRequest            string
	CpuLimit              string
	MemoryRequest         string
	MemoryLimit           string
	FractionCpuRequest    int64
	FractionCpuLimit      int64
	FractionMemoryRequest int64
	FractionMemoryLimit   int64
}

type Service

type Service struct {
	Name           string
	InternalIP     string
	ExternalIP     string
	Ports          []string
	Age            string
	Selector       map[string]string
	SelectorString string
}

type SimpleImage

type SimpleImage struct {
	Name string
	Tags []string
}

type SimplePod

type SimplePod struct {
	Name   string   `json:"name,omitempty"`
	Images []string `json:"images,omitempty"`
}

type Summary

type Summary struct {
	Namespaces []Namespace
	NodeCount  int
}

Jump to

Keyboard shortcuts

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