build

package
Version: v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DetailsStrategy = detailsStrategy{Strategy}

DetailsStrategy is the strategy used to manage updates to a Build revision

View Source
var Strategy = strategy{kapi.Scheme, names.SimpleNameGenerator}

Strategy is the default logic that applies when creating and updating Build objects.

Functions

func GetAttrs

func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error)

GetAttrs returns labels and fields of a given object for filtering purposes

func Matcher added in v0.5.2

Matcher returns a generic matcher for a given label and field selector.

Types

type Registry

type Registry interface {
	// ListBuilds obtains list of builds that match a selector.
	ListBuilds(ctx apirequest.Context, options *metainternal.ListOptions) (*api.BuildList, error)
	// GetBuild retrieves a specific build.
	GetBuild(ctx apirequest.Context, id string, options *metav1.GetOptions) (*api.Build, error)
	// CreateBuild creates a new build.
	CreateBuild(ctx apirequest.Context, build *api.Build) error
	// UpdateBuild updates a build.
	UpdateBuild(ctx apirequest.Context, build *api.Build) error
	// DeleteBuild deletes a build.
	DeleteBuild(ctx apirequest.Context, id string) error
	// WatchBuilds watches builds.
	WatchBuilds(ctx apirequest.Context, options *metainternal.ListOptions) (watch.Interface, error)
}

Registry is an interface for things that know how to store Builds.

func NewRegistry added in v0.5.2

func NewRegistry(s rest.StandardStorage) Registry

NewRegistry returns a new Registry interface for the given Storage. Any mismatched types will panic.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL