asset

package
v0.0.0-...-35696f1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientFromKubeConfig

func NewClientFromKubeConfig(path string) (kubernetes.Interface, error)

func NewDeploymentFromConfig

func NewDeploymentFromConfig(config *Config) (*appsv1.Deployment, error)

Types

type AssetInstaller

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

func NewAssetInstaller

func NewAssetInstaller(config *Config, opts ...DeploymentOptFn) (*AssetInstaller, error)

func (*AssetInstaller) Deployments

func (i *AssetInstaller) Deployments() []string

func (*AssetInstaller) Install

func (i *AssetInstaller) Install(ctx context.Context) error

func (*AssetInstaller) Uninstall

func (i *AssetInstaller) Uninstall(ctx context.Context) error

type Config

type Config struct {
	Name           string
	Namespace      string
	KubeConfigPath string
}

type DeploymentOptFn

type DeploymentOptFn = func(d *appsv1.Deployment) error

func WithReplicas

func WithReplicas(r int32) DeploymentOptFn

Jump to

Keyboard shortcuts

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