Documentation ¶
Index ¶
- Constants
- type AstrolabeAPI
- func (o *AstrolabeAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
- func (o *AstrolabeAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
- func (o *AstrolabeAPI) Authorizer() runtime.Authorizer
- func (o *AstrolabeAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
- func (o *AstrolabeAPI) Context() *middleware.Context
- func (o *AstrolabeAPI) DefaultConsumes() string
- func (o *AstrolabeAPI) DefaultProduces() string
- func (o *AstrolabeAPI) Formats() strfmt.Registry
- func (o *AstrolabeAPI) HandlerFor(method, path string) (http.Handler, bool)
- func (o *AstrolabeAPI) Init()
- func (o *AstrolabeAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
- func (o *AstrolabeAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
- func (o *AstrolabeAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
- func (o *AstrolabeAPI) RegisterProducer(mediaType string, producer runtime.Producer)
- func (o *AstrolabeAPI) Serve(builder middleware.Builder) http.Handler
- func (o *AstrolabeAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
- func (o *AstrolabeAPI) SetDefaultConsumes(mediaType string)
- func (o *AstrolabeAPI) SetDefaultProduces(mediaType string)
- func (o *AstrolabeAPI) SetSpec(spec *loads.Document)
- func (o *AstrolabeAPI) Validate() error
- type CopyProtectedEntity
- type CopyProtectedEntityAccepted
- func (o *CopyProtectedEntityAccepted) SetPayload(payload *models.CreateInProgressResponse)
- func (o *CopyProtectedEntityAccepted) WithPayload(payload *models.CreateInProgressResponse) *CopyProtectedEntityAccepted
- func (o *CopyProtectedEntityAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CopyProtectedEntityHandler
- type CopyProtectedEntityHandlerFunc
- type CopyProtectedEntityParams
- type CopyProtectedEntityURL
- func (o *CopyProtectedEntityURL) Build() (*url.URL, error)
- func (o *CopyProtectedEntityURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CopyProtectedEntityURL) Must(u *url.URL, err error) *url.URL
- func (o *CopyProtectedEntityURL) SetBasePath(bp string)
- func (o *CopyProtectedEntityURL) String() string
- func (o *CopyProtectedEntityURL) StringFull(scheme, host string) string
- func (o *CopyProtectedEntityURL) WithBasePath(bp string) *CopyProtectedEntityURL
- type CreateSnapshot
- type CreateSnapshotHandler
- type CreateSnapshotHandlerFunc
- type CreateSnapshotOK
- type CreateSnapshotParams
- type CreateSnapshotURL
- func (o *CreateSnapshotURL) Build() (*url.URL, error)
- func (o *CreateSnapshotURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateSnapshotURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateSnapshotURL) SetBasePath(bp string)
- func (o *CreateSnapshotURL) String() string
- func (o *CreateSnapshotURL) StringFull(scheme, host string) string
- func (o *CreateSnapshotURL) WithBasePath(bp string) *CreateSnapshotURL
- type DeleteProtectedEntity
- type DeleteProtectedEntityHandler
- type DeleteProtectedEntityHandlerFunc
- type DeleteProtectedEntityOK
- type DeleteProtectedEntityParams
- type DeleteProtectedEntityURL
- func (o *DeleteProtectedEntityURL) Build() (*url.URL, error)
- func (o *DeleteProtectedEntityURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteProtectedEntityURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteProtectedEntityURL) SetBasePath(bp string)
- func (o *DeleteProtectedEntityURL) String() string
- func (o *DeleteProtectedEntityURL) StringFull(scheme, host string) string
- func (o *DeleteProtectedEntityURL) WithBasePath(bp string) *DeleteProtectedEntityURL
- type GetAstrolabeTasksNexusTaskNexusID
- type GetAstrolabeTasksNexusTaskNexusIDHandler
- type GetAstrolabeTasksNexusTaskNexusIDHandlerFunc
- type GetAstrolabeTasksNexusTaskNexusIDOK
- func (o *GetAstrolabeTasksNexusTaskNexusIDOK) SetPayload(payload *models.TaskNexusResponse)
- func (o *GetAstrolabeTasksNexusTaskNexusIDOK) WithPayload(payload *models.TaskNexusResponse) *GetAstrolabeTasksNexusTaskNexusIDOK
- func (o *GetAstrolabeTasksNexusTaskNexusIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetAstrolabeTasksNexusTaskNexusIDParams
- type GetAstrolabeTasksNexusTaskNexusIDURL
- func (o *GetAstrolabeTasksNexusTaskNexusIDURL) Build() (*url.URL, error)
- func (o *GetAstrolabeTasksNexusTaskNexusIDURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAstrolabeTasksNexusTaskNexusIDURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAstrolabeTasksNexusTaskNexusIDURL) SetBasePath(bp string)
- func (o *GetAstrolabeTasksNexusTaskNexusIDURL) String() string
- func (o *GetAstrolabeTasksNexusTaskNexusIDURL) StringFull(scheme, host string) string
- func (o *GetAstrolabeTasksNexusTaskNexusIDURL) WithBasePath(bp string) *GetAstrolabeTasksNexusTaskNexusIDURL
- type GetProtectedEntityInfo
- type GetProtectedEntityInfoHandler
- type GetProtectedEntityInfoHandlerFunc
- type GetProtectedEntityInfoOK
- type GetProtectedEntityInfoParams
- type GetProtectedEntityInfoURL
- func (o *GetProtectedEntityInfoURL) Build() (*url.URL, error)
- func (o *GetProtectedEntityInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProtectedEntityInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProtectedEntityInfoURL) SetBasePath(bp string)
- func (o *GetProtectedEntityInfoURL) String() string
- func (o *GetProtectedEntityInfoURL) StringFull(scheme, host string) string
- func (o *GetProtectedEntityInfoURL) WithBasePath(bp string) *GetProtectedEntityInfoURL
- type GetTaskInfo
- type GetTaskInfoHandler
- type GetTaskInfoHandlerFunc
- type GetTaskInfoOK
- type GetTaskInfoParams
- type GetTaskInfoURL
- func (o *GetTaskInfoURL) Build() (*url.URL, error)
- func (o *GetTaskInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetTaskInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *GetTaskInfoURL) SetBasePath(bp string)
- func (o *GetTaskInfoURL) String() string
- func (o *GetTaskInfoURL) StringFull(scheme, host string) string
- func (o *GetTaskInfoURL) WithBasePath(bp string) *GetTaskInfoURL
- type ListProtectedEntities
- type ListProtectedEntitiesHandler
- type ListProtectedEntitiesHandlerFunc
- type ListProtectedEntitiesNotFound
- type ListProtectedEntitiesOK
- type ListProtectedEntitiesParams
- type ListProtectedEntitiesURL
- func (o *ListProtectedEntitiesURL) Build() (*url.URL, error)
- func (o *ListProtectedEntitiesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListProtectedEntitiesURL) Must(u *url.URL, err error) *url.URL
- func (o *ListProtectedEntitiesURL) SetBasePath(bp string)
- func (o *ListProtectedEntitiesURL) String() string
- func (o *ListProtectedEntitiesURL) StringFull(scheme, host string) string
- func (o *ListProtectedEntitiesURL) WithBasePath(bp string) *ListProtectedEntitiesURL
- type ListServices
- type ListServicesHandler
- type ListServicesHandlerFunc
- type ListServicesOK
- type ListServicesParams
- type ListServicesURL
- func (o *ListServicesURL) Build() (*url.URL, error)
- func (o *ListServicesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListServicesURL) Must(u *url.URL, err error) *url.URL
- func (o *ListServicesURL) SetBasePath(bp string)
- func (o *ListServicesURL) String() string
- func (o *ListServicesURL) StringFull(scheme, host string) string
- func (o *ListServicesURL) WithBasePath(bp string) *ListServicesURL
- type ListSnapshots
- type ListSnapshotsHandler
- type ListSnapshotsHandlerFunc
- type ListSnapshotsNotFound
- type ListSnapshotsOK
- type ListSnapshotsParams
- type ListSnapshotsURL
- func (o *ListSnapshotsURL) Build() (*url.URL, error)
- func (o *ListSnapshotsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListSnapshotsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListSnapshotsURL) SetBasePath(bp string)
- func (o *ListSnapshotsURL) String() string
- func (o *ListSnapshotsURL) StringFull(scheme, host string) string
- func (o *ListSnapshotsURL) WithBasePath(bp string) *ListSnapshotsURL
- type ListTaskNexus
- type ListTaskNexusHandler
- type ListTaskNexusHandlerFunc
- type ListTaskNexusOK
- type ListTaskNexusParams
- type ListTaskNexusURL
- func (o *ListTaskNexusURL) Build() (*url.URL, error)
- func (o *ListTaskNexusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListTaskNexusURL) Must(u *url.URL, err error) *url.URL
- func (o *ListTaskNexusURL) SetBasePath(bp string)
- func (o *ListTaskNexusURL) String() string
- func (o *ListTaskNexusURL) StringFull(scheme, host string) string
- func (o *ListTaskNexusURL) WithBasePath(bp string) *ListTaskNexusURL
- type ListTasks
- type ListTasksHandler
- type ListTasksHandlerFunc
- type ListTasksOK
- type ListTasksParams
- type ListTasksURL
- func (o *ListTasksURL) Build() (*url.URL, error)
- func (o *ListTasksURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListTasksURL) Must(u *url.URL, err error) *url.URL
- func (o *ListTasksURL) SetBasePath(bp string)
- func (o *ListTasksURL) String() string
- func (o *ListTasksURL) StringFull(scheme, host string) string
- func (o *ListTasksURL) WithBasePath(bp string) *ListTasksURL
- type PostAstrolabeTasksNexus
- type PostAstrolabeTasksNexusHandler
- type PostAstrolabeTasksNexusHandlerFunc
- type PostAstrolabeTasksNexusOK
- type PostAstrolabeTasksNexusParams
- type PostAstrolabeTasksNexusURL
- func (o *PostAstrolabeTasksNexusURL) Build() (*url.URL, error)
- func (o *PostAstrolabeTasksNexusURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *PostAstrolabeTasksNexusURL) Must(u *url.URL, err error) *url.URL
- func (o *PostAstrolabeTasksNexusURL) SetBasePath(bp string)
- func (o *PostAstrolabeTasksNexusURL) String() string
- func (o *PostAstrolabeTasksNexusURL) StringFull(scheme, host string) string
- func (o *PostAstrolabeTasksNexusURL) WithBasePath(bp string) *PostAstrolabeTasksNexusURL
Constants ¶
const CopyProtectedEntityAcceptedCode int = 202
CopyProtectedEntityAcceptedCode is the HTTP code returned for type CopyProtectedEntityAccepted
const CreateSnapshotOKCode int = 200
CreateSnapshotOKCode is the HTTP code returned for type CreateSnapshotOK
const DeleteProtectedEntityOKCode int = 200
DeleteProtectedEntityOKCode is the HTTP code returned for type DeleteProtectedEntityOK
const GetAstrolabeTasksNexusTaskNexusIDOKCode int = 200
GetAstrolabeTasksNexusTaskNexusIDOKCode is the HTTP code returned for type GetAstrolabeTasksNexusTaskNexusIDOK
const GetProtectedEntityInfoOKCode int = 200
GetProtectedEntityInfoOKCode is the HTTP code returned for type GetProtectedEntityInfoOK
const GetTaskInfoOKCode int = 200
GetTaskInfoOKCode is the HTTP code returned for type GetTaskInfoOK
const ListProtectedEntitiesNotFoundCode int = 404
ListProtectedEntitiesNotFoundCode is the HTTP code returned for type ListProtectedEntitiesNotFound
const ListProtectedEntitiesOKCode int = 200
ListProtectedEntitiesOKCode is the HTTP code returned for type ListProtectedEntitiesOK
const ListServicesOKCode int = 200
ListServicesOKCode is the HTTP code returned for type ListServicesOK
const ListSnapshotsNotFoundCode int = 404
ListSnapshotsNotFoundCode is the HTTP code returned for type ListSnapshotsNotFound
const ListSnapshotsOKCode int = 200
ListSnapshotsOKCode is the HTTP code returned for type ListSnapshotsOK
const ListTaskNexusOKCode int = 200
ListTaskNexusOKCode is the HTTP code returned for type ListTaskNexusOK
const ListTasksOKCode int = 200
ListTasksOKCode is the HTTP code returned for type ListTasksOK
const PostAstrolabeTasksNexusOKCode int = 200
PostAstrolabeTasksNexusOKCode is the HTTP code returned for type PostAstrolabeTasksNexusOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AstrolabeAPI ¶
type AstrolabeAPI 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 // GetAstrolabeTasksNexusTaskNexusIDHandler sets the operation handler for the get astrolabe tasks nexus task nexus ID operation GetAstrolabeTasksNexusTaskNexusIDHandler GetAstrolabeTasksNexusTaskNexusIDHandler // PostAstrolabeTasksNexusHandler sets the operation handler for the post astrolabe tasks nexus operation PostAstrolabeTasksNexusHandler PostAstrolabeTasksNexusHandler // CopyProtectedEntityHandler sets the operation handler for the copy protected entity operation CopyProtectedEntityHandler CopyProtectedEntityHandler // CreateSnapshotHandler sets the operation handler for the create snapshot operation CreateSnapshotHandler CreateSnapshotHandler // DeleteProtectedEntityHandler sets the operation handler for the delete protected entity operation DeleteProtectedEntityHandler DeleteProtectedEntityHandler // GetProtectedEntityInfoHandler sets the operation handler for the get protected entity info operation GetProtectedEntityInfoHandler GetProtectedEntityInfoHandler // GetTaskInfoHandler sets the operation handler for the get task info operation GetTaskInfoHandler GetTaskInfoHandler // ListProtectedEntitiesHandler sets the operation handler for the list protected entities operation ListProtectedEntitiesHandler ListProtectedEntitiesHandler // ListServicesHandler sets the operation handler for the list services operation ListServicesHandler ListServicesHandler // ListSnapshotsHandler sets the operation handler for the list snapshots operation ListSnapshotsHandler ListSnapshotsHandler // ListTaskNexusHandler sets the operation handler for the list task nexus operation ListTaskNexusHandler ListTaskNexusHandler // ListTasksHandler sets the operation handler for the list tasks operation ListTasksHandler ListTasksHandler // 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 }
AstrolabeAPI Astrolabe data protection framework API
func NewAstrolabeAPI ¶
func NewAstrolabeAPI(spec *loads.Document) *AstrolabeAPI
NewAstrolabeAPI creates a new Astrolabe instance
func (*AstrolabeAPI) AddMiddlewareFor ¶
func (o *AstrolabeAPI) AddMiddlewareFor(method, path string, builder middleware.Builder)
AddMiddlewareFor adds a http middleware to existing handler
func (*AstrolabeAPI) AuthenticatorsFor ¶
func (o *AstrolabeAPI) AuthenticatorsFor(schemes map[string]spec.SecurityScheme) map[string]runtime.Authenticator
AuthenticatorsFor gets the authenticators for the specified security schemes
func (*AstrolabeAPI) Authorizer ¶
func (o *AstrolabeAPI) Authorizer() runtime.Authorizer
Authorizer returns the registered authorizer
func (*AstrolabeAPI) ConsumersFor ¶
func (o *AstrolabeAPI) ConsumersFor(mediaTypes []string) map[string]runtime.Consumer
ConsumersFor gets the consumers for the specified media types. MIME type parameters are ignored here.
func (*AstrolabeAPI) Context ¶
func (o *AstrolabeAPI) Context() *middleware.Context
Context returns the middleware context for the astrolabe API
func (*AstrolabeAPI) DefaultConsumes ¶
func (o *AstrolabeAPI) DefaultConsumes() string
DefaultConsumes returns the default consumes media type
func (*AstrolabeAPI) DefaultProduces ¶
func (o *AstrolabeAPI) DefaultProduces() string
DefaultProduces returns the default produces media type
func (*AstrolabeAPI) Formats ¶
func (o *AstrolabeAPI) Formats() strfmt.Registry
Formats returns the registered string formats
func (*AstrolabeAPI) HandlerFor ¶
func (o *AstrolabeAPI) HandlerFor(method, path string) (http.Handler, bool)
HandlerFor gets a http.Handler for the provided operation method and path
func (*AstrolabeAPI) Init ¶
func (o *AstrolabeAPI) Init()
Init allows you to just initialize the handler cache, you can then recompose the middleware as you see fit
func (*AstrolabeAPI) ProducersFor ¶
func (o *AstrolabeAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer
ProducersFor gets the producers for the specified media types. MIME type parameters are ignored here.
func (*AstrolabeAPI) RegisterConsumer ¶
func (o *AstrolabeAPI) RegisterConsumer(mediaType string, consumer runtime.Consumer)
RegisterConsumer allows you to add (or override) a consumer for a media type.
func (*AstrolabeAPI) RegisterFormat ¶
func (o *AstrolabeAPI) RegisterFormat(name string, format strfmt.Format, validator strfmt.Validator)
RegisterFormat registers a custom format validator
func (*AstrolabeAPI) RegisterProducer ¶
func (o *AstrolabeAPI) RegisterProducer(mediaType string, producer runtime.Producer)
RegisterProducer allows you to add (or override) a producer for a media type.
func (*AstrolabeAPI) Serve ¶
func (o *AstrolabeAPI) 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 (*AstrolabeAPI) ServeErrorFor ¶
func (o *AstrolabeAPI) ServeErrorFor(operationID string) func(http.ResponseWriter, *http.Request, error)
ServeErrorFor gets a error handler for a given operation id
func (*AstrolabeAPI) SetDefaultConsumes ¶
func (o *AstrolabeAPI) SetDefaultConsumes(mediaType string)
SetDefaultConsumes returns the default consumes media type
func (*AstrolabeAPI) SetDefaultProduces ¶
func (o *AstrolabeAPI) SetDefaultProduces(mediaType string)
SetDefaultProduces sets the default produces media type
func (*AstrolabeAPI) SetSpec ¶
func (o *AstrolabeAPI) SetSpec(spec *loads.Document)
SetSpec sets a spec that will be served for the clients.
func (*AstrolabeAPI) Validate ¶
func (o *AstrolabeAPI) Validate() error
Validate validates the registrations in the AstrolabeAPI
type CopyProtectedEntity ¶
type CopyProtectedEntity struct { Context *middleware.Context Handler CopyProtectedEntityHandler }
CopyProtectedEntity swagger:route POST /astrolabe/{service} copyProtectedEntity
Copy a protected entity into the repository. There is no option to embed data on this path, for a self-contained or partially self-contained object, use the restore from zip file option in the S3 API REST API
func NewCopyProtectedEntity ¶
func NewCopyProtectedEntity(ctx *middleware.Context, handler CopyProtectedEntityHandler) *CopyProtectedEntity
NewCopyProtectedEntity creates a new http.Handler for the copy protected entity operation
func (*CopyProtectedEntity) ServeHTTP ¶
func (o *CopyProtectedEntity) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CopyProtectedEntityAccepted ¶
type CopyProtectedEntityAccepted struct { /* In: Body */ Payload *models.CreateInProgressResponse `json:"body,omitempty"` }
CopyProtectedEntityAccepted Create in progress
swagger:response copyProtectedEntityAccepted
func NewCopyProtectedEntityAccepted ¶
func NewCopyProtectedEntityAccepted() *CopyProtectedEntityAccepted
NewCopyProtectedEntityAccepted creates CopyProtectedEntityAccepted with default headers values
func (*CopyProtectedEntityAccepted) SetPayload ¶
func (o *CopyProtectedEntityAccepted) SetPayload(payload *models.CreateInProgressResponse)
SetPayload sets the payload to the copy protected entity accepted response
func (*CopyProtectedEntityAccepted) WithPayload ¶
func (o *CopyProtectedEntityAccepted) WithPayload(payload *models.CreateInProgressResponse) *CopyProtectedEntityAccepted
WithPayload adds the payload to the copy protected entity accepted response
func (*CopyProtectedEntityAccepted) WriteResponse ¶
func (o *CopyProtectedEntityAccepted) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CopyProtectedEntityHandler ¶
type CopyProtectedEntityHandler interface {
Handle(CopyProtectedEntityParams) middleware.Responder
}
CopyProtectedEntityHandler interface for that can handle valid copy protected entity params
type CopyProtectedEntityHandlerFunc ¶
type CopyProtectedEntityHandlerFunc func(CopyProtectedEntityParams) middleware.Responder
CopyProtectedEntityHandlerFunc turns a function with the right signature into a copy protected entity handler
func (CopyProtectedEntityHandlerFunc) Handle ¶
func (fn CopyProtectedEntityHandlerFunc) Handle(params CopyProtectedEntityParams) middleware.Responder
Handle executing the request and returning a response
type CopyProtectedEntityParams ¶
type CopyProtectedEntityParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Copy Parameters including protected entity to copy Required: true In: body */ Body *models.CopyParameters /*How to handle the copy. create - a new protected entity with the Protected Entity ID will be created. If the Protected Entity ID already exists, the copy will fail. create_new - A Protected Entity with a new ID will be created with data and metadata from the source protected entity. Update - If a protected entity with the same ID exists it will be overwritten. If there is no PE with that ID, one will be created with the same ID. For complex Persistent Entities, the mode will be applied to all of the component entities that are part of this operation as well. Required: true In: query */ Mode string /*The service to copy the protected entity into Required: true In: path */ Service string }
CopyProtectedEntityParams contains all the bound params for the copy protected entity operation typically these are obtained from a http.Request
swagger:parameters copyProtectedEntity
func NewCopyProtectedEntityParams ¶
func NewCopyProtectedEntityParams() CopyProtectedEntityParams
NewCopyProtectedEntityParams creates a new CopyProtectedEntityParams object no default values defined in spec.
func (*CopyProtectedEntityParams) BindRequest ¶
func (o *CopyProtectedEntityParams) 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 NewCopyProtectedEntityParams() beforehand.
type CopyProtectedEntityURL ¶
type CopyProtectedEntityURL struct { Service string Mode string // contains filtered or unexported fields }
CopyProtectedEntityURL generates an URL for the copy protected entity operation
func (*CopyProtectedEntityURL) Build ¶
func (o *CopyProtectedEntityURL) Build() (*url.URL, error)
Build a url path and query string
func (*CopyProtectedEntityURL) BuildFull ¶
func (o *CopyProtectedEntityURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CopyProtectedEntityURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CopyProtectedEntityURL) SetBasePath ¶
func (o *CopyProtectedEntityURL) 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 (*CopyProtectedEntityURL) String ¶
func (o *CopyProtectedEntityURL) String() string
String returns the string representation of the path with query string
func (*CopyProtectedEntityURL) StringFull ¶
func (o *CopyProtectedEntityURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CopyProtectedEntityURL) WithBasePath ¶
func (o *CopyProtectedEntityURL) WithBasePath(bp string) *CopyProtectedEntityURL
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 CreateSnapshot ¶
type CreateSnapshot struct { Context *middleware.Context Handler CreateSnapshotHandler }
CreateSnapshot swagger:route POST /astrolabe/{service}/{protectedEntityID}/snapshots createSnapshot
Creates a new snapshot for this protected entity
func NewCreateSnapshot ¶
func NewCreateSnapshot(ctx *middleware.Context, handler CreateSnapshotHandler) *CreateSnapshot
NewCreateSnapshot creates a new http.Handler for the create snapshot operation
func (*CreateSnapshot) ServeHTTP ¶
func (o *CreateSnapshot) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateSnapshotHandler ¶
type CreateSnapshotHandler interface {
Handle(CreateSnapshotParams) middleware.Responder
}
CreateSnapshotHandler interface for that can handle valid create snapshot params
type CreateSnapshotHandlerFunc ¶
type CreateSnapshotHandlerFunc func(CreateSnapshotParams) middleware.Responder
CreateSnapshotHandlerFunc turns a function with the right signature into a create snapshot handler
func (CreateSnapshotHandlerFunc) Handle ¶
func (fn CreateSnapshotHandlerFunc) Handle(params CreateSnapshotParams) middleware.Responder
Handle executing the request and returning a response
type CreateSnapshotOK ¶
type CreateSnapshotOK struct { /* In: Body */ Payload models.ProtectedEntitySnapshotID `json:"body,omitempty"` }
CreateSnapshotOK Snapshot created successfully, returns the new snapshot ID
swagger:response createSnapshotOK
func NewCreateSnapshotOK ¶
func NewCreateSnapshotOK() *CreateSnapshotOK
NewCreateSnapshotOK creates CreateSnapshotOK with default headers values
func (*CreateSnapshotOK) SetPayload ¶
func (o *CreateSnapshotOK) SetPayload(payload models.ProtectedEntitySnapshotID)
SetPayload sets the payload to the create snapshot o k response
func (*CreateSnapshotOK) WithPayload ¶
func (o *CreateSnapshotOK) WithPayload(payload models.ProtectedEntitySnapshotID) *CreateSnapshotOK
WithPayload adds the payload to the create snapshot o k response
func (*CreateSnapshotOK) WriteResponse ¶
func (o *CreateSnapshotOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateSnapshotParams ¶
type CreateSnapshotParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Parameters for the snapshot. In: body */ Params models.OperationParamList /*The protected entity ID to snapshot Required: true In: path */ ProtectedEntityID string /*The service for the protected entity Required: true In: path */ Service string }
CreateSnapshotParams contains all the bound params for the create snapshot operation typically these are obtained from a http.Request
swagger:parameters createSnapshot
func NewCreateSnapshotParams ¶
func NewCreateSnapshotParams() CreateSnapshotParams
NewCreateSnapshotParams creates a new CreateSnapshotParams object no default values defined in spec.
func (*CreateSnapshotParams) BindRequest ¶
func (o *CreateSnapshotParams) 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 NewCreateSnapshotParams() beforehand.
type CreateSnapshotURL ¶
type CreateSnapshotURL struct { ProtectedEntityID string Service string // contains filtered or unexported fields }
CreateSnapshotURL generates an URL for the create snapshot operation
func (*CreateSnapshotURL) Build ¶
func (o *CreateSnapshotURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateSnapshotURL) BuildFull ¶
func (o *CreateSnapshotURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateSnapshotURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateSnapshotURL) SetBasePath ¶
func (o *CreateSnapshotURL) 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 (*CreateSnapshotURL) String ¶
func (o *CreateSnapshotURL) String() string
String returns the string representation of the path with query string
func (*CreateSnapshotURL) StringFull ¶
func (o *CreateSnapshotURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateSnapshotURL) WithBasePath ¶
func (o *CreateSnapshotURL) WithBasePath(bp string) *CreateSnapshotURL
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 DeleteProtectedEntity ¶
type DeleteProtectedEntity struct { Context *middleware.Context Handler DeleteProtectedEntityHandler }
DeleteProtectedEntity swagger:route DELETE /astrolabe/{service}/{protectedEntityID} deleteProtectedEntity
Deletes a protected entity or snapshot of a protected entity (if the snapshot ID is specified)
func NewDeleteProtectedEntity ¶
func NewDeleteProtectedEntity(ctx *middleware.Context, handler DeleteProtectedEntityHandler) *DeleteProtectedEntity
NewDeleteProtectedEntity creates a new http.Handler for the delete protected entity operation
func (*DeleteProtectedEntity) ServeHTTP ¶
func (o *DeleteProtectedEntity) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteProtectedEntityHandler ¶
type DeleteProtectedEntityHandler interface {
Handle(DeleteProtectedEntityParams) middleware.Responder
}
DeleteProtectedEntityHandler interface for that can handle valid delete protected entity params
type DeleteProtectedEntityHandlerFunc ¶
type DeleteProtectedEntityHandlerFunc func(DeleteProtectedEntityParams) middleware.Responder
DeleteProtectedEntityHandlerFunc turns a function with the right signature into a delete protected entity handler
func (DeleteProtectedEntityHandlerFunc) Handle ¶
func (fn DeleteProtectedEntityHandlerFunc) Handle(params DeleteProtectedEntityParams) middleware.Responder
Handle executing the request and returning a response
type DeleteProtectedEntityOK ¶
type DeleteProtectedEntityOK struct { /* In: Body */ Payload models.ProtectedEntityID `json:"body,omitempty"` }
DeleteProtectedEntityOK 200 response
swagger:response deleteProtectedEntityOK
func NewDeleteProtectedEntityOK ¶
func NewDeleteProtectedEntityOK() *DeleteProtectedEntityOK
NewDeleteProtectedEntityOK creates DeleteProtectedEntityOK with default headers values
func (*DeleteProtectedEntityOK) SetPayload ¶
func (o *DeleteProtectedEntityOK) SetPayload(payload models.ProtectedEntityID)
SetPayload sets the payload to the delete protected entity o k response
func (*DeleteProtectedEntityOK) WithPayload ¶
func (o *DeleteProtectedEntityOK) WithPayload(payload models.ProtectedEntityID) *DeleteProtectedEntityOK
WithPayload adds the payload to the delete protected entity o k response
func (*DeleteProtectedEntityOK) WriteResponse ¶
func (o *DeleteProtectedEntityOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteProtectedEntityParams ¶
type DeleteProtectedEntityParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The protected entity ID to retrieve info for Required: true In: path */ ProtectedEntityID string /*The service for the protected entity Required: true In: path */ Service string }
DeleteProtectedEntityParams contains all the bound params for the delete protected entity operation typically these are obtained from a http.Request
swagger:parameters deleteProtectedEntity
func NewDeleteProtectedEntityParams ¶
func NewDeleteProtectedEntityParams() DeleteProtectedEntityParams
NewDeleteProtectedEntityParams creates a new DeleteProtectedEntityParams object no default values defined in spec.
func (*DeleteProtectedEntityParams) BindRequest ¶
func (o *DeleteProtectedEntityParams) 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 NewDeleteProtectedEntityParams() beforehand.
type DeleteProtectedEntityURL ¶
type DeleteProtectedEntityURL struct { ProtectedEntityID string Service string // contains filtered or unexported fields }
DeleteProtectedEntityURL generates an URL for the delete protected entity operation
func (*DeleteProtectedEntityURL) Build ¶
func (o *DeleteProtectedEntityURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteProtectedEntityURL) BuildFull ¶
func (o *DeleteProtectedEntityURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteProtectedEntityURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteProtectedEntityURL) SetBasePath ¶
func (o *DeleteProtectedEntityURL) 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 (*DeleteProtectedEntityURL) String ¶
func (o *DeleteProtectedEntityURL) String() string
String returns the string representation of the path with query string
func (*DeleteProtectedEntityURL) StringFull ¶
func (o *DeleteProtectedEntityURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteProtectedEntityURL) WithBasePath ¶
func (o *DeleteProtectedEntityURL) WithBasePath(bp string) *DeleteProtectedEntityURL
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 GetAstrolabeTasksNexusTaskNexusID ¶
type GetAstrolabeTasksNexusTaskNexusID struct { Context *middleware.Context Handler GetAstrolabeTasksNexusTaskNexusIDHandler }
GetAstrolabeTasksNexusTaskNexusID swagger:route GET /astrolabe/tasks/nexus/{taskNexusID} getAstrolabeTasksNexusTaskNexusId
GetAstrolabeTasksNexusTaskNexusID get astrolabe tasks nexus task nexus ID API
func NewGetAstrolabeTasksNexusTaskNexusID ¶
func NewGetAstrolabeTasksNexusTaskNexusID(ctx *middleware.Context, handler GetAstrolabeTasksNexusTaskNexusIDHandler) *GetAstrolabeTasksNexusTaskNexusID
NewGetAstrolabeTasksNexusTaskNexusID creates a new http.Handler for the get astrolabe tasks nexus task nexus ID operation
func (*GetAstrolabeTasksNexusTaskNexusID) ServeHTTP ¶
func (o *GetAstrolabeTasksNexusTaskNexusID) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAstrolabeTasksNexusTaskNexusIDHandler ¶
type GetAstrolabeTasksNexusTaskNexusIDHandler interface {
Handle(GetAstrolabeTasksNexusTaskNexusIDParams) middleware.Responder
}
GetAstrolabeTasksNexusTaskNexusIDHandler interface for that can handle valid get astrolabe tasks nexus task nexus ID params
type GetAstrolabeTasksNexusTaskNexusIDHandlerFunc ¶
type GetAstrolabeTasksNexusTaskNexusIDHandlerFunc func(GetAstrolabeTasksNexusTaskNexusIDParams) middleware.Responder
GetAstrolabeTasksNexusTaskNexusIDHandlerFunc turns a function with the right signature into a get astrolabe tasks nexus task nexus ID handler
func (GetAstrolabeTasksNexusTaskNexusIDHandlerFunc) Handle ¶
func (fn GetAstrolabeTasksNexusTaskNexusIDHandlerFunc) Handle(params GetAstrolabeTasksNexusTaskNexusIDParams) middleware.Responder
Handle executing the request and returning a response
type GetAstrolabeTasksNexusTaskNexusIDOK ¶
type GetAstrolabeTasksNexusTaskNexusIDOK struct { /* In: Body */ Payload *models.TaskNexusResponse `json:"body,omitempty"` }
GetAstrolabeTasksNexusTaskNexusIDOK 200 response
swagger:response getAstrolabeTasksNexusTaskNexusIdOK
func NewGetAstrolabeTasksNexusTaskNexusIDOK ¶
func NewGetAstrolabeTasksNexusTaskNexusIDOK() *GetAstrolabeTasksNexusTaskNexusIDOK
NewGetAstrolabeTasksNexusTaskNexusIDOK creates GetAstrolabeTasksNexusTaskNexusIDOK with default headers values
func (*GetAstrolabeTasksNexusTaskNexusIDOK) SetPayload ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDOK) SetPayload(payload *models.TaskNexusResponse)
SetPayload sets the payload to the get astrolabe tasks nexus task nexus Id o k response
func (*GetAstrolabeTasksNexusTaskNexusIDOK) WithPayload ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDOK) WithPayload(payload *models.TaskNexusResponse) *GetAstrolabeTasksNexusTaskNexusIDOK
WithPayload adds the payload to the get astrolabe tasks nexus task nexus Id o k response
func (*GetAstrolabeTasksNexusTaskNexusIDOK) WriteResponse ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAstrolabeTasksNexusTaskNexusIDParams ¶
type GetAstrolabeTasksNexusTaskNexusIDParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Last finished time seen by this client. Tasks that have completed after this time tick will be returned, or if no tasks have finished, the call will hang until waitTime has passed or a task finishes. Starting time tick should be the finished time of the last task that the caller saw completed on this nexus. Use 0 to get all finished tasks (tasks that have finished and timed out of the server will not be shown) Required: true In: query */ LastFinishedNS int64 /*The nexus to wait on Required: true In: path */ TaskNexusID string /*Time to wait (milliseconds) before returning if no tasks complete Required: true In: query */ WaitTime int64 }
GetAstrolabeTasksNexusTaskNexusIDParams contains all the bound params for the get astrolabe tasks nexus task nexus ID operation typically these are obtained from a http.Request
swagger:parameters GetAstrolabeTasksNexusTaskNexusID
func NewGetAstrolabeTasksNexusTaskNexusIDParams ¶
func NewGetAstrolabeTasksNexusTaskNexusIDParams() GetAstrolabeTasksNexusTaskNexusIDParams
NewGetAstrolabeTasksNexusTaskNexusIDParams creates a new GetAstrolabeTasksNexusTaskNexusIDParams object no default values defined in spec.
func (*GetAstrolabeTasksNexusTaskNexusIDParams) BindRequest ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDParams) 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 NewGetAstrolabeTasksNexusTaskNexusIDParams() beforehand.
type GetAstrolabeTasksNexusTaskNexusIDURL ¶
type GetAstrolabeTasksNexusTaskNexusIDURL struct { TaskNexusID string LastFinishedNS int64 WaitTime int64 // contains filtered or unexported fields }
GetAstrolabeTasksNexusTaskNexusIDURL generates an URL for the get astrolabe tasks nexus task nexus ID operation
func (*GetAstrolabeTasksNexusTaskNexusIDURL) Build ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAstrolabeTasksNexusTaskNexusIDURL) BuildFull ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAstrolabeTasksNexusTaskNexusIDURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAstrolabeTasksNexusTaskNexusIDURL) SetBasePath ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDURL) 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 (*GetAstrolabeTasksNexusTaskNexusIDURL) String ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDURL) String() string
String returns the string representation of the path with query string
func (*GetAstrolabeTasksNexusTaskNexusIDURL) StringFull ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAstrolabeTasksNexusTaskNexusIDURL) WithBasePath ¶
func (o *GetAstrolabeTasksNexusTaskNexusIDURL) WithBasePath(bp string) *GetAstrolabeTasksNexusTaskNexusIDURL
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 GetProtectedEntityInfo ¶
type GetProtectedEntityInfo struct { Context *middleware.Context Handler GetProtectedEntityInfoHandler }
GetProtectedEntityInfo swagger:route GET /astrolabe/{service}/{protectedEntityID} getProtectedEntityInfo
Get the info for a Protected Entity including name, data access and components
func NewGetProtectedEntityInfo ¶
func NewGetProtectedEntityInfo(ctx *middleware.Context, handler GetProtectedEntityInfoHandler) *GetProtectedEntityInfo
NewGetProtectedEntityInfo creates a new http.Handler for the get protected entity info operation
func (*GetProtectedEntityInfo) ServeHTTP ¶
func (o *GetProtectedEntityInfo) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProtectedEntityInfoHandler ¶
type GetProtectedEntityInfoHandler interface {
Handle(GetProtectedEntityInfoParams) middleware.Responder
}
GetProtectedEntityInfoHandler interface for that can handle valid get protected entity info params
type GetProtectedEntityInfoHandlerFunc ¶
type GetProtectedEntityInfoHandlerFunc func(GetProtectedEntityInfoParams) middleware.Responder
GetProtectedEntityInfoHandlerFunc turns a function with the right signature into a get protected entity info handler
func (GetProtectedEntityInfoHandlerFunc) Handle ¶
func (fn GetProtectedEntityInfoHandlerFunc) Handle(params GetProtectedEntityInfoParams) middleware.Responder
Handle executing the request and returning a response
type GetProtectedEntityInfoOK ¶
type GetProtectedEntityInfoOK struct { /* In: Body */ Payload *models.ProtectedEntityInfo `json:"body,omitempty"` }
GetProtectedEntityInfoOK 200 response
swagger:response getProtectedEntityInfoOK
func NewGetProtectedEntityInfoOK ¶
func NewGetProtectedEntityInfoOK() *GetProtectedEntityInfoOK
NewGetProtectedEntityInfoOK creates GetProtectedEntityInfoOK with default headers values
func (*GetProtectedEntityInfoOK) SetPayload ¶
func (o *GetProtectedEntityInfoOK) SetPayload(payload *models.ProtectedEntityInfo)
SetPayload sets the payload to the get protected entity info o k response
func (*GetProtectedEntityInfoOK) WithPayload ¶
func (o *GetProtectedEntityInfoOK) WithPayload(payload *models.ProtectedEntityInfo) *GetProtectedEntityInfoOK
WithPayload adds the payload to the get protected entity info o k response
func (*GetProtectedEntityInfoOK) WriteResponse ¶
func (o *GetProtectedEntityInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProtectedEntityInfoParams ¶
type GetProtectedEntityInfoParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The protected entity ID to retrieve info for Required: true In: path */ ProtectedEntityID string /*The service for the protected entity Required: true In: path */ Service string }
GetProtectedEntityInfoParams contains all the bound params for the get protected entity info operation typically these are obtained from a http.Request
swagger:parameters getProtectedEntityInfo
func NewGetProtectedEntityInfoParams ¶
func NewGetProtectedEntityInfoParams() GetProtectedEntityInfoParams
NewGetProtectedEntityInfoParams creates a new GetProtectedEntityInfoParams object no default values defined in spec.
func (*GetProtectedEntityInfoParams) BindRequest ¶
func (o *GetProtectedEntityInfoParams) 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 NewGetProtectedEntityInfoParams() beforehand.
type GetProtectedEntityInfoURL ¶
type GetProtectedEntityInfoURL struct { ProtectedEntityID string Service string // contains filtered or unexported fields }
GetProtectedEntityInfoURL generates an URL for the get protected entity info operation
func (*GetProtectedEntityInfoURL) Build ¶
func (o *GetProtectedEntityInfoURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProtectedEntityInfoURL) BuildFull ¶
func (o *GetProtectedEntityInfoURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProtectedEntityInfoURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProtectedEntityInfoURL) SetBasePath ¶
func (o *GetProtectedEntityInfoURL) 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 (*GetProtectedEntityInfoURL) String ¶
func (o *GetProtectedEntityInfoURL) String() string
String returns the string representation of the path with query string
func (*GetProtectedEntityInfoURL) StringFull ¶
func (o *GetProtectedEntityInfoURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProtectedEntityInfoURL) WithBasePath ¶
func (o *GetProtectedEntityInfoURL) WithBasePath(bp string) *GetProtectedEntityInfoURL
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 GetTaskInfo ¶
type GetTaskInfo struct { Context *middleware.Context Handler GetTaskInfoHandler }
GetTaskInfo swagger:route GET /astrolabe/tasks/{taskID} getTaskInfo
Gets info about a running or recently completed task
func NewGetTaskInfo ¶
func NewGetTaskInfo(ctx *middleware.Context, handler GetTaskInfoHandler) *GetTaskInfo
NewGetTaskInfo creates a new http.Handler for the get task info operation
func (*GetTaskInfo) ServeHTTP ¶
func (o *GetTaskInfo) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetTaskInfoHandler ¶
type GetTaskInfoHandler interface {
Handle(GetTaskInfoParams) middleware.Responder
}
GetTaskInfoHandler interface for that can handle valid get task info params
type GetTaskInfoHandlerFunc ¶
type GetTaskInfoHandlerFunc func(GetTaskInfoParams) middleware.Responder
GetTaskInfoHandlerFunc turns a function with the right signature into a get task info handler
func (GetTaskInfoHandlerFunc) Handle ¶
func (fn GetTaskInfoHandlerFunc) Handle(params GetTaskInfoParams) middleware.Responder
Handle executing the request and returning a response
type GetTaskInfoOK ¶
GetTaskInfoOK Info for running or recently completed task
swagger:response getTaskInfoOK
func NewGetTaskInfoOK ¶
func NewGetTaskInfoOK() *GetTaskInfoOK
NewGetTaskInfoOK creates GetTaskInfoOK with default headers values
func (*GetTaskInfoOK) SetPayload ¶
func (o *GetTaskInfoOK) SetPayload(payload *models.TaskInfo)
SetPayload sets the payload to the get task info o k response
func (*GetTaskInfoOK) WithPayload ¶
func (o *GetTaskInfoOK) WithPayload(payload *models.TaskInfo) *GetTaskInfoOK
WithPayload adds the payload to the get task info o k response
func (*GetTaskInfoOK) WriteResponse ¶
func (o *GetTaskInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetTaskInfoParams ¶
type GetTaskInfoParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The ID of the task to retrieve info for Required: true In: path */ TaskID string }
GetTaskInfoParams contains all the bound params for the get task info operation typically these are obtained from a http.Request
swagger:parameters getTaskInfo
func NewGetTaskInfoParams ¶
func NewGetTaskInfoParams() GetTaskInfoParams
NewGetTaskInfoParams creates a new GetTaskInfoParams object no default values defined in spec.
func (*GetTaskInfoParams) BindRequest ¶
func (o *GetTaskInfoParams) 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 NewGetTaskInfoParams() beforehand.
type GetTaskInfoURL ¶
type GetTaskInfoURL struct { TaskID string // contains filtered or unexported fields }
GetTaskInfoURL generates an URL for the get task info operation
func (*GetTaskInfoURL) Build ¶
func (o *GetTaskInfoURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetTaskInfoURL) BuildFull ¶
func (o *GetTaskInfoURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetTaskInfoURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetTaskInfoURL) SetBasePath ¶
func (o *GetTaskInfoURL) 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 (*GetTaskInfoURL) String ¶
func (o *GetTaskInfoURL) String() string
String returns the string representation of the path with query string
func (*GetTaskInfoURL) StringFull ¶
func (o *GetTaskInfoURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetTaskInfoURL) WithBasePath ¶
func (o *GetTaskInfoURL) WithBasePath(bp string) *GetTaskInfoURL
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 ListProtectedEntities ¶
type ListProtectedEntities struct { Context *middleware.Context Handler ListProtectedEntitiesHandler }
ListProtectedEntities swagger:route GET /astrolabe/{service} listProtectedEntities
List protected entities for the service. Results will be returned in canonical ID order (string sorted). Fewer results may be returned than expected, the ProtectedEntityList has a field specifying if the list has been truncated.
func NewListProtectedEntities ¶
func NewListProtectedEntities(ctx *middleware.Context, handler ListProtectedEntitiesHandler) *ListProtectedEntities
NewListProtectedEntities creates a new http.Handler for the list protected entities operation
func (*ListProtectedEntities) ServeHTTP ¶
func (o *ListProtectedEntities) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListProtectedEntitiesHandler ¶
type ListProtectedEntitiesHandler interface {
Handle(ListProtectedEntitiesParams) middleware.Responder
}
ListProtectedEntitiesHandler interface for that can handle valid list protected entities params
type ListProtectedEntitiesHandlerFunc ¶
type ListProtectedEntitiesHandlerFunc func(ListProtectedEntitiesParams) middleware.Responder
ListProtectedEntitiesHandlerFunc turns a function with the right signature into a list protected entities handler
func (ListProtectedEntitiesHandlerFunc) Handle ¶
func (fn ListProtectedEntitiesHandlerFunc) Handle(params ListProtectedEntitiesParams) middleware.Responder
Handle executing the request and returning a response
type ListProtectedEntitiesNotFound ¶
type ListProtectedEntitiesNotFound struct { }
ListProtectedEntitiesNotFound Service or Protected Entity not found
swagger:response listProtectedEntitiesNotFound
func NewListProtectedEntitiesNotFound ¶
func NewListProtectedEntitiesNotFound() *ListProtectedEntitiesNotFound
NewListProtectedEntitiesNotFound creates ListProtectedEntitiesNotFound with default headers values
func (*ListProtectedEntitiesNotFound) WriteResponse ¶
func (o *ListProtectedEntitiesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListProtectedEntitiesOK ¶
type ListProtectedEntitiesOK struct { /* In: Body */ Payload *models.ProtectedEntityList `json:"body,omitempty"` }
ListProtectedEntitiesOK 200 response
swagger:response listProtectedEntitiesOK
func NewListProtectedEntitiesOK ¶
func NewListProtectedEntitiesOK() *ListProtectedEntitiesOK
NewListProtectedEntitiesOK creates ListProtectedEntitiesOK with default headers values
func (*ListProtectedEntitiesOK) SetPayload ¶
func (o *ListProtectedEntitiesOK) SetPayload(payload *models.ProtectedEntityList)
SetPayload sets the payload to the list protected entities o k response
func (*ListProtectedEntitiesOK) WithPayload ¶
func (o *ListProtectedEntitiesOK) WithPayload(payload *models.ProtectedEntityList) *ListProtectedEntitiesOK
WithPayload adds the payload to the list protected entities o k response
func (*ListProtectedEntitiesOK) WriteResponse ¶
func (o *ListProtectedEntitiesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListProtectedEntitiesParams ¶
type ListProtectedEntitiesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*Results will be returned that come after this ID In: query */ IdsAfter *string /*The maximum number of results to return (fewer results may be returned) In: query */ MaxResults *int32 /*The service to list protected entities from Required: true In: path */ Service string }
ListProtectedEntitiesParams contains all the bound params for the list protected entities operation typically these are obtained from a http.Request
swagger:parameters listProtectedEntities
func NewListProtectedEntitiesParams ¶
func NewListProtectedEntitiesParams() ListProtectedEntitiesParams
NewListProtectedEntitiesParams creates a new ListProtectedEntitiesParams object no default values defined in spec.
func (*ListProtectedEntitiesParams) BindRequest ¶
func (o *ListProtectedEntitiesParams) 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 NewListProtectedEntitiesParams() beforehand.
type ListProtectedEntitiesURL ¶
type ListProtectedEntitiesURL struct { Service string IdsAfter *string MaxResults *int32 // contains filtered or unexported fields }
ListProtectedEntitiesURL generates an URL for the list protected entities operation
func (*ListProtectedEntitiesURL) Build ¶
func (o *ListProtectedEntitiesURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListProtectedEntitiesURL) BuildFull ¶
func (o *ListProtectedEntitiesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListProtectedEntitiesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListProtectedEntitiesURL) SetBasePath ¶
func (o *ListProtectedEntitiesURL) 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 (*ListProtectedEntitiesURL) String ¶
func (o *ListProtectedEntitiesURL) String() string
String returns the string representation of the path with query string
func (*ListProtectedEntitiesURL) StringFull ¶
func (o *ListProtectedEntitiesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListProtectedEntitiesURL) WithBasePath ¶
func (o *ListProtectedEntitiesURL) WithBasePath(bp string) *ListProtectedEntitiesURL
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 ListServices ¶
type ListServices struct { Context *middleware.Context Handler ListServicesHandler }
ListServices swagger:route GET /astrolabe listServices
List available services ¶
This returns the list of services that this Astrolabe server supports
func NewListServices ¶
func NewListServices(ctx *middleware.Context, handler ListServicesHandler) *ListServices
NewListServices creates a new http.Handler for the list services operation
func (*ListServices) ServeHTTP ¶
func (o *ListServices) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListServicesHandler ¶
type ListServicesHandler interface {
Handle(ListServicesParams) middleware.Responder
}
ListServicesHandler interface for that can handle valid list services params
type ListServicesHandlerFunc ¶
type ListServicesHandlerFunc func(ListServicesParams) middleware.Responder
ListServicesHandlerFunc turns a function with the right signature into a list services handler
func (ListServicesHandlerFunc) Handle ¶
func (fn ListServicesHandlerFunc) Handle(params ListServicesParams) middleware.Responder
Handle executing the request and returning a response
type ListServicesOK ¶
type ListServicesOK struct { /* In: Body */ Payload *models.ServiceList `json:"body,omitempty"` }
ListServicesOK 200 response
swagger:response listServicesOK
func NewListServicesOK ¶
func NewListServicesOK() *ListServicesOK
NewListServicesOK creates ListServicesOK with default headers values
func (*ListServicesOK) SetPayload ¶
func (o *ListServicesOK) SetPayload(payload *models.ServiceList)
SetPayload sets the payload to the list services o k response
func (*ListServicesOK) WithPayload ¶
func (o *ListServicesOK) WithPayload(payload *models.ServiceList) *ListServicesOK
WithPayload adds the payload to the list services o k response
func (*ListServicesOK) WriteResponse ¶
func (o *ListServicesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListServicesParams ¶
ListServicesParams contains all the bound params for the list services operation typically these are obtained from a http.Request
swagger:parameters listServices
func NewListServicesParams ¶
func NewListServicesParams() ListServicesParams
NewListServicesParams creates a new ListServicesParams object no default values defined in spec.
func (*ListServicesParams) BindRequest ¶
func (o *ListServicesParams) 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 NewListServicesParams() beforehand.
type ListServicesURL ¶
type ListServicesURL struct {
// contains filtered or unexported fields
}
ListServicesURL generates an URL for the list services operation
func (*ListServicesURL) Build ¶
func (o *ListServicesURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListServicesURL) BuildFull ¶
func (o *ListServicesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListServicesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListServicesURL) SetBasePath ¶
func (o *ListServicesURL) 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 (*ListServicesURL) String ¶
func (o *ListServicesURL) String() string
String returns the string representation of the path with query string
func (*ListServicesURL) StringFull ¶
func (o *ListServicesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListServicesURL) WithBasePath ¶
func (o *ListServicesURL) WithBasePath(bp string) *ListServicesURL
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 ListSnapshots ¶
type ListSnapshots struct { Context *middleware.Context Handler ListSnapshotsHandler }
ListSnapshots swagger:route GET /astrolabe/{service}/{protectedEntityID}/snapshots listSnapshots
Gets the list of snapshots for this protected entity
func NewListSnapshots ¶
func NewListSnapshots(ctx *middleware.Context, handler ListSnapshotsHandler) *ListSnapshots
NewListSnapshots creates a new http.Handler for the list snapshots operation
func (*ListSnapshots) ServeHTTP ¶
func (o *ListSnapshots) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListSnapshotsHandler ¶
type ListSnapshotsHandler interface {
Handle(ListSnapshotsParams) middleware.Responder
}
ListSnapshotsHandler interface for that can handle valid list snapshots params
type ListSnapshotsHandlerFunc ¶
type ListSnapshotsHandlerFunc func(ListSnapshotsParams) middleware.Responder
ListSnapshotsHandlerFunc turns a function with the right signature into a list snapshots handler
func (ListSnapshotsHandlerFunc) Handle ¶
func (fn ListSnapshotsHandlerFunc) Handle(params ListSnapshotsParams) middleware.Responder
Handle executing the request and returning a response
type ListSnapshotsNotFound ¶
type ListSnapshotsNotFound struct { }
ListSnapshotsNotFound Service or Protected Entity not found
swagger:response listSnapshotsNotFound
func NewListSnapshotsNotFound ¶
func NewListSnapshotsNotFound() *ListSnapshotsNotFound
NewListSnapshotsNotFound creates ListSnapshotsNotFound with default headers values
func (*ListSnapshotsNotFound) WriteResponse ¶
func (o *ListSnapshotsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSnapshotsOK ¶
type ListSnapshotsOK struct { /* In: Body */ Payload *models.ProtectedEntityList `json:"body,omitempty"` }
ListSnapshotsOK List succeeded
swagger:response listSnapshotsOK
func NewListSnapshotsOK ¶
func NewListSnapshotsOK() *ListSnapshotsOK
NewListSnapshotsOK creates ListSnapshotsOK with default headers values
func (*ListSnapshotsOK) SetPayload ¶
func (o *ListSnapshotsOK) SetPayload(payload *models.ProtectedEntityList)
SetPayload sets the payload to the list snapshots o k response
func (*ListSnapshotsOK) WithPayload ¶
func (o *ListSnapshotsOK) WithPayload(payload *models.ProtectedEntityList) *ListSnapshotsOK
WithPayload adds the payload to the list snapshots o k response
func (*ListSnapshotsOK) WriteResponse ¶
func (o *ListSnapshotsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSnapshotsParams ¶
type ListSnapshotsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The protected entity ID to retrieve info for Required: true In: path */ ProtectedEntityID string /*The service for the protected entity Required: true In: path */ Service string }
ListSnapshotsParams contains all the bound params for the list snapshots operation typically these are obtained from a http.Request
swagger:parameters listSnapshots
func NewListSnapshotsParams ¶
func NewListSnapshotsParams() ListSnapshotsParams
NewListSnapshotsParams creates a new ListSnapshotsParams object no default values defined in spec.
func (*ListSnapshotsParams) BindRequest ¶
func (o *ListSnapshotsParams) 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 NewListSnapshotsParams() beforehand.
type ListSnapshotsURL ¶
type ListSnapshotsURL struct { ProtectedEntityID string Service string // contains filtered or unexported fields }
ListSnapshotsURL generates an URL for the list snapshots operation
func (*ListSnapshotsURL) Build ¶
func (o *ListSnapshotsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListSnapshotsURL) BuildFull ¶
func (o *ListSnapshotsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListSnapshotsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListSnapshotsURL) SetBasePath ¶
func (o *ListSnapshotsURL) 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 (*ListSnapshotsURL) String ¶
func (o *ListSnapshotsURL) String() string
String returns the string representation of the path with query string
func (*ListSnapshotsURL) StringFull ¶
func (o *ListSnapshotsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListSnapshotsURL) WithBasePath ¶
func (o *ListSnapshotsURL) WithBasePath(bp string) *ListSnapshotsURL
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 ListTaskNexus ¶
type ListTaskNexus struct { Context *middleware.Context Handler ListTaskNexusHandler }
ListTaskNexus swagger:route GET /astrolabe/tasks/nexus listTaskNexus
Provides a list of current task nexus
func NewListTaskNexus ¶
func NewListTaskNexus(ctx *middleware.Context, handler ListTaskNexusHandler) *ListTaskNexus
NewListTaskNexus creates a new http.Handler for the list task nexus operation
func (*ListTaskNexus) ServeHTTP ¶
func (o *ListTaskNexus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListTaskNexusHandler ¶
type ListTaskNexusHandler interface {
Handle(ListTaskNexusParams) middleware.Responder
}
ListTaskNexusHandler interface for that can handle valid list task nexus params
type ListTaskNexusHandlerFunc ¶
type ListTaskNexusHandlerFunc func(ListTaskNexusParams) middleware.Responder
ListTaskNexusHandlerFunc turns a function with the right signature into a list task nexus handler
func (ListTaskNexusHandlerFunc) Handle ¶
func (fn ListTaskNexusHandlerFunc) Handle(params ListTaskNexusParams) middleware.Responder
Handle executing the request and returning a response
type ListTaskNexusOK ¶
type ListTaskNexusOK struct { /* In: Body */ Payload models.TaskNexusList `json:"body,omitempty"` }
ListTaskNexusOK Task nexus list
swagger:response listTaskNexusOK
func NewListTaskNexusOK ¶
func NewListTaskNexusOK() *ListTaskNexusOK
NewListTaskNexusOK creates ListTaskNexusOK with default headers values
func (*ListTaskNexusOK) SetPayload ¶
func (o *ListTaskNexusOK) SetPayload(payload models.TaskNexusList)
SetPayload sets the payload to the list task nexus o k response
func (*ListTaskNexusOK) WithPayload ¶
func (o *ListTaskNexusOK) WithPayload(payload models.TaskNexusList) *ListTaskNexusOK
WithPayload adds the payload to the list task nexus o k response
func (*ListTaskNexusOK) WriteResponse ¶
func (o *ListTaskNexusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListTaskNexusParams ¶
ListTaskNexusParams contains all the bound params for the list task nexus operation typically these are obtained from a http.Request
swagger:parameters listTaskNexus
func NewListTaskNexusParams ¶
func NewListTaskNexusParams() ListTaskNexusParams
NewListTaskNexusParams creates a new ListTaskNexusParams object no default values defined in spec.
func (*ListTaskNexusParams) BindRequest ¶
func (o *ListTaskNexusParams) 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 NewListTaskNexusParams() beforehand.
type ListTaskNexusURL ¶
type ListTaskNexusURL struct {
// contains filtered or unexported fields
}
ListTaskNexusURL generates an URL for the list task nexus operation
func (*ListTaskNexusURL) Build ¶
func (o *ListTaskNexusURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListTaskNexusURL) BuildFull ¶
func (o *ListTaskNexusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListTaskNexusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListTaskNexusURL) SetBasePath ¶
func (o *ListTaskNexusURL) 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 (*ListTaskNexusURL) String ¶
func (o *ListTaskNexusURL) String() string
String returns the string representation of the path with query string
func (*ListTaskNexusURL) StringFull ¶
func (o *ListTaskNexusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListTaskNexusURL) WithBasePath ¶
func (o *ListTaskNexusURL) WithBasePath(bp string) *ListTaskNexusURL
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 ListTasks ¶
type ListTasks struct { Context *middleware.Context Handler ListTasksHandler }
ListTasks swagger:route GET /astrolabe/tasks listTasks
Lists running and recent tasks
func NewListTasks ¶
func NewListTasks(ctx *middleware.Context, handler ListTasksHandler) *ListTasks
NewListTasks creates a new http.Handler for the list tasks operation
type ListTasksHandler ¶
type ListTasksHandler interface {
Handle(ListTasksParams) middleware.Responder
}
ListTasksHandler interface for that can handle valid list tasks params
type ListTasksHandlerFunc ¶
type ListTasksHandlerFunc func(ListTasksParams) middleware.Responder
ListTasksHandlerFunc turns a function with the right signature into a list tasks handler
func (ListTasksHandlerFunc) Handle ¶
func (fn ListTasksHandlerFunc) Handle(params ListTasksParams) middleware.Responder
Handle executing the request and returning a response
type ListTasksOK ¶
type ListTasksOK struct { /* In: Body */ Payload models.TaskIDList `json:"body,omitempty"` }
ListTasksOK List of recent task IDs
swagger:response listTasksOK
func NewListTasksOK ¶
func NewListTasksOK() *ListTasksOK
NewListTasksOK creates ListTasksOK with default headers values
func (*ListTasksOK) SetPayload ¶
func (o *ListTasksOK) SetPayload(payload models.TaskIDList)
SetPayload sets the payload to the list tasks o k response
func (*ListTasksOK) WithPayload ¶
func (o *ListTasksOK) WithPayload(payload models.TaskIDList) *ListTasksOK
WithPayload adds the payload to the list tasks o k response
func (*ListTasksOK) WriteResponse ¶
func (o *ListTasksOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListTasksParams ¶
ListTasksParams contains all the bound params for the list tasks operation typically these are obtained from a http.Request
swagger:parameters listTasks
func NewListTasksParams ¶
func NewListTasksParams() ListTasksParams
NewListTasksParams creates a new ListTasksParams object no default values defined in spec.
func (*ListTasksParams) BindRequest ¶
func (o *ListTasksParams) 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 NewListTasksParams() beforehand.
type ListTasksURL ¶
type ListTasksURL struct {
// contains filtered or unexported fields
}
ListTasksURL generates an URL for the list tasks operation
func (*ListTasksURL) Build ¶
func (o *ListTasksURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListTasksURL) BuildFull ¶
func (o *ListTasksURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListTasksURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListTasksURL) SetBasePath ¶
func (o *ListTasksURL) 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 (*ListTasksURL) String ¶
func (o *ListTasksURL) String() string
String returns the string representation of the path with query string
func (*ListTasksURL) StringFull ¶
func (o *ListTasksURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListTasksURL) WithBasePath ¶
func (o *ListTasksURL) WithBasePath(bp string) *ListTasksURL
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 PostAstrolabeTasksNexus ¶
type PostAstrolabeTasksNexus struct { Context *middleware.Context Handler PostAstrolabeTasksNexusHandler }
PostAstrolabeTasksNexus swagger:route POST /astrolabe/tasks/nexus postAstrolabeTasksNexus
Creates a new nexus for monitoring task completion
func NewPostAstrolabeTasksNexus ¶
func NewPostAstrolabeTasksNexus(ctx *middleware.Context, handler PostAstrolabeTasksNexusHandler) *PostAstrolabeTasksNexus
NewPostAstrolabeTasksNexus creates a new http.Handler for the post astrolabe tasks nexus operation
func (*PostAstrolabeTasksNexus) ServeHTTP ¶
func (o *PostAstrolabeTasksNexus) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type PostAstrolabeTasksNexusHandler ¶
type PostAstrolabeTasksNexusHandler interface {
Handle(PostAstrolabeTasksNexusParams) middleware.Responder
}
PostAstrolabeTasksNexusHandler interface for that can handle valid post astrolabe tasks nexus params
type PostAstrolabeTasksNexusHandlerFunc ¶
type PostAstrolabeTasksNexusHandlerFunc func(PostAstrolabeTasksNexusParams) middleware.Responder
PostAstrolabeTasksNexusHandlerFunc turns a function with the right signature into a post astrolabe tasks nexus handler
func (PostAstrolabeTasksNexusHandlerFunc) Handle ¶
func (fn PostAstrolabeTasksNexusHandlerFunc) Handle(params PostAstrolabeTasksNexusParams) middleware.Responder
Handle executing the request and returning a response
type PostAstrolabeTasksNexusOK ¶
type PostAstrolabeTasksNexusOK struct { /* In: Body */ Payload models.TaskNexusID `json:"body,omitempty"` }
PostAstrolabeTasksNexusOK New task nexus
swagger:response postAstrolabeTasksNexusOK
func NewPostAstrolabeTasksNexusOK ¶
func NewPostAstrolabeTasksNexusOK() *PostAstrolabeTasksNexusOK
NewPostAstrolabeTasksNexusOK creates PostAstrolabeTasksNexusOK with default headers values
func (*PostAstrolabeTasksNexusOK) SetPayload ¶
func (o *PostAstrolabeTasksNexusOK) SetPayload(payload models.TaskNexusID)
SetPayload sets the payload to the post astrolabe tasks nexus o k response
func (*PostAstrolabeTasksNexusOK) WithPayload ¶
func (o *PostAstrolabeTasksNexusOK) WithPayload(payload models.TaskNexusID) *PostAstrolabeTasksNexusOK
WithPayload adds the payload to the post astrolabe tasks nexus o k response
func (*PostAstrolabeTasksNexusOK) WriteResponse ¶
func (o *PostAstrolabeTasksNexusOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type PostAstrolabeTasksNexusParams ¶
type PostAstrolabeTasksNexusParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
PostAstrolabeTasksNexusParams contains all the bound params for the post astrolabe tasks nexus operation typically these are obtained from a http.Request
swagger:parameters PostAstrolabeTasksNexus
func NewPostAstrolabeTasksNexusParams ¶
func NewPostAstrolabeTasksNexusParams() PostAstrolabeTasksNexusParams
NewPostAstrolabeTasksNexusParams creates a new PostAstrolabeTasksNexusParams object no default values defined in spec.
func (*PostAstrolabeTasksNexusParams) BindRequest ¶
func (o *PostAstrolabeTasksNexusParams) 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 NewPostAstrolabeTasksNexusParams() beforehand.
type PostAstrolabeTasksNexusURL ¶
type PostAstrolabeTasksNexusURL struct {
// contains filtered or unexported fields
}
PostAstrolabeTasksNexusURL generates an URL for the post astrolabe tasks nexus operation
func (*PostAstrolabeTasksNexusURL) Build ¶
func (o *PostAstrolabeTasksNexusURL) Build() (*url.URL, error)
Build a url path and query string
func (*PostAstrolabeTasksNexusURL) BuildFull ¶
func (o *PostAstrolabeTasksNexusURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*PostAstrolabeTasksNexusURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*PostAstrolabeTasksNexusURL) SetBasePath ¶
func (o *PostAstrolabeTasksNexusURL) 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 (*PostAstrolabeTasksNexusURL) String ¶
func (o *PostAstrolabeTasksNexusURL) String() string
String returns the string representation of the path with query string
func (*PostAstrolabeTasksNexusURL) StringFull ¶
func (o *PostAstrolabeTasksNexusURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*PostAstrolabeTasksNexusURL) WithBasePath ¶
func (o *PostAstrolabeTasksNexusURL) WithBasePath(bp string) *PostAstrolabeTasksNexusURL
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 ¶
- astrolabe_api.go
- copy_protected_entity.go
- copy_protected_entity_parameters.go
- copy_protected_entity_responses.go
- copy_protected_entity_urlbuilder.go
- create_snapshot.go
- create_snapshot_parameters.go
- create_snapshot_responses.go
- create_snapshot_urlbuilder.go
- delete_protected_entity.go
- delete_protected_entity_parameters.go
- delete_protected_entity_responses.go
- delete_protected_entity_urlbuilder.go
- get_astrolabe_tasks_nexus_task_nexus_id.go
- get_astrolabe_tasks_nexus_task_nexus_id_parameters.go
- get_astrolabe_tasks_nexus_task_nexus_id_responses.go
- get_astrolabe_tasks_nexus_task_nexus_id_urlbuilder.go
- get_protected_entity_info.go
- get_protected_entity_info_parameters.go
- get_protected_entity_info_responses.go
- get_protected_entity_info_urlbuilder.go
- get_task_info.go
- get_task_info_parameters.go
- get_task_info_responses.go
- get_task_info_urlbuilder.go
- list_protected_entities.go
- list_protected_entities_parameters.go
- list_protected_entities_responses.go
- list_protected_entities_urlbuilder.go
- list_services.go
- list_services_parameters.go
- list_services_responses.go
- list_services_urlbuilder.go
- list_snapshots.go
- list_snapshots_parameters.go
- list_snapshots_responses.go
- list_snapshots_urlbuilder.go
- list_task_nexus.go
- list_task_nexus_parameters.go
- list_task_nexus_responses.go
- list_task_nexus_urlbuilder.go
- list_tasks.go
- list_tasks_parameters.go
- list_tasks_responses.go
- list_tasks_urlbuilder.go
- post_astrolabe_tasks_nexus.go
- post_astrolabe_tasks_nexus_parameters.go
- post_astrolabe_tasks_nexus_responses.go
- post_astrolabe_tasks_nexus_urlbuilder.go