builder

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: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	T_OCIARTIFACT = "artifact"
	T_OCIINDEX    = "index"
	T_OCIMANIFEST = "manifest"
)
View Source
const T_BLOBACCESS = "blob access"
View Source
const T_COMPARCH = "component archive"
View Source
const T_OCIARTIFACTSET = "artifact set"
View Source
const T_OCICONFIG = "oci config"
View Source
const T_OCILAYER = "oci layer"
View Source
const T_OCINAMESPACE = "oci namespace"
View Source
const T_OCIREPOSITORY = "oci repository"
View Source
const T_OCI_CTF = "oci common transport format"
View Source
const T_OCMACCESS = "access"
View Source
const T_OCMCOMPONENT = "component"
View Source
const T_OCMMETA = "element with metadata"
View Source
const T_OCMREF = "reference"
View Source
const T_OCMREPOSITORY = "ocm repository"
View Source
const T_OCMRESOURCE = "resource"
View Source
const T_OCMSOURCE = "source"
View Source
const T_OCMVERSION = "component version"
View Source
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 NewBuilder

func NewBuilder(t *env.Environment) *Builder

func (*Builder) Access

func (b *Builder) Access(acc compdesc.AccessSpec)

func (*Builder) Annotation

func (b *Builder) Annotation(name, value string)

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) BlobData

func (b *Builder) BlobData(mime string, data []byte)

func (*Builder) BlobFromFile

func (b *Builder) BlobFromFile(mime string, path string)

func (*Builder) BlobStringData

func (b *Builder) BlobStringData(mime string, data string)

func (*Builder) ClearExtraIdentities

func (b *Builder) ClearExtraIdentities()

func (*Builder) ClearLabels

func (b *Builder) ClearLabels()

func (*Builder) Component

func (b *Builder) Component(name string, f ...func())

func (*Builder) ComponentArchive

func (b *Builder) ComponentArchive(path string, fmt accessio.FileFormat, name, vers string, f ...func())

func (*Builder) ComponentVersion

func (b *Builder) ComponentVersion(name, version string, f ...func())

func (*Builder) Config

func (b *Builder) Config(f ...func())

func (*Builder) ExtraIdentity

func (b *Builder) ExtraIdentity(name string, value string)

func (*Builder) Hint

func (b *Builder) Hint(hint string)

func (*Builder) Index

func (b *Builder) Index(tag string, f ...func()) *artdesc.Descriptor

func (*Builder) Label

func (b *Builder) Label(name string, value interface{})

func (*Builder) Layer

func (b *Builder) Layer(f ...func()) *artdesc.Descriptor

func (*Builder) Manifest

func (b *Builder) Manifest(tag string, f ...func()) *artdesc.Descriptor

func (*Builder) Namespace

func (b *Builder) Namespace(name string, f ...func())

func (*Builder) OCICommonTransport

func (b *Builder) OCICommonTransport(path string, fmt accessio.FileFormat, f ...func())

func (*Builder) OCMCommonTransport

func (b *Builder) OCMCommonTransport(path string, fmt accessio.FileFormat, f ...func())

func (*Builder) Provider

func (b *Builder) Provider(name string)

func (*Builder) ProviderLabel

func (b *Builder) ProviderLabel(name string, value interface{})

func (*Builder) RSAKeyPair

func (b *Builder) RSAKeyPair(name ...string)

TODO: switch to context local setting.

func (*Builder) ReadRSAKeyPair

func (b *Builder) ReadRSAKeyPair(name, path string)

func (*Builder) Reference

func (b *Builder) Reference(name, comp, vers string, f ...func())

func (*Builder) RemoveExtraIdentity

func (b *Builder) RemoveExtraIdentity(name string)

func (*Builder) RemoveLabel

func (b *Builder) RemoveLabel(name string)

func (*Builder) Resource

func (b *Builder) Resource(name, vers, typ string, relation metav1.ResourceRelation, f ...func())

func (*Builder) Source

func (b *Builder) Source(name, vers, typ string, f ...func())

func (*Builder) Tags

func (b *Builder) Tags(tags ...string)

func (*Builder) Version

func (b *Builder) Version(name string, f ...func())

type State

type State struct{}

Jump to

Keyboard shortcuts

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