images

package
v0.0.0-...-3ce94ae Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package images implements reconciler for exporting the image build.

Index

Constants

View Source
const ServiceName = "image-reconciler"

Variables

This section is empty.

Functions

This section is empty.

Types

type Scope

type Scope interface {
	cloud.Build
	InstanceImageSpec() *compute.AttachedDisk
	IsProvisionerReady() bool
	ImageName() string
	Name() string
	IsReady() bool
	GetComputeService() *compute.Service
	SetArtifactRef(artificatRef string)
}

Scope is an interface that holds methods used for reconciling images.

type Service

type Service struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

Service implements the reconcile logic for managing images in GCP.

func New

func New(scope Scope) *Service

New returns a new instance of Service for image creation.

func (*Service) Delete

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

func (*Service) Reconcile

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

Reconcile ensures that a disk image is created from an instance.

Jump to

Keyboard shortcuts

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