model

package
v0.0.0-...-153f138 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CompletedColor = "#66ff33"
	RunningColor   = "#00ffff"
	FailedColor    = "#ff3300"
)

Variables

This section is empty.

Functions

func IsKNativeSkippableService

func IsKNativeSkippableService(service v1.Service) bool

Types

type ClusterRoleBinding

type ClusterRoleBinding struct {
	Delegate authv1T.ClusterRoleBinding
}

func (ClusterRoleBinding) ConnectedKinds

func (c ClusterRoleBinding) ConnectedKinds() []string

func (ClusterRoleBinding) ConnectedResources

func (c ClusterRoleBinding) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (ClusterRoleBinding) Icon

func (c ClusterRoleBinding) Icon() string

func (ClusterRoleBinding) Id

func (c ClusterRoleBinding) Id() string

func (ClusterRoleBinding) IsOwnerOf

func (c ClusterRoleBinding) IsOwnerOf(owner metav1.OwnerReference) bool

func (ClusterRoleBinding) Kind

func (c ClusterRoleBinding) Kind() string

func (ClusterRoleBinding) Label

func (c ClusterRoleBinding) Label() string

func (ClusterRoleBinding) Name

func (c ClusterRoleBinding) Name() string

func (ClusterRoleBinding) OwnerReferences

func (c ClusterRoleBinding) OwnerReferences() []metav1.OwnerReference

func (ClusterRoleBinding) StatusColor

func (c ClusterRoleBinding) StatusColor() (string, bool)

type ClusterServiceVersion

type ClusterServiceVersion struct {
	Delegate metav1.OwnerReference
}

func (ClusterServiceVersion) ConnectedKinds

func (csv ClusterServiceVersion) ConnectedKinds() []string

func (ClusterServiceVersion) ConnectedResources

func (csv ClusterServiceVersion) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (ClusterServiceVersion) Icon

func (csv ClusterServiceVersion) Icon() string

func (ClusterServiceVersion) Id

func (csv ClusterServiceVersion) Id() string

func (ClusterServiceVersion) IsOwnerOf

func (csv ClusterServiceVersion) IsOwnerOf(owner metav1.OwnerReference) bool

func (ClusterServiceVersion) Kind

func (csv ClusterServiceVersion) Kind() string

func (ClusterServiceVersion) Label

func (csv ClusterServiceVersion) Label() string

func (ClusterServiceVersion) Name

func (csv ClusterServiceVersion) Name() string

func (ClusterServiceVersion) OwnerReferences

func (csv ClusterServiceVersion) OwnerReferences() []metav1.OwnerReference

func (ClusterServiceVersion) StatusColor

func (csv ClusterServiceVersion) StatusColor() (string, bool)

type Connection

type Connection struct {
	From Resource
	To   Resource
	Name string
}

type CustomResource

type CustomResource struct {
	Delegate metav1.OwnerReference
}

func (CustomResource) ConnectedKinds

func (cr CustomResource) ConnectedKinds() []string

func (CustomResource) ConnectedResources

func (cr CustomResource) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (CustomResource) Icon

func (cr CustomResource) Icon() string

func (CustomResource) Id

func (cr CustomResource) Id() string

func (CustomResource) IsOwnerOf

func (cr CustomResource) IsOwnerOf(owner metav1.OwnerReference) bool

func (CustomResource) Kind

func (cr CustomResource) Kind() string

func (CustomResource) Label

func (cr CustomResource) Label() string

func (CustomResource) Name

func (cr CustomResource) Name() string

func (CustomResource) OwnerReferences

func (cr CustomResource) OwnerReferences() []metav1.OwnerReference

func (CustomResource) StatusColor

func (cr CustomResource) StatusColor() (string, bool)

type Deployment

type Deployment struct {
	Delegate v1.Deployment
}

func (Deployment) ConnectedKinds

func (d Deployment) ConnectedKinds() []string

func (Deployment) ConnectedResources

func (d Deployment) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (Deployment) Icon

func (d Deployment) Icon() string

func (Deployment) Id

func (d Deployment) Id() string

func (Deployment) IsOwnerOf

func (d Deployment) IsOwnerOf(owner metav1.OwnerReference) bool

func (Deployment) Kind

func (d Deployment) Kind() string

func (Deployment) Label

func (d Deployment) Label() string

func (Deployment) Name

func (d Deployment) Name() string

func (Deployment) OwnerReferences

func (d Deployment) OwnerReferences() []metav1.OwnerReference

