installer

package
v0.0.0-...-e42394a Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package installer implements development installer for vega.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Construct

func Construct[Config, Result any](f func(Config) Result, configs ...Config) (res []Result)

Construct maps configs to results.

func P

func P[T any](t T) *T

Types

type CiliumStatus

type CiliumStatus struct {
	Bin        string
	Namespace  string
	Wait       bool
	KubeConfig string
}

func (CiliumStatus) Run

func (c CiliumStatus) Run(ctx context.Context) error

func (CiliumStatus) Step

func (c CiliumStatus) Step() StepInfo

type DaemonSet

type DaemonSet struct {
	KubeConfig  string
	KubeContext string

	Name      string
	Namespace string
	Image     string
}

func (DaemonSet) Run

func (s DaemonSet) Run(ctx context.Context) error

func (DaemonSet) Step

func (s DaemonSet) Step() StepInfo

type Docker

type Docker struct {
	Bin     string
	Tags    []string
	File    string
	Context string
}

func (Docker) Run

func (d Docker) Run(ctx context.Context) error

func (Docker) Step

func (d Docker) Step() StepInfo

type DockerPull

type DockerPull struct {
	Images     []string
	ImagesFile string
}

func (DockerPull) Run

func (d DockerPull) Run(ctx context.Context) error

func (DockerPull) Step

func (d DockerPull) Step() StepInfo

type GoBuild

type GoBuild struct {
	// Binary from "cmd" to build. For example, "vega-agent".
	Binary string
}

GoBuild builds go binary.

func BuildBinary

func BuildBinary(name string) GoBuild

BuildBinary is constructor for GoBuild.

func (GoBuild) Run

func (g GoBuild) Run(ctx context.Context) error

Run a go build.

#nosec: G204

func (GoBuild) Step

func (g GoBuild) Step() StepInfo

Step implements Step.

type HelmUpgrade

type HelmUpgrade struct {
	Bin             string
	Install         bool
	Values          string
	Name            string
	Chart           string
	Namespace       string
	CreateNamespace bool
	Version         string
	KubeConfig      string
	Repo            string
}

func (HelmUpgrade) Run

func (h HelmUpgrade) Run(ctx context.Context) error

func (HelmUpgrade) Step

func (h HelmUpgrade) Step() StepInfo

type Kind

type Kind struct {
	Bin        string
	Name       string
	Config     string
	KubeConfig string
}

Kind is Kubernetes In Docker (KIND) installer.

func (Kind) Run

func (k Kind) Run(ctx context.Context) error

func (Kind) Step

func (k Kind) Step() StepInfo

type KindLoad

type KindLoad struct {
	Bin        string
	Name       string
	Images     []string
	ImagesFile string
	KubeConfig string
	Nodes      []string
}

func (KindLoad) Run

func (k KindLoad) Run(ctx context.Context) error

func (KindLoad) Step

func (k KindLoad) Step() StepInfo

type KubeApply

type KubeApply struct {
	Bin        string
	File       string
	KubeConfig string
}

func (KubeApply) Run

func (k KubeApply) Run(ctx context.Context) error

func (KubeApply) Step

func (k KubeApply) Step() StepInfo

type KubeCreate

type KubeCreate struct {
	Bin        string
	File       string
	KubeConfig string
}

func (KubeCreate) Run

func (k KubeCreate) Run(ctx context.Context) error

func (KubeCreate) Step

func (k KubeCreate) Step() StepInfo

type KubeDelete

type KubeDelete struct {
	Bin        string
	File       string
	KubeConfig string
}

func (KubeDelete) Run

func (k KubeDelete) Run(ctx context.Context) error

func (KubeDelete) Step

func (k KubeDelete) Step() StepInfo

type KubeRestart

type KubeRestart struct {
	Bin        string
	Target     string
	Name       string
	Namespace  string
	KubeConfig string
}

func (KubeRestart) Run

func (k KubeRestart) Run(ctx context.Context) error

func (KubeRestart) Step

func (k KubeRestart) Step() StepInfo

type KubeRolloutStatus

type KubeRolloutStatus struct {
	Bin        string
	Target     string
	Name       string
	Namespace  string
	Watch      bool
	KubeConfig string
}

func (KubeRolloutStatus) Run

func (KubeRolloutStatus) Step

func (k KubeRolloutStatus) Step() StepInfo

type Parallel

type Parallel struct {
	Steps []Step
	Max   int
}

Parallel runs all steps in parallel.

func (*Parallel) Run

func (p *Parallel) Run(ctx context.Context) error

Run all steps in parallel.

func (*Parallel) Step

func (p *Parallel) Step() StepInfo

Step returns step information.

type Step

type Step interface {
	Run(ctx context.Context) error
	Step() StepInfo
}

Step of setup.

type StepInfo

type StepInfo struct {
	Name string
}

StepInfo wraps step information description.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