nodes

package
v0.0.0-...-d3d374b Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ServiceNodeKind                   = reflect.TypeOf(kapi.Service{}).Name()
	PodNodeKind                       = reflect.TypeOf(kapi.Pod{}).Name()
	PodSpecNodeKind                   = reflect.TypeOf(kapi.PodSpec{}).Name()
	PodTemplateSpecNodeKind           = reflect.TypeOf(kapi.PodTemplateSpec{}).Name()
	ReplicationControllerNodeKind     = reflect.TypeOf(kapi.ReplicationController{}).Name()
	ReplicationControllerSpecNodeKind = reflect.TypeOf(kapi.ReplicationControllerSpec{}).Name()
	ServiceAccountNodeKind            = reflect.TypeOf(kapi.ServiceAccount{}).Name()
	SecretNodeKind                    = reflect.TypeOf(kapi.Secret{}).Name()
	PersistentVolumeClaimNodeKind     = reflect.TypeOf(kapi.PersistentVolumeClaim{}).Name()
	HorizontalPodAutoscalerNodeKind   = reflect.TypeOf(autoscaling.HorizontalPodAutoscaler{}).Name()
	PetSetNodeKind                    = reflect.TypeOf(kapps.PetSet{}).Name()
	PetSetSpecNodeKind                = reflect.TypeOf(kapps.PetSetSpec{}).Name()
)

Functions

func PersistentVolumeClaimNodeName

func PersistentVolumeClaimNodeName(o *kapi.PersistentVolumeClaim) osgraph.UniqueName

func PetSetNodeName

func PetSetNodeName(o *kapps.PetSet) osgraph.UniqueName

func PetSetSpecNodeName

func PetSetSpecNodeName(o *kapps.PetSetSpec, ownerName osgraph.UniqueName) osgraph.UniqueName

func PodNodeName

func PodNodeName(o *kapi.Pod) osgraph.UniqueName

func PodSpecNodeName

func PodSpecNodeName(o *kapi.PodSpec, ownerName osgraph.UniqueName) osgraph.UniqueName

func PodTemplateSpecNodeName

func PodTemplateSpecNodeName(o *kapi.PodTemplateSpec, ownerName osgraph.UniqueName) osgraph.UniqueName

func ReplicationControllerNodeName

func ReplicationControllerNodeName(o *kapi.ReplicationController) osgraph.UniqueName

func ReplicationControllerSpecNodeName

func ReplicationControllerSpecNodeName(o *kapi.ReplicationControllerSpec, ownerName osgraph.UniqueName) osgraph.UniqueName

func SecretNodeName

func SecretNodeName(o *kapi.Secret) osgraph.UniqueName

func ServiceAccountNodeName

func ServiceAccountNodeName(o *kapi.ServiceAccount) osgraph.UniqueName

func ServiceNodeName

func ServiceNodeName(o *kapi.Service) osgraph.UniqueName

Types

type HorizontalPodAutoscalerNode

type HorizontalPodAutoscalerNode struct {
	osgraph.Node
	HorizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler
}

func (*HorizontalPodAutoscalerNode) Kind

func (HorizontalPodAutoscalerNode) Object

func (n HorizontalPodAutoscalerNode) Object() interface{}

func (HorizontalPodAutoscalerNode) String

func (HorizontalPodAutoscalerNode) UniqueName

type PersistentVolumeClaimNode

type PersistentVolumeClaimNode struct {
	osgraph.Node
	PersistentVolumeClaim *kapi.PersistentVolumeClaim

	IsFound bool
}

func (PersistentVolumeClaimNode) Found

func (n PersistentVolumeClaimNode) Found() bool

func (*PersistentVolumeClaimNode) Kind

func (PersistentVolumeClaimNode) Object

func (n PersistentVolumeClaimNode) Object() interface{}

func (PersistentVolumeClaimNode) String

func (n PersistentVolumeClaimNode) String() string

func (PersistentVolumeClaimNode) UniqueName

type PetSetNode

type PetSetNode struct {
	osgraph.Node
	PetSet *kapps.PetSet
}

func EnsurePetSetNode

func EnsurePetSetNode(g osgraph.MutableUniqueGraph, petset *kapps.PetSet) *PetSetNode

func (*PetSetNode) Kind

func (*PetSetNode) Kind() string

func (PetSetNode) Object

func (n PetSetNode) Object() interface{}

func (PetSetNode) String

func (n PetSetNode) String() string

func (PetSetNode) UniqueName

func (n PetSetNode) UniqueName() osgraph.UniqueName

type PetSetSpecNode

type PetSetSpecNode struct {
	osgraph.Node
	PetSetSpec *kapps.PetSetSpec
	Namespace  string

	OwnerName osgraph.UniqueName
}

func EnsurePetSetSpecNode

func EnsurePetSetSpecNode(g osgraph.MutableUniqueGraph, spec *kapps.PetSetSpec, namespace string, ownerName osgraph.UniqueName) *PetSetSpecNode

func (*PetSetSpecNode) Kind

func (*PetSetSpecNode) Kind() string

func (PetSetSpecNode) Object

func (n PetSetSpecNode) Object() interface{}

func (PetSetSpecNode) String

func (n PetSetSpecNode) String() string

func (PetSetSpecNode) UniqueName

func (n PetSetSpecNode) UniqueName() osgraph.UniqueName

type PodNode

type PodNode struct {
	osgraph.Node
	*kapi.Pod
}

