Documentation ¶
Index ¶
- Constants
- type Etcd
- func (r *Etcd) CreateBuild(ctx kapi.Context, build *api.Build) error
- func (r *Etcd) CreateBuildConfig(ctx kapi.Context, config *api.BuildConfig) error
- func (r *Etcd) DeleteBuild(ctx kapi.Context, id string) error
- func (r *Etcd) DeleteBuildConfig(ctx kapi.Context, id string) error
- func (r *Etcd) GetBuild(ctx kapi.Context, id string) (*api.Build, error)
- func (r *Etcd) GetBuildConfig(ctx kapi.Context, id string) (*api.BuildConfig, error)
- func (r *Etcd) ListBuildConfigs(ctx kapi.Context, selector labels.Selector) (*api.BuildConfigList, error)
- func (r *Etcd) ListBuilds(ctx kapi.Context, selector labels.Selector) (*api.BuildList, error)
- func (r *Etcd) UpdateBuild(ctx kapi.Context, build *api.Build) error
- func (r *Etcd) UpdateBuildConfig(ctx kapi.Context, config *api.BuildConfig) error
- func (r *Etcd) WatchBuildConfigs(ctx kapi.Context, label labels.Selector, field fields.Selector, ...) (watch.Interface, error)
- func (r *Etcd) WatchBuilds(ctx kapi.Context, label labels.Selector, field fields.Selector, ...) (watch.Interface, error)
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 (*Etcd) CreateBuild ¶
CreateBuild creates a new Build.
func (*Etcd) CreateBuildConfig ¶
CreateBuildConfig creates a new BuildConfig.
func (*Etcd) DeleteBuild ¶
DeleteBuild deletes a Build specified by its ID.
func (*Etcd) DeleteBuildConfig ¶
DeleteBuildConfig deletes a BuildConfig specified by its ID.
func (*Etcd) GetBuildConfig ¶
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 ¶
ListBuilds obtains a list of Builds.
func (*Etcd) UpdateBuild ¶
UpdateBuild replaces an existing Build.
func (*Etcd) UpdateBuildConfig ¶
UpdateBuildConfig replaces an existing BuildConfig.
Click to show internal directories.
Click to hide internal directories.