types

package
v0.3.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyOptions

type ApplyOptions struct {
	// SkipTLSVerify indicates to skip TLS verification.
	SkipTLSVerify bool
}

ApplyOptions holds the options of Deployer's Apply action.

type CreateOptions

type CreateOptions struct {
	// Type indicates the type for creating.
	Type        Type
	ModelClient model.ClientSet
	KubeConfig  *rest.Config
}

CreateOptions holds the options for creating Deployer.

type Creator

type Creator func(context.Context, CreateOptions) (Deployer, error)

Creator is a factory func to create Deployer.

type Deployer

type Deployer interface {
	// Type returns Type.
	Type() Type

	// Apply creates/updates the resources of the given service,
	// also cleans stale resources.
	Apply(context.Context, *model.Service, ApplyOptions) error

	// Destroy cleans all resources of the given service.
	Destroy(context.Context, *model.Service, DestroyOptions) error
}

Deployer holds the actions that a deployer must satisfy.

type DestroyOptions

type DestroyOptions struct {
	// SkipTLSVerify indicates to skip TLS verification.
	SkipTLSVerify bool
}

DestroyOptions holds the options of Deployer's Destroy action.

type Type

type Type = string

Type indicates the type of Deployer, e.g. Terraform, KubeVela, etc.

Jump to

Keyboard shortcuts

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