provider

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(kind string, provider Provider)

Types

type Provider

type Provider interface {
	Create(model.Cluster) error
	List() ([]model.Cluster, error)
	Delete(string) error
	Get(string) (model.Cluster, error)
	Update(model.Cluster) error
	Start(string) error
	Stop(string) error

	// TODO having a better way to pass the server address
	WithServerAddress(string)
}

func GetProvider

func GetProvider(kind string) Provider

Jump to

Keyboard shortcuts

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