Documentation ¶
Index ¶
- Constants
- type Builder
- func (b *Builder) Access(acc compdesc.AccessSpec)
- func (b *Builder) Annotation(name, value string)
- func (b *Builder) Artifact(desc *artdesc.Descriptor)
- func (b *Builder) ArtifactSet(path string, fmt accessio.FileFormat, f ...func())
- func (b *Builder) ArtifactSetBlob(main string, f ...func())
- func (b *Builder) BlobData(mime string, data []byte)
- func (b *Builder) BlobFromDirTree(path string, opts ...dirtree.Option)
- func (b *Builder) BlobFromFile(mime string, path string)
- func (b *Builder) BlobStringData(mime string, data string)
- func (b *Builder) Build(funcs ...func(*Builder)) (err error)
- func (b *Builder) ClearExtraIdentities()
- func (b *Builder) ClearLabels()
- func (b *Builder) Component(name string, f ...func())
- func (b *Builder) ComponentArchive(path string, fmt accessio.FileFormat, name, vers string, f ...func())
- func (b *Builder) ComponentVersion(name, version string, f ...func())
- func (b *Builder) Config(f ...func())
- func (b *Builder) Configure(funcs ...func())
- func (b *Builder) Digest(value, algo, norm string)
- func (b *Builder) ExtraIdentity(name string, value string)
- func (b *Builder) GeneralOCIRepository(spec oci.RepositorySpec, f ...func())
- func (b *Builder) Hint(hint string)
- func (b *Builder) Index(tag string, f ...func()) *artdesc.Descriptor
- func (b *Builder) Label(name string, value interface{}, opts ...metav1.LabelOption)
- func (b *Builder) Layer(f ...func()) *artdesc.Descriptor
- func (b *Builder) Manifest(tag string, f ...func()) *artdesc.Descriptor
- func (b *Builder) ModificationOptions(opts ...ocm.ModificationOption)
- func (b *Builder) ModifyResource(id metav1.Identity, f ...func())
- func (b *Builder) Namespace(name string, f ...func())
- func (b *Builder) OCIBasedOCMRepository(url string, path string, f ...func())
- func (b *Builder) OCICommonTransport(path string, fmt accessio.FileFormat, f ...func())
- func (b *Builder) OCIRegistry(url string, path string, f ...func())
- func (b *Builder) OCMCommonTransport(path string, fmt accessio.FileFormat, f ...func())
- func (b *Builder) OCMCompositionRepository(name string, f ...func())
- func (b *Builder) OCMRepository(spec ocm.RepositorySpec, f ...func())
- func (b *Builder) Platform(os string, arch string)
- func (b *Builder) PropagateError(errp *error, matchers ...exception.Matcher)
- func (b *Builder) Provider(name string, f ...func())
- func (b *Builder) RSAKeyPair(name ...string)
- func (b *Builder) ReadRSAKeyPair(name, path string)
- func (b *Builder) Reference(name, comp, vers string, f ...func())
- func (b *Builder) RemoveExtraIdentity(name string)
- func (b *Builder) RemoveLabel(name string)
- func (b *Builder) Resource(name, vers, typ string, relation metav1.ResourceRelation, f ...func())
- func (b *Builder) SetFailhandler(h ...env.FailHandler) *Builder
- func (b *Builder) Source(name, vers, typ string, f ...func())
- func (b *Builder) Tags(tags ...string)
- func (b *Builder) Version(name string, f ...func())
- type State
Constants ¶
const ( T_OCIARTIFACT = "artifact" T_OCIINDEX = "index" T_OCIMANIFEST = "manifest" )
const T_BLOBACCESS = "blob access"
const T_COMPARCH = "component archive"
const T_OCIARTIFACTSET = "artifact set"
const T_OCICONFIG = "oci config"
const T_OCILAYER = "oci layer"
const T_OCINAMESPACE = "oci namespace"
const T_OCIPLATFORM = "platform consumer"
const T_OCIREPOSITORY = "oci repository"
const T_OCI_CTF = "oci common transport format"
const T_OCMACCESS = "access"
const T_OCMCOMPONENT = "component"
const T_OCMLABELS = "element with labels"
const T_OCMMETA = "element with metadata"
const T_OCMPROVIDER = "provider"
const T_OCMREF = "reference"
const T_OCMREPOSITORY = "ocm repository"
const T_OCMRESOURCE = "resource"
const T_OCMSOURCE = "source"
const T_OCMVERSION = "component version"
const T_OCM_COMPOSITION = "ocm composition repositoryt"
const T_OCM_CTF = "ocm common transport format"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct { *env.Environment // contains filtered or unexported fields }
func New ¶
New creates a new composition environment including an own OCM context and a private filesystem, which can be used to compose OCM/OCI repositories and their content. It can be configured to work with dedicated settings, also.
func NewBuilder ¶
NewBuilder creates a new composition environment including an own OCM context and a private filesystem, which can be used to compose OCM/OCI repositories and their content. By default, a private environment is created based on a ginko fail handling intended to be used for test cases. But it can be configured to work as library with dedicated settings, also.
func (*Builder) Access ¶
func (b *Builder) Access(acc compdesc.AccessSpec)
func (*Builder) Annotation ¶
func (*Builder) Artifact ¶
func (b *Builder) Artifact(desc *artdesc.Descriptor)
func (*Builder) ArtifactSet ¶
func (b *Builder) ArtifactSet(path string, fmt accessio.FileFormat, f ...func())
func (*Builder) ArtifactSetBlob ¶ added in v0.15.0
func (*Builder) BlobFromDirTree ¶
func (*Builder) BlobFromFile ¶
func (*Builder) BlobStringData ¶
func (*Builder) Build ¶
Build executes the given functions and returns a potential configuration error, instead of using the builder's env.FailHandler. Additionally, a build can always throw an exception using the exception.Throw function.
func (*Builder) ClearExtraIdentities ¶
func (b *Builder) ClearExtraIdentities()
func (*Builder) ClearLabels ¶
func (b *Builder) ClearLabels()
func (*Builder) ComponentArchive ¶
func (b *Builder) ComponentArchive(path string, fmt accessio.FileFormat, name, vers string, f ...func())
func (*Builder) ComponentVersion ¶
func (*Builder) ExtraIdentity ¶
func (*Builder) GeneralOCIRepository ¶
func (b *Builder) GeneralOCIRepository(spec oci.RepositorySpec, f ...func())
func (*Builder) Label ¶
func (b *Builder) Label(name string, value interface{}, opts ...metav1.LabelOption)
func (*Builder) Layer ¶
func (b *Builder) Layer(f ...func()) *artdesc.Descriptor
func (*Builder) ModificationOptions ¶
func (b *Builder) ModificationOptions(opts ...ocm.ModificationOption)
func (*Builder) ModifyResource ¶
func (*Builder) OCIBasedOCMRepository ¶
func (*Builder) OCICommonTransport ¶
func (b *Builder) OCICommonTransport(path string, fmt accessio.FileFormat, f ...func())
func (*Builder) OCIRegistry ¶
func (*Builder) OCMCommonTransport ¶
func (b *Builder) OCMCommonTransport(path string, fmt accessio.FileFormat, f ...func())
func (*Builder) OCMCompositionRepository ¶
func (*Builder) OCMRepository ¶
func (b *Builder) OCMRepository(spec ocm.RepositorySpec, f ...func())
func (*Builder) PropagateError ¶
PropagateError can be used in defer to convert an composition error into an error return.
func (*Builder) RSAKeyPair ¶
TODO: switch to context local setting.
func (*Builder) ReadRSAKeyPair ¶
func (*Builder) RemoveExtraIdentity ¶
func (*Builder) RemoveLabel ¶
func (*Builder) Resource ¶
func (b *Builder) Resource(name, vers, typ string, relation metav1.ResourceRelation, f ...func())
func (*Builder) SetFailhandler ¶
func (b *Builder) SetFailhandler(h ...env.FailHandler) *Builder
Source Files ¶
- blob.go
- builder.go
- oci_anno.go
- oci_artifact.go
- oci_artifactset.go
- oci_config.go
- oci_ctf.go
- oci_layer.go
- oci_namespace.go
- oci_platform.go
- oci_repo.go
- oci_tags.go
- ocm_access.go
- ocm_comparch.go
- ocm_component.go
- ocm_composition.go
- ocm_ctf.go
- ocm_identity.go
- ocm_label.go
- ocm_provider.go
- ocm_reference.go
- ocm_repo.go
- ocm_resource.go
- ocm_source.go
- ocm_version.go
- rsa_keypair.go