func EnsurePodNode

func EnsurePodNode(g osgraph.MutableUniqueGraph, pod *kapi.Pod) *PodNode

func (*PodNode) Kind

func (*PodNode) Kind() string

func (PodNode) Object

func (n PodNode) Object() interface{}

func (PodNode) String

func (n PodNode) String() string

func (PodNode) UniqueName

func (n PodNode) UniqueName() osgraph.UniqueName

type PodSpecNode

type PodSpecNode struct {
	osgraph.Node
	*kapi.PodSpec
	Namespace string

	OwnerName osgraph.UniqueName
}

func EnsurePodSpecNode

func EnsurePodSpecNode(g osgraph.MutableUniqueGraph, podSpec *kapi.PodSpec, namespace string, ownerName osgraph.UniqueName) *PodSpecNode

func (*PodSpecNode) Kind

func (*PodSpecNode) Kind() string

func (PodSpecNode) Object

func (n PodSpecNode) Object() interface{}

func (PodSpecNode) String

func (n PodSpecNode) String() string

func (PodSpecNode) UniqueName

func (n PodSpecNode) UniqueName() osgraph.UniqueName

type PodTemplateSpecNode

type PodTemplateSpecNode struct {
	osgraph.Node
	*kapi.PodTemplateSpec
	Namespace string

	OwnerName osgraph.UniqueName
}

func EnsurePodTemplateSpecNode

func EnsurePodTemplateSpecNode(g osgraph.MutableUniqueGraph, ptSpec *kapi.PodTemplateSpec, namespace string, ownerName osgraph.UniqueName) *PodTemplateSpecNode

func (*PodTemplateSpecNode) Kind

func (*PodTemplateSpecNode) Kind() string

func (PodTemplateSpecNode) Object

func (n PodTemplateSpecNode) Object() interface{}

func (PodTemplateSpecNode) String

func (n PodTemplateSpecNode) String() string

func (PodTemplateSpecNode) UniqueName

func (n PodTemplateSpecNode) UniqueName() osgraph.UniqueName

type ReplicationControllerNode

type ReplicationControllerNode struct {
	osgraph.Node
	ReplicationController *kapi.ReplicationController

	IsFound bool
}

func EnsureReplicationControllerNode

func EnsureReplicationControllerNode(g osgraph.MutableUniqueGraph, rc *kapi.ReplicationController) *ReplicationControllerNode

EnsureReplicationControllerNode adds a graph node for the ReplicationController if it does not already exist.

func (ReplicationControllerNode) Found

func (n ReplicationControllerNode) Found() bool

func (*ReplicationControllerNode) Kind

func (ReplicationControllerNode) Object

func (n ReplicationControllerNode) Object() interface{}

func (ReplicationControllerNode) String

func (n ReplicationControllerNode) String() string

func (ReplicationControllerNode) UniqueName

type ReplicationControllerSpecNode

type ReplicationControllerSpecNode struct {
	osgraph.Node
	ReplicationControllerSpec *kapi.ReplicationControllerSpec
	Namespace                 string

	OwnerName osgraph.UniqueName
}

func (*ReplicationControllerSpecNode) Kind

func (ReplicationControllerSpecNode) Object

func (n ReplicationControllerSpecNode) Object() interface{}

func (ReplicationControllerSpecNode) String

func (ReplicationControllerSpecNode) UniqueName

type SecretNode

type SecretNode struct {
	osgraph.Node
	*kapi.Secret

	IsFound bool
}

func EnsureSecretNode

func EnsureSecretNode(g osgraph.MutableUniqueGraph, o *kapi.Secret) *SecretNode

func FindOrCreateSyntheticSecretNode

func FindOrCreateSyntheticSecretNode(g osgraph.MutableUniqueGraph, o *kapi.Secret) *SecretNode

func (SecretNode) Found

func (n SecretNode) Found() bool

func (*SecretNode) Kind

func (*SecretNode) Kind() string

func (SecretNode) Object

func (n SecretNode) Object() interface{}

func (SecretNode) String

func (n SecretNode) String() string

type ServiceAccountNode

type ServiceAccountNode struct {
	osgraph.Node
	*kapi.ServiceAccount

	IsFound bool
}

func (ServiceAccountNode) Found

func (n ServiceAccountNode) Found() bool

func (*ServiceAccountNode) Kind

func (*ServiceAccountNode) Kind() string

func (ServiceAccountNode) Object

func (n ServiceAccountNode) Object() interface{}

func (ServiceAccountNode) String

func (n ServiceAccountNode) String() string

type ServiceNode

type ServiceNode struct {
	osgraph.Node
	*kapi.Service

	IsFound bool
}

func EnsureServiceNode

func EnsureServiceNode(g osgraph.MutableUniqueGraph, svc *kapi.Service) *ServiceNode

EnsureServiceNode adds the provided service to the graph if it does not already exist.

func FindOrCreateSyntheticServiceNode

func FindOrCreateSyntheticServiceNode(g osgraph.MutableUniqueGraph, svc *kapi.Service) *ServiceNode

FindOrCreateSyntheticServiceNode returns the existing service node or creates a synthetic node in its place

func (ServiceNode) Found

func (n ServiceNode) Found() bool

func (*ServiceNode) Kind

func (*ServiceNode) Kind() string

func (ServiceNode) Object

func (n ServiceNode) Object() interface{}

func (ServiceNode) String

func (n ServiceNode) String() string

Jump to

Keyboard shortcuts

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