resources

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetResource

type GetResource struct {
	client.Client
}

GetResource define resource list functions

func NewGetResource

func NewGetResource(client client.Client) *GetResource

NewGetResource return GetResource instance

func (*GetResource) GetAlamedaRecommendation

func (getResource *GetResource) GetAlamedaRecommendation(namespace, name string) (*autuscaling.AlamedaRecommendation, error)

GetAlamedaRecommendation return AlamedaRecommendation

func (*GetResource) GetAlamedaScaler

func (getResource *GetResource) GetAlamedaScaler(namespace, name string) (*autuscaling.AlamedaScaler, error)

GetAlamedaScaler return alamedascaler

func (*GetResource) GetDeployment

func (getResource *GetResource) GetDeployment(namespace, name string) (*appsv1.Deployment, error)

GetDeployment returns deployment

func (*GetResource) GetPod

func (getResource *GetResource) GetPod(namespace, name string) (*corev1.Pod, error)

GetPod returns pod

type ListPods

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

func NewListPods

func NewListPods(client client.Client) *ListPods

func (*ListPods) ListPods

func (listpods *ListPods) ListPods(namespace, name, kind string) []corev1.Pod

type ListResources

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

ListResources define resource list functions

func NewListResources

func NewListResources(client client.Client) *ListResources

NewListResources return ListResources instance

func (*ListResources) ListAllAlamedaScaler

func (listResources *ListResources) ListAllAlamedaScaler() ([]autuscaling.AlamedaScaler, error)

ListAllAlamedaScaler return all nodes in cluster

func (*ListResources) ListAllNodes

func (listResources *ListResources) ListAllNodes() ([]corev1.Node, error)

ListAllNodes return all nodes in cluster

func (*ListResources) ListDeploymentsByLabels

func (listResources *ListResources) ListDeploymentsByLabels(labels map[string]string) ([]appsv1.Deployment, error)

ListDeploymentsByLabels return deployments by labels

func (*ListResources) ListPodsByDeployment

func (listResources *ListResources) ListPodsByDeployment(deployNS, deployName string) ([]corev1.Pod, error)

ListPodsByDeployment return pods by deployment namespace and name

func (*ListResources) ListPodsByLabels

func (listResources *ListResources) ListPodsByLabels(labels map[string]string) ([]corev1.Pod, error)

ListPodsByLabels return pods by labels

type UpdateResource

type UpdateResource struct {
	client.Client
}

UpdateResource define resource update functions

func NewUpdateResource

func NewUpdateResource(client client.Client) *UpdateResource

NewUpdateResource return UpdateResource instance

func (*UpdateResource) UpdateAlamedaScaler

func (updateResource *UpdateResource) UpdateAlamedaScaler(alamedaScaler *autuscaling.AlamedaScaler) error

UpdateAlamedaScaler updates AlamedaScaler

Jump to

Keyboard shortcuts

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