resolution

package
v0.61.0 Latest Latest
Warning

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

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

Documentation

Overview

Package resolution contains the upgraded remote resolution framework. It is equivalent to `pkg/remote/resolution`. This was necessary to ensure backwards compatibility with the existing framework.

This package is subject to further refactoring and changes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(requester remoteresource.Requester, owner kmeta.OwnerRefable, resolverName string, resolverPayload remoteresource.ResolverPayload) remote.Resolver

NewResolver returns an implementation of remote.Resolver capable of performing asynchronous remote resolution.

Types

type Resolver

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

Resolver implements remote.Resolver and encapsulates the majority of code required to interface with the tektoncd/resolution project. It is used to make async requests for resources like pipelines from remote places like git repos.

func (*Resolver) Get

func (resolver *Resolver) Get(ctx context.Context, _, _ string) (runtime.Object, *v1.RefSource, error)

Get implements remote.Resolver.

func (*Resolver) List

func (resolver *Resolver) List(_ context.Context) ([]remote.ResolvedObject, error)

List implements remote.Resolver but is unused for remote resolution.

Jump to

Keyboard shortcuts

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