Documentation ¶
Index ¶
- Constants
- func BuildDevImage(threeportPath string) error
- func BuildGoBinary(threeportPath, arch string, component *v0.ControlPlaneComponent, noCache bool) error
- func ConnectLocalRegistry(clusterName string) error
- func CreateLocalRegistry() error
- func DeleteLocalRegistry() error
- func DockerBuildxImage(threeportPath, dockerFilePath, tag, arch string, ...) error
- func LoadDevImage(kindKubernetesRuntimeName, imageName string) error
- func PrepareDevImage(threeportPath, kindKubernetesRuntimeName string, ...) error
- func PushDockerImage(tag string) error
- type BuildErrorLine
- type ErrorDetail
Constants ¶
const DefaultInstanceName = "dev-0"
Variables ¶
This section is empty.
Functions ¶
func BuildDevImage ¶
BuildDevImage builds all the threeport control plane container images using the dev dockerfile to provide live reload of code in the container.
func BuildGoBinary ¶
func BuildGoBinary(threeportPath, arch string, component *v0.ControlPlaneComponent, noCache bool) error
BuildGoBinary builds the go binary for a threeport control plane component.
func ConnectLocalRegistry ¶ added in v0.6.0
ConnectLocalRegistry connects a local Docker container registry to a kind cluster.
func CreateLocalRegistry ¶ added in v0.6.0
func CreateLocalRegistry() error
CreateLocalRegistry starts a Docker container to serve as a local container registry. If a local registry already exists with the <registryName> name, it will return without error
func DeleteLocalRegistry ¶ added in v0.6.0
func DeleteLocalRegistry() error
DeleteLocalRegistry stops and removes the Docker container running the local container registry.
func DockerBuildxImage ¶
func DockerBuildxImage(threeportPath, dockerFilePath, tag, arch string, component *v0.ControlPlaneComponent) error
DockerBuildxImage builds a specified docker image with the 'docker buildx' command.
func LoadDevImage ¶
LoadDevImage loads the threeport control plane development container images onto the kind cluster nodes.
func PrepareDevImage ¶ added in v0.5.0
func PrepareDevImage(threeportPath, kindKubernetesRuntimeName string, cpi *threeport.ControlPlaneInstaller) error
PrepareDevImage builds and loads the threeport control plane images for development use.
func PushDockerImage ¶
PushDockerImage pushes a specified docker image to the docker registry.
Types ¶
type BuildErrorLine ¶
type BuildErrorLine struct { Error string `json:"error"` ErrorDetail ErrorDetail `json:"errorDetail"` }
type ErrorDetail ¶
type ErrorDetail struct {
Message string `json:"message"`
}