accessors

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessSpec

type AccessSpec interface {
	runtime.VersionedTypedObject
}

AccessSpec is the minimal interface for access spec attributes.

type ArtifactAccessor

type ArtifactAccessor interface {
	Element
	GetType() string
	GetAccess() AccessSpec
}

ArtifactAccessor provides access to generic artifact information of an element.

type Element added in v0.15.0

type Element interface {
	ElementMetaProvider
	Equivalent(Element) equivalent.EqualState
}

Element represents a generic element with meta information. It also allows to check for equivalence of elements of the same kind.

type ElementListAccessor

type ElementListAccessor interface {
	Len() int
	Get(i int) Element
}

ElementListAccessor provides generic access to list of elements.

type ElementMeta

type ElementMeta interface {
	GetName() string
	GetVersion() string
	GetExtraIdentity() v1.Identity
	GetLabels() v1.Labels
	GetIdentity(accessor ElementListAccessor) v1.Identity
	GetIdentityDigest(accessor ElementListAccessor) []byte

	GetRawIdentity() v1.Identity
	GetMatchBaseIdentity() v1.Identity

	GetMeta() ElementMeta // ElementMeta is again a Meta provider

	SetLabels(labels []v1.Label)
}

ElementMeta describes the access to common element meta data attributes.

type ElementMetaProvider added in v0.15.0

type ElementMetaProvider interface {
	GetMeta() ElementMeta
}

ElementMetaProvider just provides access to element meta data of an element.

type ReferenceAccessor

type ReferenceAccessor interface {
	Element
	GetComponentName() string
}

ReferenceAccessor provides access to source attribute.

type ResourceAccessor

type ResourceAccessor interface {
	ArtifactAccessor
	GetRelation() v1.ResourceRelation
	GetDigest() *v1.DigestSpec
}

ResourceAccessor provides access to resource attribute.

type SourceAccessor

type SourceAccessor interface {
	ArtifactAccessor
}

SourceAccessor provides access to source attribute.

Jump to

Keyboard shortcuts

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