provider

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 2 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 {
	// CreateCluster creates a provider specific tenant cluster CR which the
	// provider specific operator reconciles upon and therefore yields a new
	// tenant cluster. This function does not wait for tenant cluster to be
	// created. The id argument defines the tenant cluster ID.
	CreateCluster(ctx context.Context, id string) error
	// DeleteCluster deletes the provider specific tenant cluster CR identified by
	// the given id argument. The implementation does not wait for the deletion to
	// finish, but just returns after deleting the CR.
	DeleteCluster(ctx context.Context, id string) error
	// GetClusterStatus fetches the current cluster status from the tenant
	// cluster's CR.
	GetClusterStatus(ctx context.Context, id string) (v1alpha1.StatusCluster, error)
	// WaitForClusterCreated waits for the tenant cluster identified by the given
	// ID to be created.
	WaitForClusterCreated(ctx context.Context, id string) error
	// WaitForClusterDeleted waits for the tenant cluster identified by the given
	// ID to be deleted.
	WaitForClusterDeleted(ctx context.Context, id string) error
}

Jump to

Keyboard shortcuts

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