Documentation ¶
Index ¶
- Variables
- type BinaryInstantiateREST
- func (r *BinaryInstantiateREST) Connect(ctx kapi.Context, name string, options runtime.Object, ...) (http.Handler, error)
- func (r *BinaryInstantiateREST) ConnectMethods() []string
- func (s *BinaryInstantiateREST) New() runtime.Object
- func (r *BinaryInstantiateREST) NewConnectOptions() (runtime.Object, bool, string)
- type InstantiateREST
Constants ¶
This section is empty.
Variables ¶
View Source
var BinaryStrategy = binaryStrategy{kapi.Scheme}
View Source
var Strategy = strategy{kapi.Scheme}
Functions ¶
This section is empty.
Types ¶
type BinaryInstantiateREST ¶
type BinaryInstantiateREST struct { Generator *generator.BuildGenerator Watcher rest.Watcher PodGetter pod.ResourceGetter ConnectionInfo kubeletclient.ConnectionInfoGetter Timeout time.Duration }
func NewBinaryStorage ¶
func NewBinaryStorage(generator *generator.BuildGenerator, watcher rest.Watcher, podClient unversioned.PodsNamespacer, info kubeletclient.ConnectionInfoGetter) *BinaryInstantiateREST
func (*BinaryInstantiateREST) Connect ¶
func (r *BinaryInstantiateREST) Connect(ctx kapi.Context, name string, options runtime.Object, responder rest.Responder) (http.Handler, error)
Connect returns a ConnectHandler that will handle the request/response for a request
func (*BinaryInstantiateREST) ConnectMethods ¶
func (r *BinaryInstantiateREST) ConnectMethods() []string
ConnectMethods returns POST, the only supported binary method.
func (*BinaryInstantiateREST) New ¶
func (s *BinaryInstantiateREST) New() runtime.Object
New creates a new build generation request
func (*BinaryInstantiateREST) NewConnectOptions ¶
func (r *BinaryInstantiateREST) NewConnectOptions() (runtime.Object, bool, string)
NewConnectOptions prepares a binary build request.
type InstantiateREST ¶
type InstantiateREST struct {
// contains filtered or unexported fields
}
InstantiateREST is a RESTStorage implementation for a BuildGenerator which supports only the Create operation (as the generator has no underlying storage object).
func NewStorage ¶
func NewStorage(generator *generator.BuildGenerator) *InstantiateREST
NewStorage creates a new storage object for build generation
func (*InstantiateREST) New ¶
func (s *InstantiateREST) New() runtime.Object
New creates a new build generation request
Click to show internal directories.
Click to hide internal directories.