func (Deployment) StatusColor

func (d Deployment) StatusColor() (string, bool)

type DeploymentConfig

type DeploymentConfig struct {
	Delegate appsv1T.DeploymentConfig
}

func (DeploymentConfig) ConnectedKinds

func (d DeploymentConfig) ConnectedKinds() []string

func (DeploymentConfig) ConnectedResources

func (d DeploymentConfig) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (DeploymentConfig) Icon

func (d DeploymentConfig) Icon() string

func (DeploymentConfig) Id

func (d DeploymentConfig) Id() string

func (DeploymentConfig) IsOwnerOf

func (d DeploymentConfig) IsOwnerOf(owner metav1.OwnerReference) bool

func (DeploymentConfig) Kind

func (d DeploymentConfig) Kind() string

func (DeploymentConfig) Label

func (d DeploymentConfig) Label() string

func (DeploymentConfig) Name

func (d DeploymentConfig) Name() string

func (DeploymentConfig) OwnerReferences

func (d DeploymentConfig) OwnerReferences() []metav1.OwnerReference

func (DeploymentConfig) StatusColor

func (d DeploymentConfig) StatusColor() (string, bool)

type NamespaceModel

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

func (*NamespaceModel) AddConnection

func (namespace *NamespaceModel) AddConnection(from Resource, to Resource) *Connection

func (*NamespaceModel) AddNamedConnection

func (namespace *NamespaceModel) AddNamedConnection(from Resource, to Resource, name string) *Connection

func (NamespaceModel) AddResource

func (namespace NamespaceModel) AddResource(resource Resource) bool

func (NamespaceModel) AllConnections

func (namespace NamespaceModel) AllConnections() []Connection

func (NamespaceModel) AllKinds

func (namespace NamespaceModel) AllKinds() []string

func (NamespaceModel) AllResources

func (namespace NamespaceModel) AllResources() []Resource

func (NamespaceModel) Debug

func (namespace NamespaceModel) Debug(header string) string

func (NamespaceModel) LookupByKindAndId

func (namespace NamespaceModel) LookupByKindAndId(kind string, id string) Resource

func (NamespaceModel) LookupOwner

func (namespace NamespaceModel) LookupOwner(owner metav1.OwnerReference) Resource

func (NamespaceModel) Name

func (namespace NamespaceModel) Name() string

func (NamespaceModel) ResourcesByKind

func (namespace NamespaceModel) ResourcesByKind(kind string) []Resource

type Pod

type Pod struct {
	Delegate v1.Pod
}

func (Pod) ConnectedKinds

func (p Pod) ConnectedKinds() []string

func (Pod) ConnectedResources

func (p Pod) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (Pod) Icon

func (p Pod) Icon() string

func (Pod) Id

func (p Pod) Id() string

func (Pod) IsOwnerOf

func (p Pod) IsOwnerOf(owner metav1.OwnerReference) bool

func (Pod) Kind

func (d Pod) Kind() string

func (Pod) Label

func (p Pod) Label() string

func (Pod) Name

func (p Pod) Name() string

func (Pod) OwnerReferences

func (p Pod) OwnerReferences() []metav1.OwnerReference

func (Pod) StatusColor

func (p Pod) StatusColor() (string, bool)

type Resource

type Resource interface {
	Kind() string
	Id() string
	Name() string
	Label() string
	Icon() string
	StatusColor() (string, bool)

	OwnerReferences() []metav1.OwnerReference
	IsOwnerOf(owner metav1.OwnerReference) bool

	ConnectedKinds() []string
	ConnectedResources(kind string, resources []Resource) ([]Resource, string)
}

type RoleBinding

type RoleBinding struct {
	Delegate authv1T.RoleBinding
}

func (RoleBinding) ConnectedKinds

func (r RoleBinding) ConnectedKinds() []string

func (RoleBinding) ConnectedResources

func (r RoleBinding) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (RoleBinding) Icon

func (r RoleBinding) Icon() string

func (RoleBinding) Id

func (r RoleBinding) Id() string

func (RoleBinding) IsOwnerOf

func (r RoleBinding) IsOwnerOf(owner metav1.OwnerReference) bool

func (RoleBinding) Kind

func (r RoleBinding) Kind() string

func (RoleBinding) Label

func (r RoleBinding) Label() string

func (RoleBinding) Name

func (r RoleBinding) Name() string

func (RoleBinding) OwnerReferences

func (r RoleBinding) OwnerReferences() []metav1.OwnerReference

