oci

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildErr

type BuildErr struct {
	Err error
}

BuildErr indicates a general build error occurred.

func (BuildErr) Error

func (e BuildErr) Error() string

type Builder

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

Builder which creates an OCI-compliant multi-arch (index) container from the function at path.

func NewBuilder

func NewBuilder(name string, verbose bool) *Builder

NewBuilder creates a builder instance.

func (*Builder) Build

func (b *Builder) Build(ctx context.Context, f fn.Function, pp []fn.Platform) (err error)

Build an OCI-compliant Mult-arch (v1.ImageIndex) container on disk in the function's runtime data directory at:

.func/builds/by-hash/$HASH

Updates a symlink to this directory at:

.func/builds/last

type ErrBuildInProgress

type ErrBuildInProgress struct {
	Dir string
}

func (ErrBuildInProgress) Error

func (e ErrBuildInProgress) Error() string

type Pusher

type Pusher struct {
	Insecure bool
	Verbose  bool
	Username string
	Token    string
	// contains filtered or unexported fields
}

Pusher of OCI multi-arch layout directories.

func NewPusher

func NewPusher(insecure, verbose bool) *Pusher

func (*Pusher) Push

func (p *Pusher) Push(ctx context.Context, f fn.Function) (digest string, err error)

Jump to

Keyboard shortcuts

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