Documentation ¶
Index ¶
- func NewREST(registry Registry) apiserver.RESTStorage
- type REST
- func (r *REST) Create(ctx kapi.Context, obj runtime.Object) (runtime.Object, error)
- func (r *REST) Delete(ctx kapi.Context, id string) (runtime.Object, error)
- func (r *REST) Get(ctx kapi.Context, id string) (runtime.Object, error)
- func (r *REST) List(ctx kapi.Context, selector, fields labels.Selector) (runtime.Object, error)
- func (r *REST) New() runtime.Object
- func (*REST) NewList() runtime.Object
- func (r *REST) Update(ctx kapi.Context, obj runtime.Object) (runtime.Object, bool, error)
- func (r *REST) Watch(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error)
- type Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewREST ¶
func NewREST(registry Registry) apiserver.RESTStorage
NewREST creates a new REST for BuildConfig.
Types ¶
type REST ¶
type REST struct {
// contains filtered or unexported fields
}
REST is an implementation of RESTStorage for the api server.
type Registry ¶
type Registry interface { // ListBuildConfigs obtains list of buildConfigs that match a selector. ListBuildConfigs(ctx kapi.Context, labels labels.Selector) (*api.BuildConfigList, error) // GetBuildConfig retrieves a specific buildConfig. GetBuildConfig(ctx kapi.Context, id string) (*api.BuildConfig, error) // CreateBuildConfig creates a new buildConfig. CreateBuildConfig(ctx kapi.Context, buildConfig *api.BuildConfig) error // UpdateBuildConfig updates a buildConfig. UpdateBuildConfig(ctx kapi.Context, buildConfig *api.BuildConfig) error // DeleteBuildConfig deletes a buildConfig. DeleteBuildConfig(ctx kapi.Context, id string) error // WatchBuildConfigs watches buildConfigs. WatchBuildConfigs(ctx kapi.Context, label, field labels.Selector, resourceVersion string) (watch.Interface, error) }
Registry is an interface for things that know how to store BuildConfigs.
Click to show internal directories.
Click to hide internal directories.