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 ¶
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 ¶
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.