internal

package
v0.0.0-...-2d308e3 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	Nodes []*Node `json:"nodes"`
	Links []Link  `json:"links"`
	// contains filtered or unexported fields
}

func InitGraph

func InitGraph() *Graph

func (Graph) String

func (g Graph) String() string

type KubeClient

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

func InitKubeClient

func InitKubeClient(masterurl, kubeconfig string) (*KubeClient, error)

func (*KubeClient) GetAll

func (kc *KubeClient) GetAll(ctx context.Context, namespace string) (Graph, error)

func (*KubeClient) GetBuildConfigs

func (kc *KubeClient) GetBuildConfigs(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetBuilds

func (kc *KubeClient) GetBuilds(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetConfigMaps

func (kc *KubeClient) GetConfigMaps(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetCronJobs

func (kc *KubeClient) GetCronJobs(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetDaemonSets

func (kc *KubeClient) GetDaemonSets(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetDeploymentConfigs

func (kc *KubeClient) GetDeploymentConfigs(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetDeployments

func (kc *KubeClient) GetDeployments(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetEndpointSlices

func (kc *KubeClient) GetEndpointSlices(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetJobs

func (kc *KubeClient) GetJobs(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetPersistentVolumeClaims

func (kc *KubeClient) GetPersistentVolumeClaims(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetPods

func (kc *KubeClient) GetPods(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetProjects

func (kc *KubeClient) GetProjects(ctx context.Context) ([]Project, error)

func (*KubeClient) GetReplicaSets

func (kc *KubeClient) GetReplicaSets(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetReplicationControllers

func (kc *KubeClient) GetReplicationControllers(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetRoutes

func (kc *KubeClient) GetRoutes(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetSecrets

func (kc *KubeClient) GetSecrets(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetServices

func (kc *KubeClient) GetServices(ctx context.Context, graph *Graph, namespace string) error

func (*KubeClient) GetStatefulSets

func (kc *KubeClient) GetStatefulSets(ctx context.Context, graph *Graph, namespace string) error
type Link struct {
	Source string `json:"source"`
	Target string `json:"target"`
}

type Node

type Node struct {
	Uid    string                 `json:"id"`
	Kind   string                 `json:"kind"`
	Name   string                 `json:"name"`
	Object map[string]interface{} `json:"object"`
}

type Project

type Project struct {
	Name        string `json:"name"`
	DisplayName string `json:"displayname"`
}

Jump to

Keyboard shortcuts

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