Documentation ¶
Index ¶
- Constants
- type Config
- type DockerClassicProvider
- func (provider *DockerClassicProvider) GetState(name string) (instance.State, error)
- func (provider *DockerClassicProvider) NotifyInsanceStopped(ctx context.Context, instance chan<- string)
- func (provider *DockerClassicProvider) Start(name string) (instance.State, error)
- func (provider *DockerClassicProvider) Stop(name string) (instance.State, error)
- type DockerSwarmProvider
- func (provider *DockerSwarmProvider) GetState(name string) (instance.State, error)
- func (provider *DockerSwarmProvider) NotifyInsanceStopped(ctx context.Context, instance chan<- string)
- func (provider *DockerSwarmProvider) Start(name string) (instance.State, error)
- func (provider *DockerSwarmProvider) Stop(name string) (instance.State, error)
- type KubernetesProvider
- func (provider *KubernetesProvider) GetState(name string) (instance.State, error)
- func (provider *KubernetesProvider) NotifyInsanceStopped(ctx context.Context, instance chan<- string)
- func (provider *KubernetesProvider) Start(name string) (instance.State, error)
- func (provider *KubernetesProvider) Stop(name string) (instance.State, error)
- type Provider
- type Workload
Constants ¶
View Source
const Delimiter = "_"
Delimiter is used to split name into kind,namespace,name,replicacount
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerClassicProvider ¶
type DockerClassicProvider struct { Client client.APIClient // contains filtered or unexported fields }
func NewDockerClassicProvider ¶
func NewDockerClassicProvider() (*DockerClassicProvider, error)
func (*DockerClassicProvider) GetState ¶
func (provider *DockerClassicProvider) GetState(name string) (instance.State, error)
func (*DockerClassicProvider) NotifyInsanceStopped ¶
func (provider *DockerClassicProvider) NotifyInsanceStopped(ctx context.Context, instance chan<- string)
type DockerSwarmProvider ¶
type DockerSwarmProvider struct { Client client.APIClient // contains filtered or unexported fields }
func NewDockerSwarmProvider ¶
func NewDockerSwarmProvider() (*DockerSwarmProvider, error)
func (*DockerSwarmProvider) GetState ¶
func (provider *DockerSwarmProvider) GetState(name string) (instance.State, error)
func (*DockerSwarmProvider) NotifyInsanceStopped ¶
func (provider *DockerSwarmProvider) NotifyInsanceStopped(ctx context.Context, instance chan<- string)
type KubernetesProvider ¶
type KubernetesProvider struct {
Client kubernetes.Interface
}
func NewKubernetesProvider ¶
func NewKubernetesProvider() (*KubernetesProvider, error)
func (*KubernetesProvider) GetState ¶
func (provider *KubernetesProvider) GetState(name string) (instance.State, error)
func (*KubernetesProvider) NotifyInsanceStopped ¶
func (provider *KubernetesProvider) NotifyInsanceStopped(ctx context.Context, instance chan<- string)
type Provider ¶
type Workload ¶
type Workload interface { GetScale(ctx context.Context, workloadName string, options metav1.GetOptions) (*autoscalingv1.Scale, error) UpdateScale(ctx context.Context, workloadName string, scale *autoscalingv1.Scale, opts metav1.UpdateOptions) (*autoscalingv1.Scale, error) }
Click to show internal directories.
Click to hide internal directories.