remotebuilder

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteBuilder

type RemoteBuilder struct {
	BuildClient *buildclient.Client
	ImagePath   string
	LibraryURL  string
	Definition  types.Definition
	BuilderURL  *url.URL
	AuthToken   string
	Force       bool
	IsDetached  bool
	Arch        string
	WebURL      string
}

RemoteBuilder contains the build request and response

func New

func New(imagePath, libraryURL string, d types.Definition, isDetached, force bool, builderAddr, authToken, buildArch, webURL string) (rb *RemoteBuilder, err error)

New creates a RemoteBuilder with the specified details.

func (*RemoteBuilder) Build

func (rb *RemoteBuilder) Build(ctx context.Context) (err error)

Build is responsible for making the request via scs-build-client to the builder

Jump to

Keyboard shortcuts

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