Documentation
¶
Index ¶
- Constants
- type CreateCluster
- type CreateClusterBadRequest
- type CreateClusterHandler
- type CreateClusterHandlerFunc
- type CreateClusterOK
- type CreateClusterParams
- type CreateClusterURL
- func (o *CreateClusterURL) Build() (*url.URL, error)
- func (o *CreateClusterURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateClusterURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateClusterURL) SetBasePath(bp string)
- func (o *CreateClusterURL) String() string
- func (o *CreateClusterURL) StringFull(scheme, host string) string
- func (o *CreateClusterURL) WithBasePath(bp string) *CreateClusterURL
- type SyncsetsAPI
- func (o *SyncsetsAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *SyncsetsAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *SyncsetsAPI) Authorizer() runtime.Authorizer
- func (o *SyncsetsAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *SyncsetsAPI) Context() *middleware.Context
- func (o *SyncsetsAPI) DefaultConsumes() string
- func (o *SyncsetsAPI) DefaultProduces() string
- func (o *SyncsetsAPI) Formats() strfmt.Registry
- func (o *SyncsetsAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *SyncsetsAPI) Init()
- func (o *SyncsetsAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *SyncsetsAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *SyncsetsAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *SyncsetsAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *SyncsetsAPI) Serve(builder middleware.Builder) http.Handler
- func (o *SyncsetsAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *SyncsetsAPI) SetDefaultConsumes(mediaType string)
- func (o *SyncsetsAPI) SetDefaultProduces(mediaType string)
- func (o *SyncsetsAPI) SetSpec(spec *loads.Document)
- func (o *SyncsetsAPI) UseRedoc()
- func (o *SyncsetsAPI) UseSwaggerUI()
- func (o *SyncsetsAPI) Validate() error
Constants ¶
const CreateClusterBadRequestCode int = 400
CreateClusterBadRequestCode is the HTTP code returned for type CreateClusterBadRequest
const CreateClusterOKCode int = 200
CreateClusterOKCode is the HTTP code returned for type CreateClusterOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateCluster ¶
type CreateCluster struct { Context *middleware.Context Handler CreateClusterHandler }
CreateCluster swagger:route POST /clusters createCluster
Create a Cluster resource.
Some test description that should be expanded on someday.
func NewCreateCluster ¶
func NewCreateCluster(ctx *middleware.Context, handler CreateClusterHandler) *CreateCluster
NewCreateCluster creates a new http.Handler for the create cluster operation
func (*CreateCluster) ServeHTTP ¶
func (o *CreateCluster) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateClusterBadRequest ¶
type CreateClusterBadRequest struct { /* */ ResponseCode int64 `json:"ResponseCode"` }
CreateClusterBadRequest BadRequest indicates that there was an error in the HTTP request.
swagger:response createClusterBadRequest
func NewCreateClusterBadRequest ¶
func NewCreateClusterBadRequest() *CreateClusterBadRequest
NewCreateClusterBadRequest creates CreateClusterBadRequest with default headers values
func (*CreateClusterBadRequest) SetResponseCode ¶
func (o *CreateClusterBadRequest) SetResponseCode(responseCode int64)
SetResponseCode sets the responseCode to the create cluster bad request response
func (*CreateClusterBadRequest) WithResponseCode ¶
func (o *CreateClusterBadRequest) WithResponseCode(responseCode int64) *CreateClusterBadRequest
WithResponseCode adds the responseCode to the create cluster bad request response
func (*CreateClusterBadRequest) WriteResponse ¶
func (o *CreateClusterBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateClusterHandler ¶
type CreateClusterHandler interface {
Handle(CreateClusterParams) middleware.Responder
}
CreateClusterHandler interface for that can handle valid create cluster params
type CreateClusterHandlerFunc ¶
type CreateClusterHandlerFunc func(CreateClusterParams) middleware.Responder
CreateClusterHandlerFunc turns a function with the right signature into a create cluster handler
func (CreateClusterHandlerFunc) Handle ¶
func (fn CreateClusterHandlerFunc) Handle(params CreateClusterParams) middleware.Responder
Handle executing the request and returning a response
type CreateClusterOK ¶
type CreateClusterOK struct { /* */ ResponseCode int64 `json:"ResponseCode"` }
CreateClusterOK OK indicates that the HTTP request was successful.
swagger:response createClusterOK
func NewCreateClusterOK ¶
func NewCreateClusterOK() *CreateClusterOK
NewCreateClusterOK creates CreateClusterOK with default headers values
func (*CreateClusterOK) SetResponseCode ¶
func (o *CreateClusterOK) SetResponseCode(responseCode int64)
SetResponseCode sets the responseCode to the create cluster o k response
func (*CreateClusterOK) WithResponseCode ¶
func (o *CreateClusterOK) WithResponseCode(responseCode int64) *CreateClusterOK
WithResponseCode adds the responseCode to the create cluster o k response
func (*CreateClusterOK) WriteResponse ¶
func (o *CreateClusterOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateClusterParams ¶
CreateClusterParams contains all the bound params for the create cluster operation typically these are obtained from a http.Request
swagger:parameters createCluster
func NewCreateClusterParams ¶
func NewCreateClusterParams() CreateClusterParams
NewCreateClusterParams creates a new CreateClusterParams object no default values defined in spec.
func (*CreateClusterParams) BindRequest ¶
func (o *CreateClusterParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewCreateClusterParams() beforehand.
type CreateClusterURL ¶
type CreateClusterURL struct {
// contains filtered or unexported fields
}
CreateClusterURL generates an URL for the create cluster operation
func (*CreateClusterURL) Build ¶
func (o *CreateClusterURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateClusterURL) BuildFull ¶
func (o *CreateClusterURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateClusterURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateClusterURL) SetBasePath ¶
func (o *CreateClusterURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CreateClusterURL) String ¶
func (o *CreateClusterURL) String() string
String returns the string representation of the path with query string
func (*CreateClusterURL) StringFull ¶
func (o *CreateClusterURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateClusterURL) WithBasePath ¶
func (o *CreateClusterURL) WithBasePath(bp string) *CreateClusterURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type SyncsetsAPI ¶
type SyncsetsAPI struct { Middleware func(middleware.Builder) http.Handler // BasicAuthenticator generates a runtime.Authenticator from the supplied basic auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BasicAuthenticator func(security.UserPassAuthentication) runtime.Authenticator // APIKeyAuthenticator generates a runtime.Authenticator from the supplied token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. APIKeyAuthenticator func(string, string, security.TokenAuthentication) runtime.Authenticator // BearerAuthenticator generates a runtime.Authenticator from the supplied bearer token auth function. // It has a default implementation in the security package, however you can replace it for your particular usage. BearerAuthenticator func(string, security.ScopedTokenAuthentication) runtime.Authenticator // JSONConsumer registers a consumer for the following mime types: // - application/json JSONConsumer runtime.Consumer // JSONProducer registers a producer for the following mime types: // - application/json JSONProducer runtime.Producer // CreateClusterHandler sets the operation handler for the create cluster operation CreateClusterHandler CreateClusterHandler // ServeError is called when an error is received, there is a default handler // but you can set your own with this ServeError func(http.ResponseWriter, *http.Request, error) // PreServerShutdown is called before the HTTP(S) server is shutdown // This allows for custom functions to get executed before the HTTP(S) server stops accepting traffic PreServerShutdown func() // ServerShutdown is called when the HTTP(S) server is shut down and done // handling all active connections and does not accept connections any more ServerShutdown func() // Custom command line argument groups with their descriptions CommandLineOptionsGroups []swag.CommandLineOptionsGroup // User defined logger function. Logger func(string, ...interface{}) // contains filtered or unexported fields }
SyncsetsAPI Standalone Hive SyncSets without reliance on Kube API, CRs, and etcd. Schemes: http https Schemes: http Schemes: http Schemes: http Schemes: http Schemes: http Schemes: http
func NewSyncsetsAPI ¶
func NewSyncsetsAPI(spec *loads.Document) *SyncsetsAPI
NewSyncsetsAPI creates a new Syncsets instance
func (*SyncsetsAPI) AddMiddlewareFor ¶
func (o *SyncsetsAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*SyncsetsAPI) AuthenticatorsFor ¶
func (o *SyncsetsAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*SyncsetsAPI) Authorizer ¶
func (o *SyncsetsAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*SyncsetsAPI) ConsumersFor ¶
func (o *SyncsetsAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*SyncsetsAPI) Context ¶
func (o *SyncsetsAPI) Context() *middleware.Context
Context returns the middleware context for the syncsets API
func (*SyncsetsAPI) DefaultConsumes ¶
func (o *SyncsetsAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*SyncsetsAPI) DefaultProduces ¶
func (o *SyncsetsAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*SyncsetsAPI) Formats ¶
func (o *SyncsetsAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*SyncsetsAPI) HandlerFor ¶
func (o *SyncsetsAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*SyncsetsAPI) Init ¶
func (o *SyncsetsAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*SyncsetsAPI) ProducersFor ¶
func (o *SyncsetsAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*SyncsetsAPI) RegisterConsumer ¶
func (o *SyncsetsAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*SyncsetsAPI) RegisterFormat ¶
RegisterFormat registers a custom format validator
func (*SyncsetsAPI) RegisterProducer ¶
func (o *SyncsetsAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*SyncsetsAPI) Serve ¶
func (o *SyncsetsAPI) Serve(builder middleware.Builder) http.Handler
Serve creates a http handler to serve the API over HTTP can be used directly in http.ListenAndServe(":8000", api.Serve(nil))
func (*SyncsetsAPI) ServeErrorFor ¶
func (o *SyncsetsAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*SyncsetsAPI) SetDefaultConsumes ¶
func (o *SyncsetsAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*SyncsetsAPI) SetDefaultProduces ¶
func (o *SyncsetsAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*SyncsetsAPI) SetSpec ¶
func (o *SyncsetsAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*SyncsetsAPI) UseSwaggerUI ¶
func (o *SyncsetsAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
func (*SyncsetsAPI) Validate ¶
func (o *SyncsetsAPI) Validate() error
Validate validates the registrations in the SyncsetsAPI