func (RoleBinding) StatusColor

func (r RoleBinding) StatusColor() (string, bool)

type Route

type Route struct {
	Delegate routev1T.Route
}

func (Route) ConnectedKinds

func (r Route) ConnectedKinds() []string

func (Route) ConnectedResources

func (r Route) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (Route) Icon

func (r Route) Icon() string

func (Route) Id

func (r Route) Id() string

func (Route) IsOwnerOf

func (r Route) IsOwnerOf(owner metav1.OwnerReference) bool

func (Route) Kind

func (r Route) Kind() string

func (Route) Label

func (r Route) Label() string

func (Route) Name

func (r Route) Name() string

func (Route) OwnerReferences

func (r Route) OwnerReferences() []metav1.OwnerReference

func (Route) StatusColor

func (r Route) StatusColor() (string, bool)

type Service

type Service struct {
	Delegate v1.Service
}

func (Service) ConnectedKinds

func (s Service) ConnectedKinds() []string

func (Service) ConnectedResources

func (s Service) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (Service) Icon

func (s Service) Icon() string

func (Service) Id

func (s Service) Id() string

func (Service) IsOwnerOf

func (s Service) IsOwnerOf(owner metav1.OwnerReference) bool

func (Service) Kind

func (s Service) Kind() string

func (Service) Label

func (s Service) Label() string

func (Service) Name

func (s Service) Name() string

func (Service) OwnerReferences

func (s Service) OwnerReferences() []metav1.OwnerReference

func (Service) StatusColor

func (s Service) StatusColor() (string, bool)

type ServiceAccount

type ServiceAccount struct {
	Delegate v1.ServiceAccount
}

func (ServiceAccount) ConnectedKinds

func (s ServiceAccount) ConnectedKinds() []string

func (ServiceAccount) ConnectedResources

func (s ServiceAccount) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (ServiceAccount) Icon

func (s ServiceAccount) Icon() string

func (ServiceAccount) Id

func (s ServiceAccount) Id() string

func (ServiceAccount) IsOwnerOf

func (s ServiceAccount) IsOwnerOf(owner metav1.OwnerReference) bool

func (ServiceAccount) Kind

func (s ServiceAccount) Kind() string

func (ServiceAccount) Label

func (s ServiceAccount) Label() string

func (ServiceAccount) Name

func (s ServiceAccount) Name() string

func (ServiceAccount) OwnerReferences

func (s ServiceAccount) OwnerReferences() []metav1.OwnerReference

func (ServiceAccount) StatusColor

func (s ServiceAccount) StatusColor() (string, bool)

func (ServiceAccount) TheClusterRoleBindings

func (s ServiceAccount) TheClusterRoleBindings(clusterRoleBindings *authv1T.ClusterRoleBindingList) []authv1T.ClusterRoleBinding

func (ServiceAccount) TheRoleBindings

func (s ServiceAccount) TheRoleBindings(roleBindings *authv1T.RoleBindingList) []authv1T.RoleBinding

type StatefulSet

type StatefulSet struct {
	Delegate v1.StatefulSet
}

func (StatefulSet) ConnectedKinds

func (s StatefulSet) ConnectedKinds() []string

func (StatefulSet) ConnectedResources

func (s StatefulSet) ConnectedResources(kind string, resources []Resource) ([]Resource, string)

func (StatefulSet) Icon

func (s StatefulSet) Icon() string

func (StatefulSet) Id

func (s StatefulSet) Id() string

func (StatefulSet) IsOwnerOf

func (s StatefulSet) IsOwnerOf(owner metav1.OwnerReference) bool

func (StatefulSet) Kind

func (s StatefulSet) Kind() string

func (StatefulSet) Label

func (s StatefulSet) Label() string

func (StatefulSet) Name

func (s StatefulSet) Name() string

func (StatefulSet) OwnerReferences

func (s StatefulSet) OwnerReferences() []metav1.OwnerReference

func (StatefulSet) StatusColor

func (s StatefulSet) StatusColor() (string, bool)

type TopologyModel

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

func NewTopologyModel

func NewTopologyModel() *TopologyModel

func (TopologyModel) AddNamespace

func (topology TopologyModel) AddNamespace(name string) *NamespaceModel

func (TopologyModel) AllNamespaces

func (topology TopologyModel) AllNamespaces() []NamespaceModel

func (TopologyModel) NamespaceByName

func (topology TopologyModel) NamespaceByName(name string) *NamespaceModel

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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