local

package
v0.119.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package local defines a repository type "local", that resembles the legacy implementation for interpreting directories as ocm repositories. The structure of such a local ocm repository resembles the structure of a component archive, although such a "local" repository may contain multiple components.

This package only implements the repository spec and the corresponding serialization and deserialization. The actual implementation is provided through conversion of such a repository spec to an internalspec.

Index

Constants

View Source
const (
	Type   = repository.LocalType
	TypeV1 = Type + runtime.VersionSeparator + "v1"
)

Variables

This section is empty.

Functions

func NewRepositorySpecV1

func NewRepositorySpecV1(filePath string, pathFileSystem ...vfs.FileSystem) (*repository.RepositorySpec, error)

Types

type RepositorySpecV1

type RepositorySpecV1 struct {
	runtime.ObjectVersionedType `json:",inline"`
	FilePath                    string         `json:"filePath"`
	PathFileSystem              vfs.FileSystem `json:"-"`
}

Jump to

Keyboard shortcuts

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