instances

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package instances implements reconciler for machine instance components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope interface {
	cloud.Machine
	InstanceSpec(log logr.Logger) *compute.Instance
	InstanceImageSpec() *compute.AttachedDisk
	InstanceAdditionalDiskSpec() []*compute.AttachedDisk
}

Scope is an interfaces that hold used methods.

type Service

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

Service implements instances reconciler.

func New

func New(scope Scope) *Service

New returns Service from given scope.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) error

Delete delete machine instance.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile reconcile machine instance.

Jump to

Keyboard shortcuts

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