Documentation ¶
Index ¶
- Constants
- type CreateDag
- type CreateDagBody
- type CreateDagDefault
- func (o *CreateDagDefault) SetPayload(payload *models.APIError)
- func (o *CreateDagDefault) SetStatusCode(code int)
- func (o *CreateDagDefault) WithPayload(payload *models.APIError) *CreateDagDefault
- func (o *CreateDagDefault) WithStatusCode(code int) *CreateDagDefault
- func (o *CreateDagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateDagHandler
- type CreateDagHandlerFunc
- type CreateDagOK
- type CreateDagParams
- type CreateDagURL
- func (o *CreateDagURL) Build() (*url.URL, error)
- func (o *CreateDagURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateDagURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateDagURL) SetBasePath(bp string)
- func (o *CreateDagURL) String() string
- func (o *CreateDagURL) StringFull(scheme, host string) string
- func (o *CreateDagURL) WithBasePath(bp string) *CreateDagURL
- type DaguAPI
- func (o *DaguAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *DaguAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *DaguAPI) Authorizer() runtime.Authorizer
- func (o *DaguAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *DaguAPI) Context() *middleware.Context
- func (o *DaguAPI) DefaultConsumes() string
- func (o *DaguAPI) DefaultProduces() string
- func (o *DaguAPI) Formats() strfmt.Registry
- func (o *DaguAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *DaguAPI) Init()
- func (o *DaguAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *DaguAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *DaguAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *DaguAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *DaguAPI) Serve(builder middleware.Builder) http.Handler
- func (o *DaguAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *DaguAPI) SetDefaultConsumes(mediaType string)
- func (o *DaguAPI) SetDefaultProduces(mediaType string)
- func (o *DaguAPI) SetSpec(spec *loads.Document)
- func (o *DaguAPI) UseRedoc()
- func (o *DaguAPI) UseSwaggerUI()
- func (o *DaguAPI) Validate() error
- type DeleteDag
- type DeleteDagDefault
- func (o *DeleteDagDefault) SetPayload(payload *models.APIError)
- func (o *DeleteDagDefault) SetStatusCode(code int)
- func (o *DeleteDagDefault) WithPayload(payload *models.APIError) *DeleteDagDefault
- func (o *DeleteDagDefault) WithStatusCode(code int) *DeleteDagDefault
- func (o *DeleteDagDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteDagHandler
- type DeleteDagHandlerFunc
- type DeleteDagOK
- type DeleteDagParams
- type DeleteDagURL
- func (o *DeleteDagURL) Build() (*url.URL, error)
- func (o *DeleteDagURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteDagURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteDagURL) SetBasePath(bp string)
- func (o *DeleteDagURL) String() string
- func (o *DeleteDagURL) StringFull(scheme, host string) string
- func (o *DeleteDagURL) WithBasePath(bp string) *DeleteDagURL
- type GetDagDetails
- type GetDagDetailsDefault
- func (o *GetDagDetailsDefault) SetPayload(payload *models.APIError)
- func (o *GetDagDetailsDefault) SetStatusCode(code int)
- func (o *GetDagDetailsDefault) WithPayload(payload *models.APIError) *GetDagDetailsDefault
- func (o *GetDagDetailsDefault) WithStatusCode(code int) *GetDagDetailsDefault
- func (o *GetDagDetailsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetDagDetailsHandler
- type GetDagDetailsHandlerFunc
- type GetDagDetailsOK
- type GetDagDetailsParams
- type GetDagDetailsURL
- func (o *GetDagDetailsURL) Build() (*url.URL, error)
- func (o *GetDagDetailsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetDagDetailsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetDagDetailsURL) SetBasePath(bp string)
- func (o *GetDagDetailsURL) String() string
- func (o *GetDagDetailsURL) StringFull(scheme, host string) string
- func (o *GetDagDetailsURL) WithBasePath(bp string) *GetDagDetailsURL
- type ListDags
- type ListDagsDefault
- func (o *ListDagsDefault) SetPayload(payload *models.APIError)
- func (o *ListDagsDefault) SetStatusCode(code int)
- func (o *ListDagsDefault) WithPayload(payload *models.APIError) *ListDagsDefault
- func (o *ListDagsDefault) WithStatusCode(code int) *ListDagsDefault
- func (o *ListDagsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListDagsHandler
- type ListDagsHandlerFunc
- type ListDagsOK
- type ListDagsParams
- type ListDagsURL
- func (o *ListDagsURL) Build() (*url.URL, error)
- func (o *ListDagsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListDagsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListDagsURL) SetBasePath(bp string)
- func (o *ListDagsURL) String() string
- func (o *ListDagsURL) StringFull(scheme, host string) string
- func (o *ListDagsURL) WithBasePath(bp string) *ListDagsURL
- type PostDagAction
- type PostDagActionBody
- type PostDagActionDefault
- func (o *PostDagActionDefault) SetPayload(payload *models.APIError)
- func (o *PostDagActionDefault) SetStatusCode(code int)
- func (o *PostDagActionDefault) WithPayload(payload *models.APIError) *PostDagActionDefault
- func (o *PostDagActionDefault) WithStatusCode(code int) *PostDagActionDefault
- func (o *PostDagActionDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type PostDagActionHandler
- type PostDagActionHandlerFunc
- type PostDagActionOK
- type PostDagActionParams
- type PostDagActionURL
- func (o *PostDagActionURL) Build() (*url.URL, error)
- func (o *PostDagActionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostDagActionURL) Must(u *url.URL, err error) *url.URL
- func (o *PostDagActionURL) SetBasePath(bp string)
- func (o *PostDagActionURL) String() string
- func (o *PostDagActionURL) StringFull(scheme, host string) string
- func (o *PostDagActionURL) WithBasePath(bp string) *PostDagActionURL
- type SearchDags
- type SearchDagsDefault
- func (o *SearchDagsDefault) SetPayload(payload *models.APIError)
- func (o *SearchDagsDefault) SetStatusCode(code int)
- func (o *SearchDagsDefault) WithPayload(payload *models.APIError) *SearchDagsDefault
- func (o *SearchDagsDefault) WithStatusCode(code int) *SearchDagsDefault
- func (o *SearchDagsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type SearchDagsHandler
- type SearchDagsHandlerFunc
- type SearchDagsOK
- type SearchDagsParams
- type SearchDagsURL
- func (o *SearchDagsURL) Build() (*url.URL, error)
- func (o *SearchDagsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *SearchDagsURL) Must(u *url.URL, err error) *url.URL
- func (o *SearchDagsURL) SetBasePath(bp string)
- func (o *SearchDagsURL) String() string
- func (o *SearchDagsURL) StringFull(scheme, host string) string
- func (o *SearchDagsURL) WithBasePath(bp string) *SearchDagsURL
Constants ¶
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" )
const CreateDagOKCode int = 200
CreateDagOKCode is the HTTP code returned for type CreateDagOK
const DeleteDagOKCode int = 200
DeleteDagOKCode is the HTTP code returned for type DeleteDagOK
const GetDagDetailsOKCode int = 200
GetDagDetailsOKCode is the HTTP code returned for type GetDagDetailsOK
const ListDagsOKCode int = 200
ListDagsOKCode is the HTTP code returned for type ListDagsOK
const PostDagActionOKCode int = 200
PostDagActionOKCode is the HTTP code returned for type PostDagActionOK
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 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
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 ¶
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
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 ¶
func (fn CreateDagHandlerFunc) Handle(params CreateDagParams) middleware.Responder
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 ¶
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 DaguAPI ¶
type DaguAPI 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 }
DaguAPI the dagu API
func NewDaguAPI ¶
NewDaguAPI creates a new Dagu instance
func (*DaguAPI) AddMiddlewareFor ¶
func (o *DaguAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*DaguAPI) AuthenticatorsFor ¶
func (o *DaguAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*DaguAPI) Authorizer ¶
func (o *DaguAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*DaguAPI) ConsumersFor ¶
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*DaguAPI) Context ¶
func (o *DaguAPI) Context() *middleware.Context
Context returns the middleware context for the dagu API
func (*DaguAPI) DefaultConsumes ¶
DefaultConsumes returns the default consumes media type
func (*DaguAPI) DefaultProduces ¶
DefaultProduces returns the default produces media type
func (*DaguAPI) HandlerFor ¶
HandlerFor gets a http.Handler for the provided operation method and path
func (*DaguAPI) Init ¶
func (o *DaguAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*DaguAPI) ProducersFor ¶
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*DaguAPI) RegisterConsumer ¶
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*DaguAPI) RegisterFormat ¶
RegisterFormat registers a custom format validator
func (*DaguAPI) RegisterProducer ¶
RegisterProducer allows you to add (or override) a producer for a media type.
func (*DaguAPI) Serve ¶
func (o *DaguAPI) 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 (*DaguAPI) ServeErrorFor ¶
ServeErrorFor gets a error handler for a given operation id
func (*DaguAPI) SetDefaultConsumes ¶
SetDefaultConsumes returns the default consumes media type
func (*DaguAPI) SetDefaultProduces ¶
SetDefaultProduces sets the default produces media type
func (*DaguAPI) UseSwaggerUI ¶
func (o *DaguAPI) UseSwaggerUI()
UseSwaggerUI for documentation at /docs
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
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 ¶
func (fn DeleteDagHandlerFunc) Handle(params DeleteDagParams) middleware.Responder
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 ¶
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 ¶
func (fn GetDagDetailsHandlerFunc) Handle(params GetDagDetailsParams) middleware.Responder
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 ¶
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
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 ¶
func (fn ListDagsHandlerFunc) Handle(params ListDagsParams) middleware.Responder
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 ¶
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) 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 ¶
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
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 ¶
func (fn PostDagActionHandlerFunc) Handle(params PostDagActionParams) middleware.Responder
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 ¶
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 ¶
func (fn SearchDagsHandlerFunc) Handle(params SearchDagsParams) middleware.Responder
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 ¶
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
Source Files ¶
- create_dag.go
- create_dag_parameters.go
- create_dag_responses.go
- create_dag_urlbuilder.go
- dagu_api.go
- delete_dag.go
- delete_dag_parameters.go
- delete_dag_responses.go
- delete_dag_urlbuilder.go
- get_dag_details.go
- get_dag_details_parameters.go
- get_dag_details_responses.go
- get_dag_details_urlbuilder.go
- list_dags.go
- list_dags_parameters.go
- list_dags_responses.go
- list_dags_urlbuilder.go
- post_dag_action.go
- post_dag_action_parameters.go
- post_dag_action_responses.go
- post_dag_action_urlbuilder.go
- search_dags.go
- search_dags_parameters.go
- search_dags_responses.go
- search_dags_urlbuilder.go