test

package
v0.0.0-...-90deddd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	*ec2cluster.Cluster
}

Cluster is a fake cluster infra provider and should be used only in tests.

func (*Cluster) Allocate

func (c *Cluster) Allocate(ctx context.Context, req reflow.Requirements, labels pool.Labels) (pool.Alloc, error)

Allocate is a no op.

func (*Cluster) CanAllocate

func (c *Cluster) CanAllocate(r reflow.Resources) (bool, error)

func (*Cluster) Flags

func (r *Cluster) Flags(flags *flag.FlagSet)

Flags implements infra.Provider

func (*Cluster) GetName

func (c *Cluster) GetName() string

GetName implements runner.Cluster

func (*Cluster) Init

func (c *Cluster) Init() error

Init implements infra.Provider.

func (*Cluster) MaxAlloc

func (c *Cluster) MaxAlloc() reflow.Resources

MaxAlloc returns the max resources which can be obtained in a single alloc from this cluster.

Jump to

Keyboard shortcuts

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