common

package
v0.0.0-...-fe4f5a4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterNamespacedPodsBySelector

func FilterNamespacedPodsBySelector(pods []api.Pod, namespace string, selector map[string]string) []api.Pod

func IsSelectorMatching

func IsSelectorMatching(labelSelector map[string]string, labels map[string]string) bool

Types

type Kind

type Kind string

type ListMeta

type ListMeta struct {
	Total int `json:"total"`
}

type NamespaceQuery

type NamespaceQuery struct {
	// contains filtered or unexported fields
}

func NewSameNamespaceQuery

func NewSameNamespaceQuery(namespace string) *NamespaceQuery

func (*NamespaceQuery) Matches

func (n *NamespaceQuery) Matches(namespace string) bool

func (*NamespaceQuery) ToRequestParam

func (n *NamespaceQuery) ToRequestParam() string

type ObjectMeta

type ObjectMeta struct {
	Name      string            `json:"name,omitempty"`
	Namespace string            `json:"namespace,omitempty"`
	Labels    map[string]string `json:"labels,omitempty"`
	Created   unversioned.Time  `json:"created,omitempty"`
}

func NewObjectMeta

func NewObjectMeta(k8SObjectMeta api.ObjectMeta) ObjectMeta

type PodListChannel

type PodListChannel struct {
	List  chan *api.PodList
	Error chan error
}

func GetPodListChannelWithOptions

func GetPodListChannelWithOptions(client k8s.IK8S, nsQuery *NamespaceQuery, options api.ListOptions, limit int) PodListChannel

type Spec

type Spec struct {
	Replicas             int32                         `json:"replicas,omitempty"`
	Selector             *unversioned.LabelSelector    `json:"selector,omitempty"`
	Template             api.PodTemplateSpec           `json:"template"`
	Strategy             extensions.DeploymentStrategy `json:"strategy,omitempty"`
	MinReadySeconds      int32                         `json:"minReadySeconds,omitempty"`
	RevisionHistoryLimit *int32                        `json:"revisionHistoryLimit,omitempty"`
	Paused               bool                          `json:"paused,omitempty"`
	RollbackTo           *extensions.RollbackConfig    `json:"rollbackTo,omitempty"`
}

func NewSpec

func NewSpec(k8sSpec extensions.DeploymentSpec) Spec

type TypeMeta

type TypeMeta struct {
	Kind Kind `json:"kind,omitempty"`
}

func NewTypeMeta

func NewTypeMeta(kind Kind) TypeMeta

Jump to

Keyboard shortcuts

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