oci

package
v0.0.0-...-2e562c1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

OCI Repository Adapter

Index

Constants

View Source
const (
	FunctionTypesKey    = ociImagePrefix + "types"
	DescriptionKey      = ociImagePrefix + "description"
	DocumentationURLKey = ociImagePrefix + "documentationurl"

	// experimental: this field is very likely to be changed in the future.
	ConfigMapFnKey = fnConfigMetaPrefix + "configmap.requiredfields"
)

Variables

This section is empty.

Functions

func AnnotationToSlice

func AnnotationToSlice(annotation string) []string

func GetDefaultFunctionConfig

func GetDefaultFunctionConfig(manifest *v1.Manifest) []functionConfig

func GetFunctionMeta

func GetFunctionMeta(reference string, ctx context.Context) (*functionMeta, error)

func GetSingleFromAnnotation

func GetSingleFromAnnotation(key string, manifest *v1.Manifest) string

func GetSliceFromAnnotation

func GetSliceFromAnnotation(key string, manifest *v1.Manifest) []string

func LoadResources

func LoadResources(ctx context.Context, s *oci.Storage, imageName *oci.ImageDigestName) (*repository.PackageResources, error)

func LookupImageTag

func LookupImageTag(ctx context.Context, s *oci.Storage, imageName oci.ImageTagName) (*oci.ImageDigestName, error)

func OpenRepository

func OpenRepository(name string, namespace string, content configapi.RepositoryContent, spec *configapi.OciRepository, deployment bool, storage *oci.Storage) (repository.Repository, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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