nodepool

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidProvider

func IsInvalidProvider(err error) bool

IsInvalidProvider asserts invalidProviderError.

func IsNoResources

func IsNoResources(err error) bool

IsNoResources asserts noResourcesError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Collection

type Collection struct {
	Items []Nodepool
}

Collection wraps a list of nodepools.

func (*Collection) Object

func (nc *Collection) Object() runtime.Object

type Config

type Config struct {
	Client *client.Client
}

type FakeService

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

func NewFakeService

func NewFakeService(storage []runtime.Object) *FakeService

func (*FakeService) Get

func (ms *FakeService) Get(ctx context.Context, options GetOptions) (Resource, error)

type GetOptions

type GetOptions struct {
	Name        string
	ClusterName string
	Provider    string
	Namespace   string
}

type Interface

type Interface interface {
	Get(context.Context, GetOptions) (Resource, error)
}

func New

func New(config Config) (Interface, error)

type Nodepool

type Nodepool struct {
	MachineDeployment *capiv1alpha3.MachineDeployment
	MachinePool       *capiexpv1alpha3.MachinePool

	AWSMachineDeployment *infrastructurev1alpha3.AWSMachineDeployment
	AzureMachinePool     *capzexpv1alpha3.AzureMachinePool
}

Nodepool abstracts away provider-specific node pool resources.

func (*Nodepool) Object

func (n *Nodepool) Object() runtime.Object

type Resource

type Resource interface {
	Object() runtime.Object
}

type Service

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

func (*Service) Get

func (s *Service) Get(ctx context.Context, options GetOptions) (Resource, error)

Jump to

Keyboard shortcuts

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