Documentation ¶
Index ¶
- type GetResource
- func (getResource *GetResource) GetAlamedaRecommendation(namespace, name string) (*autuscaling.AlamedaRecommendation, error)
- func (getResource *GetResource) GetAlamedaScaler(namespace, name string) (*autuscaling.AlamedaScaler, error)
- func (getResource *GetResource) GetDeployment(namespace, name string) (*appsv1.Deployment, error)
- func (getResource *GetResource) GetPod(namespace, name string) (*corev1.Pod, error)
- type ListPods
- type ListResources
- func (listResources *ListResources) ListAllAlamedaScaler() ([]autuscaling.AlamedaScaler, error)
- func (listResources *ListResources) ListAllNodes() ([]corev1.Node, error)
- func (listResources *ListResources) ListDeploymentsByLabels(labels map[string]string) ([]appsv1.Deployment, error)
- func (listResources *ListResources) ListPodsByDeployment(deployNS, deployName string) ([]corev1.Pod, error)
- func (listResources *ListResources) ListPodsByLabels(labels map[string]string) ([]corev1.Pod, error)
- type UpdateResource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetResource ¶
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
type ListPods ¶
type ListPods struct {
// contains filtered or unexported fields
}
func NewListPods ¶
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 ¶
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