etcd

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

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"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcd

type Etcd struct {
	tools.EtcdHelper
}

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) WatchBuildConfigs added in v0.2.1

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

WatchBuildConfigs begins watching for new, changed, or deleted BuildConfigs.

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.

Jump to

Keyboard shortcuts

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