oci

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HofstadterSchema1Beta types.MediaType = "application/vnd.hofstadter.module.v1beta1+json"
	HofstadterModuleDeps  types.MediaType = "application/vnd.hofstadter.module.deps.tar.gz"
	HofstadterModuleCode  types.MediaType = "application/vnd.hofstadter.module.code.tar.gz"
)

Variables

This section is empty.

Functions

func Build

func Build(workingDir string, dirs []Dir) (v1.Image, error)

func GetRefHash

func GetRefHash(url, ref string) (string, error)

Looks up a Ref and returns the hash it currently points at we recommend you setup a registry with immutable tags

func IsNetworkReachable

func IsNetworkReachable(mod string) (bool, error)

func ListTags

func ListTags(mod string) ([]string, error)

func Pull

func Pull(url, outPath string) error

func Push

func Push(tag string, img v1.Image) error

Types

type Dir

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

func NewCode

func NewCode(workingDir string) (Dir, error)

func NewDeps

func NewDeps() Dir

func NewDir

func NewDir(mediaType types.MediaType, relPath string, ignores []string) Dir

func (Dir) Excluded

func (d Dir) Excluded(rel string) bool

Jump to

Keyboard shortcuts

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