Documentation ¶
Index ¶
- Constants
- func MakeTag(filename string) string
- func NewOSTreeFilePusher(repoRootDir, path, repo string, opts ...name.Option) (oras.Pusher, error)
- type OSTreeRepositoryPusher
- func (p *OSTreeRepositoryPusher) Push() error
- func (p *OSTreeRepositoryPusher) WithLogger(logger *slog.Logger) *OSTreeRepositoryPusher
- func (p *OSTreeRepositoryPusher) WithNameOptions(opts ...name.Option) *OSTreeRepositoryPusher
- func (p *OSTreeRepositoryPusher) WithRemoteOptions(opts ...remote.Option) *OSTreeRepositoryPusher
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 ¶
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
Click to show internal directories.
Click to hide internal directories.