operations

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PostDagActionBodyActionStart captures enum value "start"
	PostDagActionBodyActionStart string = "start"

	// PostDagActionBodyActionSuspend captures enum value "suspend"
	PostDagActionBodyActionSuspend string = "suspend"

	// PostDagActionBodyActionStop captures enum value "stop"
	PostDagActionBodyActionStop string = "stop"

	// PostDagActionBodyActionRetry captures enum value "retry"
	PostDagActionBodyActionRetry string = "retry"

	// PostDagActionBodyActionMarkDashSuccess captures enum value "mark-success"
	PostDagActionBodyActionMarkDashSuccess string = "mark-success"

	// PostDagActionBodyActionMarkDashFailed captures enum value "mark-failed"
	PostDagActionBodyActionMarkDashFailed string = "mark-failed"

	// PostDagActionBodyActionSave captures enum value "save"
	PostDagActionBodyActionSave string = "save"

	// PostDagActionBodyActionRename captures enum value "rename"
	PostDagActionBodyActionRename string = "rename"
)
View Source
const CreateDagOKCode int = 200

CreateDagOKCode is the HTTP code returned for type CreateDagOK

View Source
const DeleteDagOKCode int = 200

DeleteDagOKCode is the HTTP code returned for type DeleteDagOK

View Source
const GetDagDetailsOKCode int = 200

GetDagDetailsOKCode is the HTTP code returned for type GetDagDetailsOK

View Source
const ListDagsOKCode int = 200

ListDagsOKCode is the HTTP code returned for type ListDagsOK

View Source
const PostDagActionOKCode int = 200

PostDagActionOKCode is the HTTP code returned for type PostDagActionOK

View Source
const SearchDagsOKCode int = 200

SearchDagsOKCode is the HTTP code returned for type SearchDagsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type BlackdaggerAPI

type BlackdaggerAPI 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

	// CreateDagHandler sets the operation handler for the create dag operation
	CreateDagHandler CreateDagHandler
	// DeleteDagHandler sets the operation handler for the delete dag operation
	DeleteDagHandler DeleteDagHandler
	// GetDagDetailsHandler sets the operation handler for the get dag details operation
	GetDagDetailsHandler GetDagDetailsHandler
	// ListDagsHandler sets the operation handler for the list dags operation
	ListDagsHandler ListDagsHandler
	// PostDagActionHandler sets the operation handler for the post dag action operation
	PostDagActionHandler PostDagActionHandler
	// SearchDagsHandler sets the operation handler for the search dags operation
	SearchDagsHandler SearchDagsHandler

	// 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
}

BlackdaggerAPI the blackdagger API

func NewBlackdaggerAPI

func NewBlackdaggerAPI(spec *loads.Document) *BlackdaggerAPI

NewBlackdaggerAPI creates a new Blackdagger instance

func (*BlackdaggerAPI) AddMiddlewareFor

func (o *BlackdaggerAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)

AddMiddlewareFor adds a http middleware to existing handler

func (*BlackdaggerAPI) AuthenticatorsFor

