clusteradapter

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonClusterDeleter

type CommonClusterDeleter interface {
	DeleteCluster(ctx context.Context, cluster cluster.CommonCluster, force bool) error
}

type CommonClusterDeleterAdapter

type CommonClusterDeleterAdapter struct {
	// contains filtered or unexported fields
}

func NewCommonClusterDeleterAdapter

func NewCommonClusterDeleterAdapter(commonClusterDeleter CommonClusterDeleter, commonClusterGetter CommonClusterGetter) CommonClusterDeleterAdapter

func (CommonClusterDeleterAdapter) DeleteCluster

func (a CommonClusterDeleterAdapter) DeleteCluster(ctx context.Context, clusterID uint, options intCluster.DeleteClusterOptions) error

type CommonClusterGetter

type CommonClusterGetter interface {
	GetClusterByIDOnly(ctx context.Context, clusterID uint) (cluster.CommonCluster, error)
}

Jump to

Keyboard shortcuts

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