repo

package
v0.0.0-...-819d206 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	Content map[string][]string `json:"contents,omitempty"`
	Self    map[string][]string `json:"self,omitempty"`
}

type Blob

type Blob struct {
	Layer []string `json:"layers"`
}

type Bundle

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

func NewBundle

func NewBundle(path string) *Bundle

func (*Bundle) Cert

func (b *Bundle) Cert() string

func (*Bundle) Digest

func (b *Bundle) Digest() ([]byte, error)

func (*Bundle) IsManifestUpdated

func (b *Bundle) IsManifestUpdated() bool

func (*Bundle) IsSignatureValid

func (b *Bundle) IsSignatureValid() bool

func (*Bundle) Key

func (b *Bundle) Key() string

func (*Bundle) Layers

func (b *Bundle) Layers() ([]string, error)

func (*Bundle) Manifest

func (b *Bundle) Manifest() string

func (*Bundle) Remove

func (b *Bundle) Remove() error

func (*Bundle) Sig

func (b *Bundle) Sig() string

func (*Bundle) SignerDigest

func (b *Bundle) SignerDigest() ([]byte, string, error)

type Policy

type Policy struct {
	Accept []string `json:"accepts,omitempty"`
	Reject bool     `json:"rejectUnaccepted"`
}

type Repo

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

func FindRepo

func FindRepo(startingDir string) (*Repo, error)

func (*Repo) Alias

func (r *Repo) Alias(mfile string, bundleFilter func(*Bundle) bool) error

func (*Repo) AllBundles

func (r *Repo) AllBundles() ([]*Bundle, error)

func (*Repo) BlobPath

func (r *Repo) BlobPath(blob string) string

func (*Repo) BundleChain

func (r *Repo) BundleChain(mfile string) ([]*Bundle, error)

func (*Repo) CommitBlob

func (r *Repo) CommitBlob(blobs [][]byte, diffIds []string) error

func (*Repo) CommitManifest

func (r *Repo) CommitManifest(mfile, cfile, kfile string) error

func (*Repo) ExportBundle

func (r *Repo) ExportBundle(bundle, exportpath string) error

func (*Repo) FindBundle

func (r *Repo) FindBundle(mfile string) (*Bundle, error)

func (*Repo) ImportBundle

func (r *Repo) ImportBundle(bundles []string) error

func (*Repo) PrimaryDigest

func (r *Repo) PrimaryDigest(digest string) (string, error)

func (*Repo) Prune

func (r *Repo) Prune() error

func (*Repo) RemoveBundle

func (r *Repo) RemoveBundle(id string) error

type Workload

type Workload struct {
	SpecVersion [2]uint32 `json:"aconSpecVersion"`
	Layer       []string  `json:"layers,omitempty"`
	Alias       Alias     `json:"aliases"`
	Entrypoint  []string  `json:"entrypoint,omitempty"`
	Env         []string  `json:"env,omitempty"`
	WorkingDir  string    `json:"workingDir"`
	Uids        []uint32  `json:"uids"`
	LogFDs      []uint32  `json:"logFDs"`
	WritableFS  bool      `json:"writableFS"`
	NoRestart   bool      `json:"noRestart"`
	Signals     []int32   `json:"signals"`
	MaxInstance uint32    `json:"maxInstances"`
	Policy      Policy    `json:"policy"`
}

Jump to

Keyboard shortcuts

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