artifacthdlr

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Clean = processing.Transform(clean)

Clean is a processing chain cleaning and reordering closures.

View Source
var ExplodeAttached = processing.Explode(explodeAttached)

Sort is a processing chain sorting original objects provided by type handler.

Functions

func Attachment

func Attachment(d digest.Digest, suffix string) string

func ClosureExplode

func ClosureExplode(opts *output.Options, e interface{}) []interface{}

func Compare

func Compare(a, b interface{}) int

func Elem

func Elem(e interface{}) oci.ArtifactAccess

func NewTypeHandler

func NewTypeHandler(octx clictx.OCI, session oci.Session, repobase oci.Repository) utils.TypeHandler

Types

type Manifest

type Manifest struct {
	Spec     oci.RefSpec
	Digest   string
	Manifest *artdesc.Artifact
}

type Object

type Object struct {
	History    common.History
	Key        common.NameVersion
	Spec       oci.RefSpec
	AttachKind string
	Namespace  oci.NamespaceAccess
	Artifact   oci.ArtifactAccess
}

func (*Object) AsManifest

func (o *Object) AsManifest() interface{}

func (*Object) GetHistory

func (o *Object) GetHistory() common.History

func (*Object) GetKey

func (o *Object) GetKey() common.NameVersion

func (*Object) GetKind

func (o *Object) GetKind() string

func (*Object) IsNode

func (o *Object) IsNode() *common.NameVersion

func (*Object) String

func (o *Object) String() string

type Objects

type Objects []*Object

func ObjectSlice

func ObjectSlice(s data.Iterable) Objects

func (Objects) Get

func (this Objects) Get(i int) interface{}

func (Objects) Iterator

func (this Objects) Iterator() data.Iterator

func (Objects) Len

func (this Objects) Len() int

type TypeHandler

type TypeHandler struct {
	// contains filtered or unexported fields
}

func (*TypeHandler) All

func (h *TypeHandler) All() ([]output.Object, error)

func (*TypeHandler) Close

func (h *TypeHandler) Close() error

func (*TypeHandler) Get

func (h *TypeHandler) Get(elemspec utils.ElemSpec) ([]output.Object, error)

Jump to

Keyboard shortcuts

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