service

package
v0.0.0-...-ff55af6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// cluster
	CreateCluster(ctx context.Context, region string, namespace string, name string, clusterInfo *types.EcsClient) error
	DeleteCluster(ctx context.Context, region string, namespace string, name string, clusterInfo *types.EcsClient) error

	// scale
	ScaleUp(ctx context.Context, region string, namespace string, name string, clusterInfo *types.EcsClient) error
	ScaleDown(ctx context.Context, region string, namespace string, name string, clusterInfo *types.EcsClient) error

	// callback
	CreateClusterCallback(ctx context.Context, region string, namespace string, name string, result *types.Callback) error
	ScaleUpCallback(ctx context.Context, region string, namespace string, name string, result *types.Callback) error
	ScaleDownCallback(ctx context.Context, region string, namespace string, name string, result *types.Callback) error
	DeleteClusterCallback(ctx context.Context, region string, namespace string, name string, result *types.Callback) error

	// logs
	GetClusterOperationLogs(ctx context.Context, region string, namespace string, name string) (string, error)
}

func New

func New(opt *Options) Interface

type Options

type Options struct {
	KubernetesClusterClientset clientset.Interface
	KubeClientset              kubernetes.Interface
}

Jump to

Keyboard shortcuts

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