build

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

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

func NewBuild

func NewBuild(waiter BuildWaiter, logs Logs, sourceFactory SourceFactory) Build

func (Build) Error

func (b Build) Error(cancelCh chan struct{}) error

func (Build) TailLogs

func (b Build) TailLogs(ui ui.UI, cancelCh chan struct{}) error

func (Build) UploadSource added in v0.0.4

func (b Build) UploadSource(dirPath string, ui ui.UI, cancelCh chan struct{}) error

type BuildSpec

type BuildSpec struct{}

func (BuildSpec) Build

func (s BuildSpec) Build(opts BuildSpecOpts) (v1alpha1.BuildSpec, error)

type BuildSpecOpts

type BuildSpecOpts struct {
	SourceDirectory string

	GitURL      string
	GitRevision string

	ServiceAccountName string

	Template     string
	TemplateArgs []string
	TemplateEnv  []string

	Image string
}

type BuildWaiter

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

func NewBuildWaiter

func NewBuildWaiter(build *v1alpha1.Build, buildClient buildclientset.Interface) BuildWaiter

func (BuildWaiter) WaitForBuilderAssignment

func (w BuildWaiter) WaitForBuilderAssignment(cancelCh chan struct{}) (*v1alpha1.Build, error)

func (BuildWaiter) WaitForClusterBuilderPodAssignment

func (w BuildWaiter) WaitForClusterBuilderPodAssignment(cancelCh chan struct{}) (*v1alpha1.Build, error)

func (BuildWaiter) WaitForCompletion

func (w BuildWaiter) WaitForCompletion(cancelCh chan struct{}) (*v1alpha1.Build, error)

type BuildWatcher

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

func NewBuildWatcher

func NewBuildWatcher(
	buildsClient typedv1alpha1.BuildInterface,
	listOpts metav1.ListOptions,
) BuildWatcher

func (BuildWatcher) Watch

func (w BuildWatcher) Watch(buildsToWatch chan v1alpha1.Build, cancelCh chan struct{}) error

type ClusterBuilderLogs

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

func NewClusterBuilderLogs

func NewClusterBuilderLogs(
	waiter BuildWaiter,
	podsGetterClient typedcorev1.PodsGetter,
) ClusterBuilderLogs

func (ClusterBuilderLogs) Tail

func (l ClusterBuilderLogs) Tail(ui ui.UI, cancelCh chan struct{}) error

type ClusterBuilderSource added in v0.0.4

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

func NewClusterBuilderSource added in v0.0.4

func NewClusterBuilderSource(
	dirPath string,
	waiter BuildWaiter,
	coreClient kubernetes.Interface,
	restConfig *rest.Config,
) ClusterBuilderSource

func (ClusterBuilderSource) Upload added in v0.0.4

func (s ClusterBuilderSource) Upload(ui ui.UI, cancelCh chan struct{}) error

type Factory added in v0.0.4

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

func NewFactory added in v0.0.4

func NewFactory(
	buildClient buildclientset.Interface,
	coreClient kubernetes.Interface,
	restConfig *rest.Config,
) Factory

func (Factory) New added in v0.0.4

func (f Factory) New(build *v1alpha1.Build) Build

type Logs

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

func NewLogs

func NewLogs(waiter BuildWaiter, podsGetterClient typedcorev1.PodsGetter) Logs

func (Logs) Tail

func (l Logs) Tail(ui ui.UI, cancelCh chan struct{}) error

type NoopSource added in v0.0.4

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

func (NoopSource) Upload added in v0.0.4

func (s NoopSource) Upload(ui ui.UI, cancelCh chan struct{}) error

type PodInitContainerRunningWatcher added in v0.0.4

type PodInitContainerRunningWatcher struct {
	Pod           corev1.Pod
	PodsClient    typedcorev1.PodInterface
	InitContainer string
}

func (PodInitContainerRunningWatcher) Wait added in v0.0.4

func (l PodInitContainerRunningWatcher) Wait(cancelCh chan struct{}) error

type PodTerminalStatusWatcher

type PodTerminalStatusWatcher struct {
	Pod        corev1.Pod
	PodsClient typedcorev1.PodInterface
}

func (PodTerminalStatusWatcher) Wait

func (l PodTerminalStatusWatcher) Wait(cancelCh chan struct{}) (corev1.PodPhase, error)

type Source added in v0.0.4

type Source interface {
	Upload(ui ui.UI, cancelCh chan struct{}) error
}

type SourceFactory added in v0.0.4

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

func NewSourceFactory added in v0.0.4

func NewSourceFactory(
	waiter BuildWaiter,
	coreClient kubernetes.Interface,
	restConfig *rest.Config,
) SourceFactory

func (SourceFactory) New added in v0.0.4

func (s SourceFactory) New(t v1alpha1.BuildProvider, dirPath string) Source

Jump to

Keyboard shortcuts

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