build

package
v0.0.0-...-0caa074 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFunc

func BuildFunc(ctx context.Context, c client.Client) (*client.Result, error)

BuildFunc is the main entrypoint for the build.

Types

type Config

type Config struct {
	ImageConfig *ocispecs.Image `json:"imageConfig"`
	Definition  *pb.Definition  `json:"definition"`
}

func DecodeConfig

func DecodeConfig(data []byte) (*Config, error)

func GetConfig

func GetConfig(ctx context.Context, c client.Client) (*Config, error)

GetDefinition reads the json file from the build context and returns the definition of the build.

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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