buildclient

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: BSD-3-Clause Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBuildCommand added in v0.8.0

func AddBuildCommand(rootCmd *cobra.Command)

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App represents the application instance

func New

func New(ctx context.Context, cfg *Config) (*App, error)

New creates new application instance

func (*App) Run

func (app *App) Run(ctx context.Context) error

Run is the main application entrypoint

type Config

type Config struct {
	URL           string
	AuthToken     string
	BuildSpec     string
	SkipTLSVerify bool
	LibraryRef    string
	Force         bool
	UserAgent     string
	ArchsToBuild  []string
	SignerOpts    []integrity.SignerOpt
}

Config contains set up for application

type FileTransport added in v0.7.0

type FileTransport struct {
	Src string `json:"source"`
	Dst string `json:"destination"`
}

func (FileTransport) SourcePath added in v0.7.0

func (ft FileTransport) SourcePath() (string, error)

SourcePath returns the source path in the format as specified by the io/fs package.

Jump to

Keyboard shortcuts

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