buildconfiginstantiate

package
v3.10.0-0.63.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BinaryStrategy = binaryStrategy{legacyscheme.Scheme}
View Source
var Strategy = strategy{legacyscheme.Scheme}

Functions

This section is empty.

Types

type BinaryInstantiateREST

type BinaryInstantiateREST struct {
	Generator    *generator.BuildGenerator
	BuildClient  buildtypedclient.BuildsGetter
	PodClient    kcoreclient.PodsGetter
	ClientConfig *restclient.Config
	Timeout      time.Duration
}

func NewBinaryStorage

func NewBinaryStorage(generator *generator.BuildGenerator, buildClient buildtypedclient.BuildsGetter, podClient kcoreclient.PodsGetter, inClientConfig *restclient.Config) *BinaryInstantiateREST

func (*BinaryInstantiateREST) Connect

func (r *BinaryInstantiateREST) Connect(ctx apirequest.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

New creates a new build generation request

func (*BinaryInstantiateREST) NewConnectOptions

func (r *BinaryInstantiateREST) NewConnectOptions() (runtime.Object, bool, string)

NewConnectOptions prepares a binary build request.

func (*BinaryInstantiateREST) ProducesMIMETypes

func (r *BinaryInstantiateREST) ProducesMIMETypes(verb string) []string

func (*BinaryInstantiateREST) ProducesObject

func (r *BinaryInstantiateREST) ProducesObject(verb string) interface{}

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

func (s *InstantiateREST) Create(ctx apirequest.Context, obj runtime.Object, createValidation rest.ValidateObjectFunc, _ bool) (runtime.Object, error)

Create instantiates a new build from a build configuration

func (*InstantiateREST) New

func (s *InstantiateREST) New() runtime.Object

New creates a new build generation request

func (*InstantiateREST) ProducesMIMETypes

func (s *InstantiateREST) ProducesMIMETypes(verb string) []string

func (*InstantiateREST) ProducesObject

func (s *InstantiateREST) ProducesObject(verb string) interface{}

Jump to

Keyboard shortcuts

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