func (o *BlackdaggerAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator

AuthenticatorsFor gets the authenticators for the specified security schemes

func (*BlackdaggerAPI) Authorizer

func (o *BlackdaggerAPI) Authorizer() runtime.Authorizer

Authorizer returns the registered authorizer

func (*BlackdaggerAPI) ConsumersFor

func (o *BlackdaggerAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer

ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.

func (*BlackdaggerAPI) Context

func (o *BlackdaggerAPI) Context() *middleware.Context

Context returns the middleware context for the blackdagger API

func (*BlackdaggerAPI) DefaultConsumes

func (o *BlackdaggerAPI) DefaultConsumes() string

DefaultConsumes returns the default consumes media type

func (*BlackdaggerAPI) DefaultProduces

func (o *BlackdaggerAPI) DefaultProduces() string

DefaultProduces returns the default produces media type

func (*BlackdaggerAPI) Formats

func (o *BlackdaggerAPI) Formats() strfmt.Registry

Formats returns the registered string formats

func (*BlackdaggerAPI) HandlerFor

func (o *BlackdaggerAPI) HandlerFor(method, path string) (http.Handler, bool)

HandlerFor gets a http.Handler for the provided operation method and path

func (*BlackdaggerAPI) Init

func (o *BlackdaggerAPI) Init()

Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit

func (*BlackdaggerAPI) ProducersFor

func (o *BlackdaggerAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer

ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.

func (*BlackdaggerAPI) RegisterConsumer

func (o *BlackdaggerAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)

RegisterConsumer allows you to add (or override) a consumer for a media type.

func (*BlackdaggerAPI) RegisterFormat

func (o *BlackdaggerAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)

RegisterFormat registers a custom format validator

func (*BlackdaggerAPI) RegisterProducer

func (o *BlackdaggerAPI) RegisterProducer(mediaType string, producer runtime.Producer)

RegisterProducer allows you to add (or override) a producer for a media type.

func (*BlackdaggerAPI) Serve

func (o *BlackdaggerAPI) 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 (*BlackdaggerAPI) ServeErrorFor

func (o *BlackdaggerAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)

ServeErrorFor gets a error handler for a given operation id

func (*BlackdaggerAPI) SetDefaultConsumes

func (o *BlackdaggerAPI) SetDefaultConsumes(mediaType string)

SetDefaultConsumes returns the default consumes media type

func (*BlackdaggerAPI) SetDefaultProduces

func (o *BlackdaggerAPI) SetDefaultProduces(mediaType string)

SetDefaultProduces sets the default produces media type

func (*BlackdaggerAPI) SetSpec

func (o *BlackdaggerAPI) SetSpec(spec *loads.Document)

SetSpec sets a spec that will be served for the clients.

func (*BlackdaggerAPI) UseRedoc

func (o *BlackdaggerAPI) UseRedoc()

UseRedoc for documentation at /docs

func (*BlackdaggerAPI) UseSwaggerUI

func (o *BlackdaggerAPI) UseSwaggerUI()

UseSwaggerUI for documentation at /docs

func (*BlackdaggerAPI) Validate

func (o *BlackdaggerAPI) Validate() error

Validate validates the registrations in the BlackdaggerAPI

type CreateDag

type CreateDag struct {
	Context *middleware.Context
	Handler CreateDagHandler
}
CreateDag swagger:route POST /dags createDag

Creates a new DAG.

func NewCreateDag

func NewCreateDag(ctx *middleware.Context, handler CreateDagHandler) *CreateDag

NewCreateDag creates a new http.Handler for the create dag operation

func (*CreateDag) ServeHTTP

func (o *CreateDag) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateDagBody

type CreateDagBody struct {

	// action
	// Required: true
	Action *string `json:"action"`

	// value
	// Required: true
	Value *string `json:"value"`
}

CreateDagBody create dag body

swagger:model CreateDagBody

func (*CreateDagBody) ContextValidate

func (o *CreateDagBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this create dag body based on context it is used

func (*CreateDagBody) MarshalBinary

func (o *CreateDagBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CreateDagBody) UnmarshalBinary

func (o *CreateDagBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CreateDagBody) Validate

func (o *CreateDagBody) Validate(formats strfmt.Registry) error

Validate validates this create dag body

type CreateDagDefault

type CreateDagDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

CreateDagDefault Generic error response.

swagger:response createDagDefault

func NewCreateDagDefault

func NewCreateDagDefault(code int) *CreateDagDefault

NewCreateDagDefault creates CreateDagDefault with default headers values

func (*CreateDagDefault) SetPayload

func (o *CreateDagDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the create dag default response

func (*CreateDagDefault) SetStatusCode

func (o *CreateDagDefault) SetStatusCode(code int)

SetStatusCode sets the status to the create dag default response

func (*CreateDagDefault) WithPayload

func (o *CreateDagDefault) WithPayload(payload *models.APIError) *CreateDagDefault

WithPayload adds the payload to the create dag default response

func (*CreateDagDefault) WithStatusCode

func (o *CreateDagDefault) WithStatusCode(code int) *CreateDagDefault

WithStatusCode adds the status to the create dag default response

func (*CreateDagDefault) WriteResponse

func (o *CreateDagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateDagHandler

type CreateDagHandler interface {
	Handle(CreateDagParams) middleware.Responder
}

CreateDagHandler interface for that can handle valid create dag params

type CreateDagHandlerFunc

type CreateDagHandlerFunc func(CreateDagParams) middleware.Responder

CreateDagHandlerFunc turns a function with the right signature into a create dag handler

func (CreateDagHandlerFunc) Handle

Handle executing the request and returning a response

type CreateDagOK

type CreateDagOK struct {

	/*
	  In: Body
	*/
	Payload *models.CreateDagResponse `json:"body,omitempty"`
}

CreateDagOK A successful response.

swagger:response createDagOK

func NewCreateDagOK

func NewCreateDagOK() *CreateDagOK

NewCreateDagOK creates CreateDagOK with default headers values

func (*CreateDagOK) SetPayload

func (o *CreateDagOK) SetPayload(payload *models.CreateDagResponse)

SetPayload sets the payload to the create dag o k response

func (*CreateDagOK) WithPayload

func (o *CreateDagOK) WithPayload(payload *models.CreateDagResponse) *CreateDagOK

WithPayload adds the payload to the create dag o k response

func (*CreateDagOK) WriteResponse

func (o *CreateDagOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateDagParams

type CreateDagParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: body
	*/
	Body CreateDagBody
}

CreateDagParams contains all the bound params for the create dag operation typically these are obtained from a http.Request

swagger:parameters createDag

func NewCreateDagParams

func NewCreateDagParams() CreateDagParams

NewCreateDagParams creates a new CreateDagParams object

There are no default values defined in the spec.

func (*CreateDagParams) BindRequest

func (o *CreateDagParams) 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 NewCreateDagParams() beforehand.

type CreateDagURL

type CreateDagURL struct {
	// contains filtered or unexported fields
}

CreateDagURL generates an URL for the create dag operation

func (*CreateDagURL) Build

func (o *CreateDagURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateDagURL) BuildFull

func (o *CreateDagURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateDagURL) Must

func (o *CreateDagURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateDagURL) SetBasePath

func (o *CreateDagURL) 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 (*CreateDagURL) String

func (o *CreateDagURL) String() string

String returns the string representation of the path with query string

func (*CreateDagURL) StringFull

func (o *CreateDagURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateDagURL) WithBasePath

func (o *CreateDagURL) WithBasePath(bp string) *CreateDagURL

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 DeleteDag

type DeleteDag struct {
	Context *middleware.Context
	Handler DeleteDagHandler
}
DeleteDag swagger:route DELETE /dags/{dagId} deleteDag

Deletes a DAG.

func NewDeleteDag

func NewDeleteDag(ctx *middleware.Context, handler DeleteDagHandler) *DeleteDag

NewDeleteDag creates a new http.Handler for the delete dag operation

func (*DeleteDag) ServeHTTP

func (o *DeleteDag) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DeleteDagDefault

type DeleteDagDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

DeleteDagDefault Generic error response.

swagger:response deleteDagDefault

func NewDeleteDagDefault

func NewDeleteDagDefault(code int) *DeleteDagDefault

NewDeleteDagDefault creates DeleteDagDefault with default headers values

func (*DeleteDagDefault) SetPayload

func (o *DeleteDagDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the delete dag default response

func (*DeleteDagDefault) SetStatusCode

func (o *DeleteDagDefault) SetStatusCode(code int)

SetStatusCode sets the status to the delete dag default response

func (*DeleteDagDefault) WithPayload

func (o *DeleteDagDefault) WithPayload(payload *models.APIError) *DeleteDagDefault

WithPayload adds the payload to the delete dag default response

func (*DeleteDagDefault) WithStatusCode

func (o *DeleteDagDefault) WithStatusCode(code int) *DeleteDagDefault

WithStatusCode adds the status to the delete dag default response

func (*DeleteDagDefault) WriteResponse

func (o *DeleteDagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteDagHandler

type DeleteDagHandler interface {
	Handle(DeleteDagParams) middleware.Responder
}

DeleteDagHandler interface for that can handle valid delete dag params

type DeleteDagHandlerFunc

type DeleteDagHandlerFunc func(DeleteDagParams) middleware.Responder

DeleteDagHandlerFunc turns a function with the right signature into a delete dag handler

func (DeleteDagHandlerFunc) Handle

Handle executing the request and returning a response

type DeleteDagOK

type DeleteDagOK struct {
}

DeleteDagOK A successful response.

swagger:response deleteDagOK

func NewDeleteDagOK

func NewDeleteDagOK() *DeleteDagOK

NewDeleteDagOK creates DeleteDagOK with default headers values

func (*DeleteDagOK) WriteResponse

func (o *DeleteDagOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DeleteDagParams

type DeleteDagParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	DagID string
}

DeleteDagParams contains all the bound params for the delete dag operation typically these are obtained from a http.Request

swagger:parameters deleteDag

func NewDeleteDagParams

func NewDeleteDagParams() DeleteDagParams

NewDeleteDagParams creates a new DeleteDagParams object

There are no default values defined in the spec.

func (*DeleteDagParams) BindRequest

func (o *DeleteDagParams) 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 NewDeleteDagParams() beforehand.

type DeleteDagURL

type DeleteDagURL struct {
	DagID string
	// contains filtered or unexported fields
}

DeleteDagURL generates an URL for the delete dag operation

func (*DeleteDagURL) Build

func (o *DeleteDagURL) Build() (*url.URL, error)

Build a url path and query string

func (*DeleteDagURL) BuildFull

func (o *DeleteDagURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DeleteDagURL) Must

func (o *DeleteDagURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DeleteDagURL) SetBasePath

func (o *DeleteDagURL) 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 (*DeleteDagURL) String

func (o *DeleteDagURL) String() string

String returns the string representation of the path with query string

func (*DeleteDagURL) StringFull

func (o *DeleteDagURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DeleteDagURL) WithBasePath

func (o *DeleteDagURL) WithBasePath(bp string) *DeleteDagURL

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 GetDagDetails

type GetDagDetails struct {
	Context *middleware.Context
	Handler GetDagDetailsHandler
}
GetDagDetails swagger:route GET /dags/{dagId} getDagDetails

Returns details of a DAG.

func NewGetDagDetails

func NewGetDagDetails(ctx *middleware.Context, handler GetDagDetailsHandler) *GetDagDetails

NewGetDagDetails creates a new http.Handler for the get dag details operation

func (*GetDagDetails) ServeHTTP

func (o *GetDagDetails) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetDagDetailsDefault

type GetDagDetailsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetDagDetailsDefault Generic error response.

swagger:response getDagDetailsDefault

func NewGetDagDetailsDefault

func NewGetDagDetailsDefault(code int) *GetDagDetailsDefault

NewGetDagDetailsDefault creates GetDagDetailsDefault with default headers values

func (*GetDagDetailsDefault) SetPayload

func (o *GetDagDetailsDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the get dag details default response

func (*GetDagDetailsDefault) SetStatusCode

func (o *GetDagDetailsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get dag details default response

func (*GetDagDetailsDefault) WithPayload

func (o *GetDagDetailsDefault) WithPayload(payload *models.APIError) *GetDagDetailsDefault

WithPayload adds the payload to the get dag details default response

func (*GetDagDetailsDefault) WithStatusCode

func (o *GetDagDetailsDefault) WithStatusCode(code int) *GetDagDetailsDefault

WithStatusCode adds the status to the get dag details default response

func (*GetDagDetailsDefault) WriteResponse

func (o *GetDagDetailsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDagDetailsHandler

type GetDagDetailsHandler interface {
	Handle(GetDagDetailsParams) middleware.Responder
}

GetDagDetailsHandler interface for that can handle valid get dag details params

type GetDagDetailsHandlerFunc

type GetDagDetailsHandlerFunc func(GetDagDetailsParams) middleware.Responder

GetDagDetailsHandlerFunc turns a function with the right signature into a get dag details handler

func (GetDagDetailsHandlerFunc) Handle

Handle executing the request and returning a response

type GetDagDetailsOK

type GetDagDetailsOK struct {

	/*
	  In: Body
	*/
	Payload *models.GetDagDetailsResponse `json:"body,omitempty"`
}

GetDagDetailsOK A successful response.

swagger:response getDagDetailsOK

func NewGetDagDetailsOK

func NewGetDagDetailsOK() *GetDagDetailsOK

NewGetDagDetailsOK creates GetDagDetailsOK with default headers values

func (*GetDagDetailsOK) SetPayload

func (o *GetDagDetailsOK) SetPayload(payload *models.GetDagDetailsResponse)

SetPayload sets the payload to the get dag details o k response

func (*GetDagDetailsOK) WithPayload

func (o *GetDagDetailsOK) WithPayload(payload *models.GetDagDetailsResponse) *GetDagDetailsOK

WithPayload adds the payload to the get dag details o k response

func (*GetDagDetailsOK) WriteResponse

func (o *GetDagDetailsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetDagDetailsParams

type GetDagDetailsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	DagID string
	/*
	  In: query
	*/
	File *string
	/*
	  In: query
	*/
	Step *string
	/*
	  In: query
	*/
	Tab *string
}

GetDagDetailsParams contains all the bound params for the get dag details operation typically these are obtained from a http.Request

swagger:parameters getDagDetails

func NewGetDagDetailsParams

func NewGetDagDetailsParams() GetDagDetailsParams

NewGetDagDetailsParams creates a new GetDagDetailsParams object

There are no default values defined in the spec.

func (*GetDagDetailsParams) BindRequest

func (o *GetDagDetailsParams) 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 NewGetDagDetailsParams() beforehand.

type GetDagDetailsURL

type GetDagDetailsURL struct {
	DagID string

	File *string
	Step *string
	Tab  *string
	// contains filtered or unexported fields
}

GetDagDetailsURL generates an URL for the get dag details operation

func (*GetDagDetailsURL) Build

func (o *GetDagDetailsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetDagDetailsURL) BuildFull

func (o *GetDagDetailsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetDagDetailsURL) Must

func (o *GetDagDetailsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetDagDetailsURL) SetBasePath

func (o *GetDagDetailsURL) 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 (*GetDagDetailsURL) String

func (o *GetDagDetailsURL) String() string

String returns the string representation of the path with query string

func (*GetDagDetailsURL) StringFull

func (o *GetDagDetailsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetDagDetailsURL) WithBasePath

func (o *GetDagDetailsURL) WithBasePath(bp string) *GetDagDetailsURL

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 ListDags

type ListDags struct {
	Context *middleware.Context
	Handler ListDagsHandler
}
ListDags swagger:route GET /dags listDags

Returns a list of DAGs.

func NewListDags

func NewListDags(ctx *middleware.Context, handler ListDagsHandler) *ListDags

NewListDags creates a new http.Handler for the list dags operation

func (*ListDags) ServeHTTP

func (o *ListDags) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListDagsDefault

type ListDagsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

ListDagsDefault Generic error response.

swagger:response listDagsDefault

func NewListDagsDefault

func NewListDagsDefault(code int) *ListDagsDefault

NewListDagsDefault creates ListDagsDefault with default headers values

func (*ListDagsDefault) SetPayload

func (o *ListDagsDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the list dags default response

func (*ListDagsDefault) SetStatusCode

func (o *ListDagsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list dags default response

func (*ListDagsDefault) WithPayload

func (o *ListDagsDefault) WithPayload(payload *models.APIError) *ListDagsDefault

WithPayload adds the payload to the list dags default response

func (*ListDagsDefault) WithStatusCode

func (o *ListDagsDefault) WithStatusCode(code int) *ListDagsDefault

WithStatusCode adds the status to the list dags default response

func (*ListDagsDefault) WriteResponse

func (o *ListDagsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListDagsHandler

type ListDagsHandler interface {
	Handle(ListDagsParams) middleware.Responder
}

ListDagsHandler interface for that can handle valid list dags params

type ListDagsHandlerFunc

type ListDagsHandlerFunc func(ListDagsParams) middleware.Responder

ListDagsHandlerFunc turns a function with the right signature into a list dags handler

func (ListDagsHandlerFunc) Handle

Handle executing the request and returning a response

type ListDagsOK

type ListDagsOK struct {

	/*
	  In: Body
	*/
	Payload *models.ListDagsResponse `json:"body,omitempty"`
}

ListDagsOK A successful response.

swagger:response listDagsOK

func NewListDagsOK

func NewListDagsOK() *ListDagsOK

NewListDagsOK creates ListDagsOK with default headers values

func (*ListDagsOK) SetPayload

func (o *ListDagsOK) SetPayload(payload *models.ListDagsResponse)

SetPayload sets the payload to the list dags o k response

func (*ListDagsOK) WithPayload

func (o *ListDagsOK) WithPayload(payload *models.ListDagsResponse) *ListDagsOK

WithPayload adds the payload to the list dags o k response

func (*ListDagsOK) WriteResponse

func (o *ListDagsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListDagsParams

type ListDagsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ListDagsParams contains all the bound params for the list dags operation typically these are obtained from a http.Request

swagger:parameters listDags

func NewListDagsParams

func NewListDagsParams() ListDagsParams

NewListDagsParams creates a new ListDagsParams object

There are no default values defined in the spec.

func (*ListDagsParams) BindRequest

func (o *ListDagsParams) 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 NewListDagsParams() beforehand.

type ListDagsURL

type ListDagsURL struct {
	// contains filtered or unexported fields
}

ListDagsURL generates an URL for the list dags operation

func (*ListDagsURL) Build

func (o *ListDagsURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListDagsURL) BuildFull

func (o *ListDagsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListDagsURL) Must

func (o *ListDagsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListDagsURL) SetBasePath

func (o *ListDagsURL) 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 (*ListDagsURL) String

func (o *ListDagsURL) String() string

String returns the string representation of the path with query string

func (*ListDagsURL) StringFull

func (o *ListDagsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListDagsURL) WithBasePath

func (o *ListDagsURL) WithBasePath(bp string) *ListDagsURL

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 PostDagAction

type PostDagAction struct {
	Context *middleware.Context
	Handler PostDagActionHandler
}
PostDagAction swagger:route POST /dags/{dagId} postDagAction

Performs an action on a DAG.

func NewPostDagAction

func NewPostDagAction(ctx *middleware.Context, handler PostDagActionHandler) *PostDagAction

NewPostDagAction creates a new http.Handler for the post dag action operation

func (*PostDagAction) ServeHTTP

func (o *PostDagAction) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type PostDagActionBody

type PostDagActionBody struct {

	// action
	// Required: true
	// Enum: [start suspend stop retry mark-success mark-failed save rename]
	Action *string `json:"action"`

	// params
	Params string `json:"params,omitempty"`

	// request Id
	RequestID string `json:"requestId,omitempty"`

	// step
	Step string `json:"step,omitempty"`

	// value
	Value string `json:"value,omitempty"`
}

PostDagActionBody post dag action body

swagger:model PostDagActionBody

func (*PostDagActionBody) ContextValidate

func (o *PostDagActionBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this post dag action body based on context it is used

func (*PostDagActionBody) MarshalBinary

func (o *PostDagActionBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PostDagActionBody) UnmarshalBinary

func (o *PostDagActionBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PostDagActionBody) Validate

func (o *PostDagActionBody) Validate(formats strfmt.Registry) error

Validate validates this post dag action body

type PostDagActionDefault

type PostDagActionDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

PostDagActionDefault Generic error response.

swagger:response postDagActionDefault

func NewPostDagActionDefault

func NewPostDagActionDefault(code int) *PostDagActionDefault

NewPostDagActionDefault creates PostDagActionDefault with default headers values

func (*PostDagActionDefault) SetPayload

func (o *PostDagActionDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the post dag action default response

func (*PostDagActionDefault) SetStatusCode

func (o *PostDagActionDefault) SetStatusCode(code int)

SetStatusCode sets the status to the post dag action default response

func (*PostDagActionDefault) WithPayload

func (o *PostDagActionDefault) WithPayload(payload *models.APIError) *PostDagActionDefault

WithPayload adds the payload to the post dag action default response

func (*PostDagActionDefault) WithStatusCode

func (o *PostDagActionDefault) WithStatusCode(code int) *PostDagActionDefault

WithStatusCode adds the status to the post dag action default response

func (*PostDagActionDefault) WriteResponse

func (o *PostDagActionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostDagActionHandler

type PostDagActionHandler interface {
	Handle(PostDagActionParams) middleware.Responder
}

PostDagActionHandler interface for that can handle valid post dag action params

type PostDagActionHandlerFunc

type PostDagActionHandlerFunc func(PostDagActionParams) middleware.Responder

PostDagActionHandlerFunc turns a function with the right signature into a post dag action handler

func (PostDagActionHandlerFunc) Handle

Handle executing the request and returning a response

type PostDagActionOK

type PostDagActionOK struct {

	/*
	  In: Body
	*/
	Payload *models.PostDagActionResponse `json:"body,omitempty"`
}

PostDagActionOK A successful response.

swagger:response postDagActionOK

func NewPostDagActionOK

func NewPostDagActionOK() *PostDagActionOK

NewPostDagActionOK creates PostDagActionOK with default headers values

func (*PostDagActionOK) SetPayload

func (o *PostDagActionOK) SetPayload(payload *models.PostDagActionResponse)

SetPayload sets the payload to the post dag action o k response

func (*PostDagActionOK) WithPayload

func (o *PostDagActionOK) WithPayload(payload *models.PostDagActionResponse) *PostDagActionOK

WithPayload adds the payload to the post dag action o k response

func (*PostDagActionOK) WriteResponse

func (o *PostDagActionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type PostDagActionParams

type PostDagActionParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  In: body
	*/
	Body PostDagActionBody
	/*
	  Required: true
	  In: path
	*/
	DagID string
}

PostDagActionParams contains all the bound params for the post dag action operation typically these are obtained from a http.Request

swagger:parameters postDagAction

func NewPostDagActionParams

func NewPostDagActionParams() PostDagActionParams

NewPostDagActionParams creates a new PostDagActionParams object

There are no default values defined in the spec.

func (*PostDagActionParams) BindRequest

func (o *PostDagActionParams) 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 NewPostDagActionParams() beforehand.

type PostDagActionURL

type PostDagActionURL struct {
	DagID string
	// contains filtered or unexported fields
}

PostDagActionURL generates an URL for the post dag action operation

func (*PostDagActionURL) Build

func (o *PostDagActionURL) Build() (*url.URL, error)

Build a url path and query string

func (*PostDagActionURL) BuildFull

func (o *PostDagActionURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*PostDagActionURL) Must

func (o *PostDagActionURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*PostDagActionURL) SetBasePath

func (o *PostDagActionURL) 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 (*PostDagActionURL) String

func (o *PostDagActionURL) String() string

String returns the string representation of the path with query string

func (*PostDagActionURL) StringFull

func (o *PostDagActionURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*PostDagActionURL) WithBasePath

func (o *PostDagActionURL) WithBasePath(bp string) *PostDagActionURL

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 SearchDags

type SearchDags struct {
	Context *middleware.Context
	Handler SearchDagsHandler
}
SearchDags swagger:route GET /search searchDags

Searches for DAGs.

func NewSearchDags

func NewSearchDags(ctx *middleware.Context, handler SearchDagsHandler) *SearchDags

NewSearchDags creates a new http.Handler for the search dags operation

func (*SearchDags) ServeHTTP

func (o *SearchDags) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type SearchDagsDefault

type SearchDagsDefault struct {

	/*
	  In: Body
	*/
	Payload *models.APIError `json:"body,omitempty"`
	// contains filtered or unexported fields
}

SearchDagsDefault Generic error response.

swagger:response searchDagsDefault

func NewSearchDagsDefault

func NewSearchDagsDefault(code int) *SearchDagsDefault

NewSearchDagsDefault creates SearchDagsDefault with default headers values

func (*SearchDagsDefault) SetPayload

func (o *SearchDagsDefault) SetPayload(payload *models.APIError)

SetPayload sets the payload to the search dags default response

func (*SearchDagsDefault) SetStatusCode

func (o *SearchDagsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the search dags default response

func (*SearchDagsDefault) WithPayload

func (o *SearchDagsDefault) WithPayload(payload *models.APIError) *SearchDagsDefault

WithPayload adds the payload to the search dags default response

func (*SearchDagsDefault) WithStatusCode

func (o *SearchDagsDefault) WithStatusCode(code int) *SearchDagsDefault

WithStatusCode adds the status to the search dags default response

func (*SearchDagsDefault) WriteResponse

func (o *SearchDagsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SearchDagsHandler

type SearchDagsHandler interface {
	Handle(SearchDagsParams) middleware.Responder
}

SearchDagsHandler interface for that can handle valid search dags params

type SearchDagsHandlerFunc

type SearchDagsHandlerFunc func(SearchDagsParams) middleware.Responder

SearchDagsHandlerFunc turns a function with the right signature into a search dags handler

func (SearchDagsHandlerFunc) Handle

Handle executing the request and returning a response

type SearchDagsOK

type SearchDagsOK struct {

	/*
	  In: Body
	*/
	Payload *models.SearchDagsResponse `json:"body,omitempty"`
}

SearchDagsOK A successful response.

swagger:response searchDagsOK

func NewSearchDagsOK

func NewSearchDagsOK() *SearchDagsOK

NewSearchDagsOK creates SearchDagsOK with default headers values

func (*SearchDagsOK) SetPayload

func (o *SearchDagsOK) SetPayload(payload *models.SearchDagsResponse)

SetPayload sets the payload to the search dags o k response

func (*SearchDagsOK) WithPayload

func (o *SearchDagsOK) WithPayload(payload *models.SearchDagsResponse) *SearchDagsOK

WithPayload adds the payload to the search dags o k response

func (*SearchDagsOK) WriteResponse

func (o *SearchDagsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type SearchDagsParams

type SearchDagsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: query
	*/
	Q string
}

SearchDagsParams contains all the bound params for the search dags operation typically these are obtained from a http.Request

swagger:parameters searchDags

func NewSearchDagsParams

func NewSearchDagsParams() SearchDagsParams

NewSearchDagsParams creates a new SearchDagsParams object

There are no default values defined in the spec.

func (*SearchDagsParams) BindRequest

func (o *SearchDagsParams) 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 NewSearchDagsParams() beforehand.

type SearchDagsURL

type SearchDagsURL struct {
	Q string
	// contains filtered or unexported fields
}

SearchDagsURL generates an URL for the search dags operation

func (*SearchDagsURL) Build

func (o *SearchDagsURL) Build() (*url.URL, error)

Build a url path and query string

func (*SearchDagsURL) BuildFull

func (o *SearchDagsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*SearchDagsURL) Must

func (o *SearchDagsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*SearchDagsURL) SetBasePath

func (o *SearchDagsURL) 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 (*SearchDagsURL) String

func (o *SearchDagsURL) String() string

String returns the string representation of the path with query string

func (*SearchDagsURL) StringFull

func (o *SearchDagsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*SearchDagsURL) WithBasePath

func (o *SearchDagsURL) WithBasePath(bp string) *SearchDagsURL

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

Jump to

Keyboard shortcuts

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