gardener: github.com/gardener/gardener/pkg/operation/botanist/component Index | Files | Directories

package component

import "github.com/gardener/gardener/pkg/operation/botanist/component"

Index

Package Files

deploy.go interfaces.go

type DeployMigrateWaiter Uses

type DeployMigrateWaiter interface {
    Deployer
    Migrator
    MigrateWaiter
    Waiter
}

DeployMigrateWaiter controls and waits for the life-cycle and control-plane migration operations of a component.

type DeployWaiter Uses

type DeployWaiter interface {
    Deployer
    Waiter
}

DeployWaiter controls and waits for life-cycle operations of a component.

func NoOp Uses

func NoOp() DeployWaiter

NoOp does nothing

func OpDestroy Uses

func OpDestroy(dw ...DeployWaiter) DeployWaiter

OpDestroy creates a DeployWaiter which calls Destroy instead of create and WaitCleanup instead of Wait

type Deployer Uses

type Deployer interface {
    // Deploy a component.
    Deploy(ctx context.Context) error
    // Destroy already deployed component.
    Destroy(ctx context.Context) error
}

Deployer is used to control the life-cycle of a component.

func OpDestroyAndWait Uses

func OpDestroyAndWait(dw ...DeployWaiter) Deployer

OpDestroyAndWait creates a Deployer which calls Destroy instead of create and waits for destruction.

func OpWaiter Uses

func OpWaiter(dw ...DeployWaiter) Deployer

OpWaiter creates a Deployer which calls waits for each operation.

type MigrateWaiter Uses

type MigrateWaiter interface {
    WaitMigrate(ctx context.Context) error
}

MigrateWaiter waits for the control-plane migration operations of a component to finish.

type Migrator Uses

type Migrator interface {
    Restore(ctx context.Context, shootState *v1alpha1.ShootState) error
    Migrate(ctx context.Context) error
}

Migrator is used to control the control-plane migration operations of a component.

type Waiter Uses

type Waiter interface {
    // Wait for deployment to finish and component to report ready.
    Wait(ctx context.Context) error
    // WaitCleanup for destruction to finish and component to be fully removed.
    WaitCleanup(ctx context.Context) error
}

Waiter waits for life-cycle operations of a component to finish.

Directories

PathSynopsis
fakePackage fake is a generated GoMock package.

Package component imports 2 packages (graph) and is imported by 4 packages. Updated 2020-08-05. Refresh now. Tools for package owners.