Documentation
¶
Index ¶
- Constants
- Variables
- func Build(ctx context.Context, c client.Client) (*client.Result, error)
- func BuildWithBuildkitClient(appDir string, plan *plan.BuildPlan, opts BuildWithBuildkitClientOptions) error
- func StartFrontend()
- type BuildPlatform
- type BuildWithBuildkitClientOptions
- type ConvertPlanOptions
- type Image
Constants ¶
View Source
const (
WorkingDir = "/app"
)
Variables ¶
View Source
var ( PlatformLinuxAMD64 = BuildPlatform{ OS: "linux", Architecture: "amd64", } PlatformLinuxARM64 = BuildPlatform{ OS: "linux", Architecture: "arm64", Variant: "v8", } )
Functions ¶
func BuildWithBuildkitClient ¶
func BuildWithBuildkitClient(appDir string, plan *plan.BuildPlan, opts BuildWithBuildkitClientOptions) error
func StartFrontend ¶
func StartFrontend()
Types ¶
type BuildPlatform ¶
func DetermineBuildPlatformFromHost ¶
func DetermineBuildPlatformFromHost() BuildPlatform
func (BuildPlatform) String ¶
func (p BuildPlatform) String() string
func (BuildPlatform) ToPlatform ¶
func (p BuildPlatform) ToPlatform() specs.Platform
type ConvertPlanOptions ¶
type ConvertPlanOptions struct {
BuildPlatform BuildPlatform
SecretsHash string
CacheKey string
SessionID string
}
type Image ¶
type Image struct {
specs.Image
// Config defines the execution parameters which should be used as a base when running a container using the image.
Config specs.ImageConfig `json:"config,omitempty"`
// Variant defines platform variant. To be added to OCI.
Variant string `json:"variant,omitempty"`
}
Image is the JSON structure which describes some basic information about the image. This provides the `application/vnd.oci.image.config.v1+json` mediatype when marshalled to JSON.
func ConvertPlanToLLB ¶
Click to show internal directories.
Click to hide internal directories.