k8s

package
v2.6.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDaemonSets

func GetDaemonSets(dLister daemonset.Lister) ([]extensions.DaemonSet, error)

GetDaemonSets is a helper function that returns a slice of DaemonSet objects given a daemonset.Lister interface

func GetDaemonSetsModels

func GetDaemonSetsModels(k RunningK8sData) ([]*models.K8sResource, error)

GetDaemonSetsModels gets k8s daemonSet model data for RESTful consumption

func GetDeployments

func GetDeployments(depsLister deployment.Lister) ([]extensions.Deployment, error)

GetDeployments is a helper function that returns a slice of Deployment objects given a deployment.Lister interface

func GetDeploymentsModels

func GetDeploymentsModels(k RunningK8sData) ([]*models.K8sResource, error)

GetDeploymentsModels gets k8s deployment model data for RESTful consumption

func GetEventsModels

func GetEventsModels(k RunningK8sData) ([]*models.K8sResource, error)

GetEventsModels gets k8s event model data for RESTful consumption

func GetNodesModels

func GetNodesModels(k RunningK8sData) ([]*models.K8sResource, error)

GetNodesModels gets k8s node model data for RESTful consumption

func GetPodsModels

func GetPodsModels(k RunningK8sData) ([]*models.K8sResource, error)

GetPodsModels gets k8s pod model data for RESTful consumption

func GetReplicaSetsModels

func GetReplicaSetsModels(k RunningK8sData) ([]*models.K8sResource, error)

GetReplicaSetsModels gets k8s replicaSet model data for RESTful consumption

func GetReplicationControllers

func GetReplicationControllers(rcLister rc.Lister) ([]api.ReplicationController, error)

GetReplicationControllers is a helper function that returns a slice of ReplicationController objects given a rc.Lister interface

func GetReplicationControllersModels

func GetReplicationControllersModels(k RunningK8sData) ([]*models.K8sResource, error)

GetReplicationControllersModels gets k8s rc model data for RESTful consumption

func GetServicesModels

func GetServicesModels(k RunningK8sData) ([]*models.K8sResource, error)

GetServicesModels gets k8s pod model data for RESTful consumption

Types

type FakeKubeSecretGetterCreator

type FakeKubeSecretGetterCreator struct {
	*secret.FakeGetter
	*secret.FakeCreator
}

FakeKubeSecretGetterCreator is a composition of the secret.FakeGetter and secret.FakeCreator structs

func NewFakeKubeSecretGetterCreator

func NewFakeKubeSecretGetterCreator(fakeGetter *secret.FakeGetter, fakeCreator *secret.FakeCreator) *FakeKubeSecretGetterCreator

NewFakeKubeSecretGetterCreator creates a new FakeKubeSecretGetterCreator from the given fakeGetter and fakeCreator

type KubeSecretGetterCreator

type KubeSecretGetterCreator interface {
	secret.Getter
	secret.Creator
}

KubeSecretGetterCreator is a composition of secret.Getter and secret.Creator. Please refer to the Godoc for those two interfaces (https://godoc.org/github.com/arschles/kubeapp/api/secret)

type ResourceInterfaceNamespaced

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

ResourceInterfaceNamespaced is a "union" of ResourceInterface+namespace

func NewResourceInterfaceNamespaced

func NewResourceInterfaceNamespaced(ri ResourceInterface, ns string) *ResourceInterfaceNamespaced

NewResourceInterfaceNamespaced constructs an instance of ResourceInterfaceNamespaced

func (*ResourceInterfaceNamespaced) DaemonSets

DaemonSets implementation

func (*ResourceInterfaceNamespaced) Deployments

Deployments implementation

func (*ResourceInterfaceNamespaced) Events

Events implementation

func (*ResourceInterfaceNamespaced) Nodes

Nodes implementation

func (*ResourceInterfaceNamespaced) Pods

Pods implementation

func (*ResourceInterfaceNamespaced) ReplicaSets

ReplicaSets implementation

func (*ResourceInterfaceNamespaced) ReplicationControllers

ReplicationControllers implementation

func (*ResourceInterfaceNamespaced) Secrets

Secrets implementation

func (*ResourceInterfaceNamespaced) Services

Services implementation

type RunningK8sData

type RunningK8sData interface {
	// get DaemonSet model data for RESTful consumption
	DaemonSets() ([]*models.K8sResource, error)
	// get Deployment model data for RESTful consumption
	Deployments() ([]*models.K8sResource, error)
	// get Event model data for RESTful consumption
	Events() ([]*models.K8sResource, error)
	// get Node model data for RESTful consumption
	Nodes() ([]*models.K8sResource, error)
	// get Pod model data for RESTful consumption
	Pods() ([]*models.K8sResource, error)
	// get ReplicaSet model data for RESTful consumption
	ReplicaSets() ([]*models.K8sResource, error)
	// get ReplicationController model data for RESTful consumption
	ReplicationControllers() ([]*models.K8sResource, error)
	// get Service model data for RESTful consumption
	Services() ([]*models.K8sResource, error)
}

RunningK8sData is an interface for representing installed K8s data RESTFully

func NewRunningK8sData

func NewRunningK8sData(r *ResourceInterfaceNamespaced) RunningK8sData

NewRunningK8sData returns a new runningK8sData using rcl as the rc.Lister implementation

Jump to

Keyboard shortcuts

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