Help us shape the future of Go! Take the 2026 Go Developer Survey

installer

package
v0.46.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResourceMinVersion string = "tekton.dev/pipelines.minVersion"
)

Variables

View Source
var (
	ErrAlreadyExist             = errors.New("resource already exists")
	ErrNotFound                 = errors.New("resource not found")
	ErrVersionAndCatalogMissing = errors.New("version and catalog label missing")
	ErrVersionMissing           = errors.New("version label missing")
	ErrCatalogMissing           = errors.New("catalog label missing")
	ErrSameVersion              = errors.New("resource already exists with the requested verion")
	ErrLowerVersion             = errors.New("cannot upgrade resource as requested version is lower than existing")
	ErrHigherVersion            = errors.New("cannot downgrade resource as requested version is higher than existing")
	ErrVersionIncompatible      = errors.New("requires compatible version")
	ErrWarnVersionNotFound      = errors.New("pipeline version unknown")
)

Errors

Functions

This section is empty.

Types

type ClientSet

type ClientSet interface {
	Dynamic() dynamic.Interface
	Tekton() versioned.Interface
}

type Installer

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

func New

func New(cs ClientSet) *Installer

func (*Installer) Downgrade

func (i *Installer) Downgrade(data []byte, catalog, namespace string) (*unstructured.Unstructured, []error)

Downgrade an existing resource to a version lower version by passing it

func (*Installer) GetPipelineVersion

func (i *Installer) GetPipelineVersion() string

func (*Installer) Install

func (i *Installer) Install(data []byte, hubType, org, catalog, namespace string) (*unstructured.Unstructured, []error)

Install a resource

func (*Installer) ListInstalled

func (i *Installer) ListInstalled(kind, namespace string) ([]unstructured.Unstructured, error)

func (*Installer) LookupInstalled

func (i *Installer) LookupInstalled(name, kind, namespace string) (*unstructured.Unstructured, error)

LookupInstalled checks if a resource is installed

func (*Installer) TektonPipelinesVersion

func (i *Installer) TektonPipelinesVersion()

func (*Installer) Update

func (i *Installer) Update(data []byte, catalog, namespace string) (*unstructured.Unstructured, []error)

Update will updates an existing resource with the passed resource if exist

func (*Installer) Upgrade

func (i *Installer) Upgrade(data []byte, catalog, namespace string) (*unstructured.Unstructured, []error)

Upgrade an existing resource to a version upper version by passing it

Jump to

Keyboard shortcuts

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