ociblob

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

README

Access Method ociBlob - OCI Blob Access

Synopsis
type: ociBlob/v1

Provided blobs use the following media type: attribute mediaType

Description

This method implements the access of an OCI blob stored in an OCI repository.

Supported specification version is v1

Specification Versions
Version v1

The type specific specification fields are:

  • imageReference string

    OCI repository reference (this artifact name used to store the blob).

  • mediaType string

    The media type of the blob

  • digest string

    The digest of the blob used to access the blob in the OCI repository.

  • size integer

    The size of the blob

Go Bindings

The go binding can be found here

Documentation

Index

Constants

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

Type is the access type for a blob in an OCI repository.

Variables

This section is empty.

Functions

func AddConfig

func AddConfig(opts flagsets.ConfigOptions, config flagsets.Config) error

Types

type AccessSpec

type AccessSpec struct {
	runtime.ObjectVersionedType `json:",inline"`

	// Reference is the oci reference to the OCI repository
	Reference string `json:"ref"`

	// MediaType is the media type of the object this schema refers to.
	MediaType string `json:"mediaType,omitempty"`

	// Digest is the digest of the targeted content.
	Digest digest.Digest `json:"digest"`

	// Size specifies the size in bytes of the blob.
	Size int64 `json:"size"`
}

AccessSpec describes the access for a oci registry.

func New

func New(repository string, digest digest.Digest, mediaType string, size int64) *AccessSpec

New creates a new OCIBlob accessor.

func (*AccessSpec) AccessMethod

func (*AccessSpec) Describe

func (a *AccessSpec) Describe(ctx accspeccpi.Context) string

func (*AccessSpec) GetInexpensiveContentVersionIdentity added in v0.3.0

func (s *AccessSpec) GetInexpensiveContentVersionIdentity(access accspeccpi.ComponentVersionAccess) string

func (*AccessSpec) GetMimeType

func (s *AccessSpec) GetMimeType() string

func (*AccessSpec) GlobalAccessSpec added in v0.3.0

func (s *AccessSpec) GlobalAccessSpec(ctx accspeccpi.Context) accspeccpi.AccessSpec

func (*AccessSpec) IsLocal

func (s *AccessSpec) IsLocal(context accspeccpi.Context) bool

Jump to

Keyboard shortcuts

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