build

package
v0.0.0-...-e28bd7b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package build provides functions for creating Kubernetes resources required for building and uploading a container image

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PreBuild

func PreBuild(reqBytes []byte, natsInfo map[string]string)

PreBuild is a wrapper around the build function to perform some additional checks before building. First, it makes sure the WorkflowDefinition actually has build instructions. Then, it will run the build function asynchronously for each image in the build instructions. Runs synchronously in testing environment

Types

type Request

type Request struct {
	common.BasicRequest
	Namespace     string `json:"namespace,omitempty"`
	RunAfterBuild bool   `json:"run,omitempty"`
	// Fields from WorkflowDefinition
	WorkflowDefinition struct {
		Name       string              `json:"name,omitempty"`
		Build      []*common.BuildStep `json:"build,omitempty"`
		Repository common.Repository   `json:"repository,omitempty"`
		Error      string              `json:"error_msg,omitempty"`
	} `json:"data,omitempty"`
}

Request is a struct containing the necessary fields for all Pleo operations coming from the API

Jump to

Keyboard shortcuts

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