Version: v0.0.1 Latest Latest

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

Go to latest
Published: Nov 5, 2014 License: Apache-2.0 Imports: 10 Imported by: 0




View Source
const (
	// BuildPath is the path to build resources in etcd
	BuildPath string = "/builds"
	// BuildConfigPath is the path to buildConfig resources in etcd
	BuildConfigPath string = "/buildConfigs"


This section is empty.


This section is empty.


type Etcd

type Etcd struct {

Etcd implements build.Registry and buildconfig.Registry backed by etcd.

func New

func New(helper tools.EtcdHelper) *Etcd

New creates an etcd registry.

func (*Etcd) CreateBuild

func (r *Etcd) CreateBuild(ctx kapi.Context, build *api.Build) error

CreateBuild creates a new Build.

func (*Etcd) CreateBuildConfig

func (r *Etcd) CreateBuildConfig(ctx kapi.Context, config *api.BuildConfig) error

CreateBuildConfig creates a new BuildConfig.

func (*Etcd) DeleteBuild

func (r *Etcd) DeleteBuild(ctx kapi.Context, id string) error

DeleteBuild deletes a Build specified by its ID.

func (*Etcd) DeleteBuildConfig

func (r *Etcd) DeleteBuildConfig(ctx kapi.Context, id string) error

DeleteBuildConfig deletes a BuildConfig specified by its ID.

func (*Etcd) GetBuild

func (r *Etcd) GetBuild(ctx kapi.Context, id string) (*api.Build, error)

GetBuild gets a specific Build specified by its ID.

func (*Etcd) GetBuildConfig

func (r *Etcd) GetBuildConfig(ctx kapi.Context, id string) (*api.BuildConfig, error)

GetBuildConfig gets a specific BuildConfig specified by its ID.

func (*Etcd) ListBuildConfigs

func (r *Etcd) ListBuildConfigs(ctx kapi.Context, selector labels.Selector) (*api.BuildConfigList, error)

ListBuildConfigs obtains a list of BuildConfigs.

func (*Etcd) ListBuilds

func (r *Etcd) ListBuilds(ctx kapi.Context, selector labels.Selector) (*api.BuildList, error)

ListBuilds obtains a list of Builds.

func (*Etcd) UpdateBuild

func (r *Etcd) UpdateBuild(ctx kapi.Context, build *api.Build) error

UpdateBuild replaces an existing Build.

func (*Etcd) UpdateBuildConfig

func (r *Etcd) UpdateBuildConfig(ctx kapi.Context, config *api.BuildConfig) error

UpdateBuildConfig replaces an existing BuildConfig.

func (*Etcd) WatchBuilds

func (r *Etcd) WatchBuilds(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)

WatchBuilds begins watching for new, changed, or deleted Builds.

Source Files

Jump to

Keyboard shortcuts

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