Documentation ¶
Index ¶
- Variables
- func HorizontalPodAutoscalerNodeName(o *autoscaling.HorizontalPodAutoscaler) osgraph.UniqueName
- func PersistentVolumeClaimNodeName(o *kapi.PersistentVolumeClaim) osgraph.UniqueName
- func PodNodeName(o *kapi.Pod) osgraph.UniqueName
- func PodSpecNodeName(o *kapi.PodSpec, ownerName osgraph.UniqueName) osgraph.UniqueName
- func PodTemplateSpecNodeName(o *kapi.PodTemplateSpec, ownerName osgraph.UniqueName) osgraph.UniqueName
- func ReplicationControllerNodeName(o *kapi.ReplicationController) osgraph.UniqueName
- func ReplicationControllerSpecNodeName(o *kapi.ReplicationControllerSpec, ownerName osgraph.UniqueName) osgraph.UniqueName
- func SecretNodeName(o *kapi.Secret) osgraph.UniqueName
- func ServiceAccountNodeName(o *kapi.ServiceAccount) osgraph.UniqueName
- func ServiceNodeName(o *kapi.Service) osgraph.UniqueName
- func StatefulSetNodeName(o *kapps.StatefulSet) osgraph.UniqueName
- func StatefulSetSpecNodeName(o *kapps.StatefulSetSpec, ownerName osgraph.UniqueName) osgraph.UniqueName
- type HorizontalPodAutoscalerNode
- type PersistentVolumeClaimNode
- type PodNode
- type PodSpecNode
- type PodTemplateSpecNode
- type ReplicationControllerNode
- type ReplicationControllerSpecNode
- type SecretNode
- type ServiceAccountNode
- type ServiceNode
- type StatefulSetNode
- type StatefulSetSpecNode
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() StatefulSetNodeKind = reflect.TypeOf(kapps.StatefulSet{}).Name() StatefulSetSpecNodeKind = reflect.TypeOf(kapps.StatefulSetSpec{}).Name() )
Functions ¶
func HorizontalPodAutoscalerNodeName ¶ added in v1.3.0
func HorizontalPodAutoscalerNodeName(o *autoscaling.HorizontalPodAutoscaler) osgraph.UniqueName
func PersistentVolumeClaimNodeName ¶ added in v1.4.0
func PersistentVolumeClaimNodeName(o *kapi.PersistentVolumeClaim) 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 ¶ added in v1.0.2
func SecretNodeName(o *kapi.Secret) osgraph.UniqueName
func ServiceAccountNodeName ¶ added in v1.0.2
func ServiceAccountNodeName(o *kapi.ServiceAccount) osgraph.UniqueName
func ServiceNodeName ¶
func ServiceNodeName(o *kapi.Service) osgraph.UniqueName
func StatefulSetNodeName ¶
func StatefulSetNodeName(o *kapps.StatefulSet) osgraph.UniqueName
func StatefulSetSpecNodeName ¶
func StatefulSetSpecNodeName(o *kapps.StatefulSetSpec, ownerName osgraph.UniqueName) osgraph.UniqueName
Types ¶
type HorizontalPodAutoscalerNode ¶ added in v1.3.0
type HorizontalPodAutoscalerNode struct { osgraph.Node HorizontalPodAutoscaler *autoscaling.HorizontalPodAutoscaler }
func EnsureHorizontalPodAutoscalerNode ¶ added in v1.3.0
func EnsureHorizontalPodAutoscalerNode(g osgraph.MutableUniqueGraph, hpa *autoscaling.HorizontalPodAutoscaler) *HorizontalPodAutoscalerNode
func (*HorizontalPodAutoscalerNode) Kind ¶ added in v1.3.0
func (*HorizontalPodAutoscalerNode) Kind() string
func (HorizontalPodAutoscalerNode) Object ¶ added in v1.3.0
func (n HorizontalPodAutoscalerNode) Object() interface{}
func (HorizontalPodAutoscalerNode) String ¶ added in v1.3.0
func (n HorizontalPodAutoscalerNode) String() string
func (HorizontalPodAutoscalerNode) UniqueName ¶ added in v1.3.0
func (n HorizontalPodAutoscalerNode) UniqueName() osgraph.UniqueName
type PersistentVolumeClaimNode ¶ added in v1.4.0
type PersistentVolumeClaimNode struct { osgraph.Node PersistentVolumeClaim *kapi.PersistentVolumeClaim IsFound bool }
func EnsurePersistentVolumeClaimNode ¶ added in v1.4.0
func EnsurePersistentVolumeClaimNode(g osgraph.MutableUniqueGraph, pvc *kapi.PersistentVolumeClaim) *PersistentVolumeClaimNode
func FindOrCreateSyntheticPVCNode ¶ added in v1.4.0
func FindOrCreateSyntheticPVCNode(g osgraph.MutableUniqueGraph, pvc *kapi.PersistentVolumeClaim) *PersistentVolumeClaimNode
func (PersistentVolumeClaimNode) Found ¶ added in v1.4.0
func (n PersistentVolumeClaimNode) Found() bool
func (*PersistentVolumeClaimNode) Kind ¶ added in v1.4.0
func (*PersistentVolumeClaimNode) Kind() string
func (PersistentVolumeClaimNode) Object ¶ added in v1.4.0
func (n PersistentVolumeClaimNode) Object() interface{}
func (PersistentVolumeClaimNode) String ¶ added in v1.4.0
func (n PersistentVolumeClaimNode) String() string
func (PersistentVolumeClaimNode) UniqueName ¶ added in v1.4.0
func (n PersistentVolumeClaimNode) UniqueName() osgraph.UniqueName
type PodNode ¶
func EnsurePodNode ¶
func EnsurePodNode(g osgraph.MutableUniqueGraph, pod *kapi.Pod) *PodNode
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 FindOrCreateSyntheticReplicationControllerNode ¶ added in v1.3.0
func FindOrCreateSyntheticReplicationControllerNode(g osgraph.MutableUniqueGraph, rc *kapi.ReplicationController) *ReplicationControllerNode
func (ReplicationControllerNode) Found ¶ added in v1.3.0
func (n ReplicationControllerNode) Found() bool
func (*ReplicationControllerNode) Kind ¶
func (*ReplicationControllerNode) Kind() string
func (ReplicationControllerNode) Object ¶
func (n ReplicationControllerNode) Object() interface{}
func (ReplicationControllerNode) String ¶
func (n ReplicationControllerNode) String() string
func (ReplicationControllerNode) UniqueName ¶
func (n ReplicationControllerNode) UniqueName() osgraph.UniqueName
type ReplicationControllerSpecNode ¶
type ReplicationControllerSpecNode struct { osgraph.Node ReplicationControllerSpec *kapi.ReplicationControllerSpec Namespace string OwnerName osgraph.UniqueName }
func EnsureReplicationControllerSpecNode ¶
func EnsureReplicationControllerSpecNode(g osgraph.MutableUniqueGraph, rcSpec *kapi.ReplicationControllerSpec, namespace string, ownerName osgraph.UniqueName) *ReplicationControllerSpecNode
func (*ReplicationControllerSpecNode) Kind ¶
func (*ReplicationControllerSpecNode) Kind() string
func (ReplicationControllerSpecNode) Object ¶
func (n ReplicationControllerSpecNode) Object() interface{}
func (ReplicationControllerSpecNode) String ¶
func (n ReplicationControllerSpecNode) String() string
func (ReplicationControllerSpecNode) UniqueName ¶
func (n ReplicationControllerSpecNode) UniqueName() osgraph.UniqueName
type SecretNode ¶ added in v1.0.2
func EnsureSecretNode ¶ added in v1.0.2
func EnsureSecretNode(g osgraph.MutableUniqueGraph, o *kapi.Secret) *SecretNode
func FindOrCreateSyntheticSecretNode ¶ added in v1.0.2
func FindOrCreateSyntheticSecretNode(g osgraph.MutableUniqueGraph, o *kapi.Secret) *SecretNode
func (SecretNode) Found ¶ added in v1.0.2
func (n SecretNode) Found() bool
func (*SecretNode) Kind ¶ added in v1.0.2
func (*SecretNode) Kind() string
func (SecretNode) Object ¶ added in v1.0.2
func (n SecretNode) Object() interface{}
func (SecretNode) String ¶ added in v1.0.2
func (n SecretNode) String() string
type ServiceAccountNode ¶ added in v1.0.2
type ServiceAccountNode struct { osgraph.Node *kapi.ServiceAccount IsFound bool }
func EnsureServiceAccountNode ¶ added in v1.0.2
func EnsureServiceAccountNode(g osgraph.MutableUniqueGraph, o *kapi.ServiceAccount) *ServiceAccountNode
func FindOrCreateSyntheticServiceAccountNode ¶ added in v1.0.2
func FindOrCreateSyntheticServiceAccountNode(g osgraph.MutableUniqueGraph, o *kapi.ServiceAccount) *ServiceAccountNode
func (ServiceAccountNode) Found ¶ added in v1.0.2
func (n ServiceAccountNode) Found() bool
func (*ServiceAccountNode) Kind ¶ added in v1.0.2
func (*ServiceAccountNode) Kind() string
func (ServiceAccountNode) Object ¶ added in v1.0.2
func (n ServiceAccountNode) Object() interface{}
func (ServiceAccountNode) String ¶ added in v1.0.2
func (n ServiceAccountNode) String() string
type ServiceNode ¶
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 ¶ added in v1.0.8
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 ¶ added in v1.0.8
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
type StatefulSetNode ¶
type StatefulSetNode struct { osgraph.Node StatefulSet *kapps.StatefulSet }
func EnsureStatefulSetNode ¶
func EnsureStatefulSetNode(g osgraph.MutableUniqueGraph, statefulSet *kapps.StatefulSet) *StatefulSetNode
func (*StatefulSetNode) Kind ¶
func (*StatefulSetNode) Kind() string
func (StatefulSetNode) Object ¶
func (n StatefulSetNode) Object() interface{}
func (StatefulSetNode) String ¶
func (n StatefulSetNode) String() string
func (StatefulSetNode) UniqueName ¶
func (n StatefulSetNode) UniqueName() osgraph.UniqueName
type StatefulSetSpecNode ¶
type StatefulSetSpecNode struct { osgraph.Node StatefulSetSpec *kapps.StatefulSetSpec Namespace string OwnerName osgraph.UniqueName }
func EnsureStatefulSetSpecNode ¶
func EnsureStatefulSetSpecNode(g osgraph.MutableUniqueGraph, spec *kapps.StatefulSetSpec, namespace string, ownerName osgraph.UniqueName) *StatefulSetSpecNode
func (*StatefulSetSpecNode) Kind ¶
func (*StatefulSetSpecNode) Kind() string
func (StatefulSetSpecNode) Object ¶
func (n StatefulSetSpecNode) Object() interface{}
func (StatefulSetSpecNode) String ¶
func (n StatefulSetSpecNode) String() string
func (StatefulSetSpecNode) UniqueName ¶
func (n StatefulSetSpecNode) UniqueName() osgraph.UniqueName
Click to show internal directories.
Click to hide internal directories.