tkn

package
v0.0.0-...-bf8a5f7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertClientVersion

func AssertClientVersion(binary string)

func AssertComponentVersion

func AssertComponentVersion(version string, component string)

Verify the versions of Openshift Pipelines components

func AssertServerVersion

func AssertServerVersion(binary string)

func DownloadCLIFromCluster

func DownloadCLIFromCluster()

func StartPipeline

func StartPipeline(pipelineName string, params map[string]string, workspaces map[string]string, namespace string, args ...string) string

func ValidateQuickstarts

func ValidateQuickstarts()

Types

type CapturingPassThroughWriter

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

func NewCapturingPassThroughWriter

func NewCapturingPassThroughWriter(w io.Writer) *CapturingPassThroughWriter

NewCapturingPassThroughWriter creates new CapturingPassThroughWriter

func (*CapturingPassThroughWriter) Bytes

func (w *CapturingPassThroughWriter) Bytes() []byte

Bytes returns bytes written to the writer

func (*CapturingPassThroughWriter) Write

func (w *CapturingPassThroughWriter) Write(d []byte) (int, error)

type Cmd

type Cmd struct {
	// path to tkn binary
	Path string
}

func New

func New(tknPath string) Cmd

New initializes Cmd

func (Cmd) Assert

func (tkn Cmd) Assert(exp icmd.Expected, args ...string) string

Run tkn with given arguments

func (Cmd) MustSucceed

func (tkn Cmd) MustSucceed(args ...string) string

Run tkn with given arguments

Jump to

Keyboard shortcuts

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