Documentation ¶
Index ¶
- type Config
- type DockerClassicProvider
- func (provider *DockerClassicProvider) GetGroups(ctx context.Context) (map[string][]string, error)
- func (provider *DockerClassicProvider) GetState(ctx context.Context, name string) (instance.State, error)
- func (provider *DockerClassicProvider) NotifyInstanceStopped(ctx context.Context, instance chan<- string)
- func (provider *DockerClassicProvider) Start(ctx context.Context, name string) (instance.State, error)
- func (provider *DockerClassicProvider) Stop(ctx context.Context, name string) (instance.State, error)
- type DockerSwarmProvider
- func (provider *DockerSwarmProvider) GetGroups(ctx context.Context) (map[string][]string, error)
- func (provider *DockerSwarmProvider) GetState(ctx context.Context, name string) (instance.State, error)
- func (provider *DockerSwarmProvider) NotifyInstanceStopped(ctx context.Context, instance chan<- string)
- func (provider *DockerSwarmProvider) Start(ctx context.Context, name string) (instance.State, error)
- func (provider *DockerSwarmProvider) Stop(ctx context.Context, name string) (instance.State, error)
- type KubernetesProvider
- func (provider *KubernetesProvider) GetGroups(ctx context.Context) (map[string][]string, error)
- func (provider *KubernetesProvider) GetState(ctx context.Context, name string) (instance.State, error)
- func (provider *KubernetesProvider) NotifyInstanceStopped(ctx context.Context, instance chan<- string)
- func (provider *KubernetesProvider) Start(ctx context.Context, name string) (instance.State, error)
- func (provider *KubernetesProvider) Stop(ctx context.Context, name string) (instance.State, error)
- type Provider
- type Workload
Constants ¶
This section is empty.
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) NotifyInstanceStopped ¶
func (provider *DockerClassicProvider) NotifyInstanceStopped(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) NotifyInstanceStopped ¶
func (provider *DockerSwarmProvider) NotifyInstanceStopped(ctx context.Context, instance chan<- string)
type KubernetesProvider ¶
type KubernetesProvider struct { Client kubernetes.Interface // contains filtered or unexported fields }
func NewKubernetesProvider ¶
func NewKubernetesProvider(providerConfig providerConfig.Kubernetes) (*KubernetesProvider, error)
func (*KubernetesProvider) NotifyInstanceStopped ¶
func (provider *KubernetesProvider) NotifyInstanceStopped(ctx context.Context, instance chan<- string)
type Provider ¶
type Provider interface { Start(ctx context.Context, name string) (instance.State, error) Stop(ctx context.Context, name string) (instance.State, error) GetState(ctx context.Context, name string) (instance.State, error) GetGroups(ctx context.Context) (map[string][]string, error) NotifyInstanceStopped(ctx context.Context, instance chan<- string) }
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.