cluster

package
v0.0.0-...-a193300 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Name() string
	Initialize(conf config.Config) error
	CanBeRun(clusterName string, executableResources state.ExecutableResources) (bool, error)
	ListClusters() ([]string, error)
}

func NewClusterClient

func NewClusterClient(conf config.Config, name string) (Client, error)

NewClusterClient returns a cluster client

type EKSClusterClient

type EKSClusterClient struct{}

EKSClusterClient is the cluster client for EKS [NOTE] This client assumes the EKS cluster is capable is running a mixed varieties of jobs.

func (EKSClusterClient) CanBeRun

func (EKSClusterClient) CanBeRun(clusterName string, executableResources state.ExecutableResources) (bool, error)

CanBeRun for EKSCluster is always true

func (EKSClusterClient) Initialize

func (EKSClusterClient) Initialize(conf config.Config) error

func (EKSClusterClient) ListClusters

func (EKSClusterClient) ListClusters() ([]string, error)

Since it is a single cluster environment for EKS, slice of clusters is empty.

func (EKSClusterClient) Name

func (EKSClusterClient) Name() string

Jump to

Keyboard shortcuts

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