Documentation ¶
Index ¶
- Constants
- Variables
- func Create(ctx cpi.ContextProvider, acc accessobj.AccessMode, path string, ...) (cpi.Repository, error)
- func GetFormats() []string
- func NewRepositorySpec(acc accessobj.AccessMode, path string, opts ...accessio.Option) (*genericocireg.RepositorySpec, error)
- func Open(ctx cpi.ContextProvider, acc accessobj.AccessMode, path string, ...) (cpi.Repository, error)
- func RepositoryPrefix(path string) accessio.Option
- func SupportedFormats() []accessio.FileFormat
- type CTFOption
- type CTFOptions
- type FormatHandler
- type Object
Constants ¶
View Source
const ( ACC_CREATE = accessobj.ACC_CREATE ACC_WRITABLE = accessobj.ACC_WRITABLE ACC_READONLY = accessobj.ACC_READONLY )
View Source
const Type = ctf.Type
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 Open(ctx cpi.ContextProvider, acc accessobj.AccessMode, path string, mode vfs.FileMode, opts ...accessio.Option) (cpi.Repository, error)
func RepositoryPrefix ¶
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
Click to show internal directories.
Click to hide internal directories.