Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResourceLogger ¶
Types ¶
type Client ¶
type Client interface { // GetNamespaceAnnotations gets the annotations of the workload's namespace GetNamespaceAnnotations(namespace string, ctx context.Context) (map[string]string, error) // GetWorkloads gets all workloads of the specified resources for the specified namespaces GetWorkloads(namespaces []string, resourceTypes []string, ctx context.Context) ([]scalable.Workload, error) // DownscaleWorkload downscales the workload to the specified replicas DownscaleWorkload(replicas int32, workload scalable.Workload, ctx context.Context) error // UpscaleWorkload upscales the workload to the original replicas UpscaleWorkload(workload scalable.Workload, ctx context.Context) error // contains filtered or unexported methods }
Client is an interface representing a high-level client to get and modify Kubernetes resources
Click to show internal directories.
Click to hide internal directories.