envfuncs

package
v0.0.0-...-1a89fac Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDockerImage

func BuildDockerImage(path string, dockerfile string, tags []string) env.Func

BuildDockerImage returns an env.Func that is used for building a docker image.

func CreateK3dCluster

func CreateK3dCluster(clusterName string) env.Func

CreateK3dCluster returns an env.Func that is used to create a k3d cluster that is then injected in the context using the name as a key.

NOTE: the returned function will update its env config with the kubeconfig file for the config client.

func CreateK3dClusterWithConfig

func CreateK3dClusterWithConfig(clusterName, image, configFilePath string) env.Func

CreateK3dClusterWithConfig returns an env.Func that is used to create a k3d cluster that is then injected in the context using the name as a key.

NOTE: the returned function will update its env config with the kubeconfig file for the config client.

func DestroyK3dCluster

func DestroyK3dCluster(name string) env.Func

DestroyK3dCluster returns an EnvFunc that retrieves a previously saved k3d Cluster in the context (using the name), then deletes it.

NOTE: this should be used in a Environment.Finish step.

func LoadDockerImageToCluster

func LoadDockerImageToCluster(name, image string) env.Func

LoadDockerImageToCluster returns an EnvFunc that retrieves a previously saved k3d Cluster in the context (using the name), and then loads a docker image from the host into the cluster.

func LoadImageArchiveToCluster

func LoadImageArchiveToCluster(name, imageArchive string) env.Func

LoadImageArchiveToCluster returns an EnvFunc that retrieves a previously saved k3d Cluster in the context (using the name), and then loads a docker image TAR archive from the host into the cluster.

Types

type ErrorDetail

type ErrorDetail struct {
	Message string `json:"message"`
}

type ErrorLine

type ErrorLine struct {
	Error       string      `json:"error"`
	ErrorDetail ErrorDetail `json:"errorDetail"`
}

Jump to

Keyboard shortcuts

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