ctf

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

README

Repository CommonTransportFormat - Filesystem based OCM Repositories

Synopsis
type: CommonTransportFormat/v1
Description

The content of an OCM repository will be stored on a filesystem.

Supported specification version is v1.

Specification Versions
Version v1

The type specific specification fields are:

  • filePath string

    Path in filesystem used to host the repository.

  • fileFormat (optional) string

    The format to use to store content:

    • directory: stored as directory structure
    • tar: stored as directory structure in a tar file
    • tgz: stored as directory structure in a tar file compressed by GNU Zip.
Go Bindings

The Go binding can be found here.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FormatDirectory = ctf.FormatDirectory
	FormatTAR       = ctf.FormatTAR
	FormatTGZ       = ctf.FormatTGZ
)

Functions

func Create

func Create(ctx cpi.ContextProvider, acc accessobj.AccessMode, path string, mode vfs.FileMode, opts ...accessio.Option) (cpi.Repository, error)

func GetFormats

func GetFormats() []string

func NewRepositorySpec

func NewRepositorySpec(acc accessobj.AccessMode, path string, opts ...accessio.Option) (*genericocireg.RepositorySpec, error)

func Open

func RepositoryPrefix

func RepositoryPrefix(path string) accessio.Option

RepositoryPrefix set the OCI repository prefix used to store the component versions.

func SupportedFormats

func SupportedFormats() []accessio.FileFormat

Types

type CTFOption

type CTFOption interface {
	accessio.Option
	ApplyCTFOption(opts *CTFOptions)
}

type CTFOptions

type CTFOptions struct {
	genericocireg.ComponentRepositoryMeta
}

type FormatHandler

type FormatHandler = ctf.FormatHandler

func GetFormat

func GetFormat(name accessio.FileFormat) FormatHandler

type Object

type Object = ctf.Object

Jump to

Keyboard shortcuts

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