Documentation ¶
Overview ¶
OCI Repository Adapter
Index ¶
- Constants
- func AnnotationToSlice(annotation string) []string
- func GetDefaultFunctionConfig(manifest *v1.Manifest) []functionConfig
- func GetFunctionMeta(reference string, ctx context.Context) (*functionMeta, error)
- func GetSingleFromAnnotation(key string, manifest *v1.Manifest) string
- func GetSliceFromAnnotation(key string, manifest *v1.Manifest) []string
- func LoadResources(ctx context.Context, s *oci.Storage, imageName *oci.ImageDigestName) (*repository.PackageResources, error)
- func LookupImageTag(ctx context.Context, s *oci.Storage, imageName oci.ImageTagName) (*oci.ImageDigestName, error)
- func OpenRepository(name string, namespace string, content configapi.RepositoryContent, ...) (repository.Repository, error)
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 GetFunctionMeta ¶
func GetSingleFromAnnotation ¶
func GetSliceFromAnnotation ¶
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.
Click to show internal directories.
Click to hide internal directories.