Documentation ¶
Index ¶
- Variables
- 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 ServiceNodeName(o *kapi.Service) osgraph.UniqueName
- type PodNode
- type PodSpecNode
- type PodTemplateSpecNode
- type ReplicationControllerNode
- type ReplicationControllerSpecNode
- type ServiceNode
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() )
Functions ¶
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 ServiceNodeName ¶
func ServiceNodeName(o *kapi.Service) osgraph.UniqueName
Types ¶
type PodNode ¶
func EnsurePodNode ¶
func EnsurePodNode(g osgraph.MutableUniqueGraph, pod *kapi.Pod) *PodNode
func (PodNode) UniqueName ¶
func (n PodNode) UniqueName() osgraph.UniqueName
type PodSpecNode ¶
func EnsurePodSpecNode ¶
func EnsurePodSpecNode(g osgraph.MutableUniqueGraph, podSpec *kapi.PodSpec, 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 OwnerName osgraph.UniqueName }
func EnsurePodTemplateSpecNode ¶
func EnsurePodTemplateSpecNode(g osgraph.MutableUniqueGraph, ptSpec *kapi.PodTemplateSpec, 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 *kapi.ReplicationController }
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) 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 *kapi.ReplicationControllerSpec OwnerName osgraph.UniqueName }
func EnsureReplicationControllerSpecNode ¶
func EnsureReplicationControllerSpecNode(g osgraph.MutableUniqueGraph, rcSpec *kapi.ReplicationControllerSpec, 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 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 (*ServiceNode) Kind ¶
func (*ServiceNode) Kind() string
func (ServiceNode) Object ¶
func (n ServiceNode) Object() interface{}
func (ServiceNode) String ¶
func (n ServiceNode) String() string
Click to show internal directories.
Click to hide internal directories.