orasostree

package
v0.0.42 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ArtifactsPathPrefix = "artifacts"
	OSTreePathPrefix    = "ostree"

	OSTreeConfigType = "application/vnd.ciq.ostree.file.v1.config+json"
	OSTreeLayerType  = "application/vnd.ciq.ostree.v1.file"

	FileSummary    = "summary"
	FileSummarySig = "summary.sig"
	FileConfig     = "config"
)

Variables

This section is empty.

Functions

func MakeTag

func MakeTag(filename string) string

MakeTag creates a tag for a file. If the filename starts with a special tag, the tag is returned as-is. Otherwise, the tag is the md5 hash of the filename.

func NewOSTreeFilePusher

func NewOSTreeFilePusher(repoRootDir, path, repo string, opts ...name.Option) (oras.Pusher, error)

Types

type OSTreeRepositoryPusher

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

func NewOSTreeRepositoryPusher

func NewOSTreeRepositoryPusher(ctx context.Context, dir, repo string, jobCount int) *OSTreeRepositoryPusher

func (*OSTreeRepositoryPusher) Push

func (p *OSTreeRepositoryPusher) Push() error

Push walks a local ostree repository and pushes each file to the given registry. dir is the root directory of the ostree repository, i.e., the directory containing the summary file. repo is the name of the ostree repository. registry is the registry to push to.

func (*OSTreeRepositoryPusher) WithLogger

func (p *OSTreeRepositoryPusher) WithLogger(logger *slog.Logger) *OSTreeRepositoryPusher

func (*OSTreeRepositoryPusher) WithNameOptions

func (p *OSTreeRepositoryPusher) WithNameOptions(opts ...name.Option) *OSTreeRepositoryPusher

func (*OSTreeRepositoryPusher) WithRemoteOptions

func (p *OSTreeRepositoryPusher) WithRemoteOptions(opts ...remote.Option) *OSTreeRepositoryPusher

Jump to

Keyboard shortcuts

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