Documentation
¶
Index ¶
- func GetDaemonSets(dLister daemonset.Lister) ([]extensions.DaemonSet, error)
- func GetDaemonSetsModels(k RunningK8sData) ([]*models.K8sResource, error)
- func GetDeployments(depsLister deployment.Lister) ([]extensions.Deployment, error)
- func GetDeploymentsModels(k RunningK8sData) ([]*models.K8sResource, error)
- func GetEventsModels(k RunningK8sData) ([]*models.K8sResource, error)
- func GetNodesModels(k RunningK8sData) ([]*models.K8sResource, error)
- func GetPodsModels(k RunningK8sData) ([]*models.K8sResource, error)
- func GetReplicaSetsModels(k RunningK8sData) ([]*models.K8sResource, error)
- func GetReplicationControllers(rcLister rc.Lister) ([]api.ReplicationController, error)
- func GetReplicationControllersModels(k RunningK8sData) ([]*models.K8sResource, error)
- func GetServicesModels(k RunningK8sData) ([]*models.K8sResource, error)
- type FakeKubeSecretGetterCreator
- type KubeSecretGetterCreator
- type ResourceInterface
- type ResourceInterfaceNamespaced
- func (r *ResourceInterfaceNamespaced) DaemonSets() kcl.DaemonSetInterface
- func (r *ResourceInterfaceNamespaced) Deployments() kcl.DeploymentInterface
- func (r *ResourceInterfaceNamespaced) Events() kcl.EventInterface
- func (r *ResourceInterfaceNamespaced) Nodes() kcl.NodeInterface
- func (r *ResourceInterfaceNamespaced) Pods() kcl.PodInterface
- func (r *ResourceInterfaceNamespaced) ReplicaSets() kcl.ReplicaSetInterface
- func (r *ResourceInterfaceNamespaced) ReplicationControllers() kcl.ReplicationControllerInterface
- func (r *ResourceInterfaceNamespaced) Secrets() kcl.SecretsInterface
- func (r *ResourceInterfaceNamespaced) Services() kcl.ServiceInterface
- type RunningK8sData
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 ¶
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 ResourceInterface ¶
type ResourceInterface interface {
kcl.DaemonSetsNamespacer
kcl.DeploymentsNamespacer
kcl.EventNamespacer
kcl.NodesInterface
kcl.PodsNamespacer
kcl.ReplicaSetsNamespacer
kcl.ReplicationControllersNamespacer
kcl.SecretsNamespacer
kcl.ServicesNamespacer
}
ResourceInterface is an interface for k8s resources
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 ¶
func (r *ResourceInterfaceNamespaced) DaemonSets() kcl.DaemonSetInterface
DaemonSets implementation
func (*ResourceInterfaceNamespaced) Deployments ¶
func (r *ResourceInterfaceNamespaced) Deployments() kcl.DeploymentInterface
Deployments implementation
func (*ResourceInterfaceNamespaced) Events ¶
func (r *ResourceInterfaceNamespaced) Events() kcl.EventInterface
Events implementation
func (*ResourceInterfaceNamespaced) Nodes ¶
func (r *ResourceInterfaceNamespaced) Nodes() kcl.NodeInterface
Nodes implementation
func (*ResourceInterfaceNamespaced) Pods ¶
func (r *ResourceInterfaceNamespaced) Pods() kcl.PodInterface
Pods implementation
func (*ResourceInterfaceNamespaced) ReplicaSets ¶
func (r *ResourceInterfaceNamespaced) ReplicaSets() kcl.ReplicaSetInterface
ReplicaSets implementation
func (*ResourceInterfaceNamespaced) ReplicationControllers ¶
func (r *ResourceInterfaceNamespaced) ReplicationControllers() kcl.ReplicationControllerInterface
ReplicationControllers implementation
func (*ResourceInterfaceNamespaced) Secrets ¶
func (r *ResourceInterfaceNamespaced) Secrets() kcl.SecretsInterface
Secrets implementation
func (*ResourceInterfaceNamespaced) Services ¶
func (r *ResourceInterfaceNamespaced) Services() kcl.ServiceInterface
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