oci

package
v0.0.0-...-83386ca Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PipelineRefParam = "pipelineref"
	WorkspacesParam  = "workspaces"
	TargetParam      = "target"
	WrapperParam     = "wrapper"

	DefaultBaseImage = "ghcr.io/openshift-pipelines/tekton-wrap-pipeline/base:latest"
)
View Source
const LabelValueWrapResolverType string = "wrap.oci"

LabelValueWrapResolverType is the value to use for the resolution.tekton.dev/type label on resource requests

Variables

This section is empty.

Functions

func ResolveTask

func ResolveTask(ctx context.Context, pipelineClientSet clientset.Interface)

Types

type ResolvedWrapperResource

type ResolvedWrapperResource struct {
	Content     []byte
	PipelineRef string
}

func (*ResolvedWrapperResource) Annotations

func (r *ResolvedWrapperResource) Annotations() map[string]string

Annotations returns the metadata that accompanies the resource fetched from the cluster.

func (*ResolvedWrapperResource) Data

func (r *ResolvedWrapperResource) Data() []byte

Data returns the bytes of the file resolved from git.

func (*ResolvedWrapperResource) Source

Source is the source reference of the remote data that records where the remote file came from including the url, digest and the entrypoint.

type Resolver

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

Resolver implements a framework.Resolver that can "wrap" a Pipeline for not using a PVC for workspaces

func (*Resolver) GetConfigName

func (r *Resolver) GetConfigName(context.Context) string

GetConfigName returns the name of the wrap resolver's configmap.

func (*Resolver) GetName

func (r *Resolver) GetName(context.Context) string

GetName returns a string name to refer to this Resolver by.

func (*Resolver) GetSelector

func (r *Resolver) GetSelector(context.Context) map[string]string

GetSelector returns a map of labels to match requests to this Resolver.

func (*Resolver) Initialize

func (r *Resolver) Initialize(ctx context.Context) error

Initialize sets up any dependencies needed by the Resolver. None atm.

func (*Resolver) Resolve

func (r *Resolver) Resolve(ctx context.Context, origParams []v1beta1.Param) (framework.ResolvedResource, error)

Resolve uses the given params to resolve the requested file or resource.

func (*Resolver) ValidateParams

func (r *Resolver) ValidateParams(ctx context.Context, params []v1beta1.Param) error

ValidateParams ensures parameters from a request are as expected.

Jump to

Keyboard shortcuts

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