remote

package
v0.37.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Overview

Copyright 2022 The Tekton Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var ErrorRequestInProgress = errors.New("resource request in progress")

ErrorRequestInProgress is a sentinel value that indicates resolving a remote file like a pipeline in a bundle or a task in git hasn't completed yet.

Functions

This section is empty.

Types

type ResolvedObject

type ResolvedObject struct {
	Kind       string
	APIVersion string
	Name       string
}

ResolvedObject is returned by Resolver.List representing a Tekton resource stored in a remote location.

type Resolver

type Resolver interface {
	List(ctx context.Context) ([]ResolvedObject, error)
	Get(ctx context.Context, kind, name string) (runtime.Object, error)
}

Resolver defines a generic API to retrieve Tekton resources from remote locations. It allows 2 principle operations:

  • List: retrieve a flat set of Tekton objects in this remote location
  • Get: retrieves a specific object with the given Kind and name.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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