Documentation ¶
Index ¶
- Constants
- Variables
- type ClientSet
- type Installer
- func (i *Installer) Downgrade(data []byte, catalog, namespace string) (*unstructured.Unstructured, []error)
- func (i *Installer) GetPipelineVersion() string
- func (i *Installer) Install(data []byte, catalog, namespace string) (*unstructured.Unstructured, []error)
- func (i *Installer) ListInstalled(kind, namespace string) ([]unstructured.Unstructured, error)
- func (i *Installer) LookupInstalled(name, kind, namespace string) (*unstructured.Unstructured, error)
- func (i *Installer) TektonPipelinesVersion()
- func (i *Installer) Update(data []byte, catalog, namespace string) (*unstructured.Unstructured, []error)
- func (i *Installer) Upgrade(data []byte, catalog, namespace string) (*unstructured.Unstructured, []error)
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 Installer ¶
type Installer struct {
// contains filtered or unexported fields
}
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 (*Installer) Install ¶
func (i *Installer) Install(data []byte, 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
Click to show internal directories.
Click to hide internal directories.