Documentation ¶
Overview ¶
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Package generated provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen DO NOT EDIT.
Index ¶
- func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error)
- func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteProjectArtifactRequest(server string, projectName string, artifactId string) (*http.Request, error)
- func NewDeleteProjectRequest(server string, projectName string) (*http.Request, error)
- func NewGetHealthRequest(server string) (*http.Request, error)
- func NewGetProjectArtifactRequest(server string, projectName string, artifactId string) (*http.Request, error)
- func NewGetProjectArtifactsRequest(server string, projectName string) (*http.Request, error)
- func NewGetProjectRequest(server string, projectName string) (*http.Request, error)
- func NewGetProjectsRequest(server string) (*http.Request, error)
- func NewProjectArtifactExistsRequest(server string, projectName string, artifactId string) (*http.Request, error)
- func NewProjectExistsRequest(server string, projectName string) (*http.Request, error)
- func NewUploadArtifactRequestWithBody(server string, projectName string, contentType string, body io.Reader) (*http.Request, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type Artifact
- type ArtifactIds
- type Client
- func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteProject(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteProjectArtifact(ctx context.Context, projectName string, artifactId string, ...) (*http.Response, error)
- func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProject(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProjectArtifact(ctx context.Context, projectName string, artifactId string, ...) (*http.Response, error)
- func (c *Client) GetProjectArtifacts(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ProjectArtifactExists(ctx context.Context, projectName string, artifactId string, ...) (*http.Response, error)
- func (c *Client) ProjectExists(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UploadArtifactWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateProjectResponse, error)
- func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, ...) (*CreateProjectResponse, error)
- func (c *ClientWithResponses) DeleteProjectArtifactWithResponse(ctx context.Context, projectName string, artifactId string, ...) (*DeleteProjectArtifactResponse, error)
- func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)
- func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
- func (c *ClientWithResponses) GetProjectArtifactWithResponse(ctx context.Context, projectName string, artifactId string, ...) (*GetProjectArtifactResponse, error)
- func (c *ClientWithResponses) GetProjectArtifactsWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetProjectArtifactsResponse, error)
- func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)
- func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
- func (c *ClientWithResponses) ProjectArtifactExistsWithResponse(ctx context.Context, projectName string, artifactId string, ...) (*ProjectArtifactExistsResponse, error)
- func (c *ClientWithResponses) ProjectExistsWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*ProjectExistsResponse, error)
- func (c *ClientWithResponses) UploadArtifactWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, ...) (*UploadArtifactResponse, error)
- type ClientWithResponsesInterface
- type CreateProjectJSONBody
- type CreateProjectJSONRequestBody
- type CreateProjectResponse
- type DeleteProjectArtifactResponse
- type DeleteProjectResponse
- type EchoRouter
- type Error
- type ExtendedProject
- type GetHealthResponse
- type GetProjectArtifactResponse
- type GetProjectArtifactsResponse
- type GetProjectResponse
- type GetProjectsResponse
- type HttpRequestDoer
- type Project
- type ProjectArtifactExistsResponse
- type ProjectCreate
- type ProjectExistsResponse
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) CreateProject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteProject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteProjectArtifact(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetHealth(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetProject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetProjectArtifact(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetProjectArtifacts(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetProjects(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ProjectArtifactExists(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ProjectExists(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UploadArtifact(ctx echo.Context) error
- type Success
- type UploadArtifactResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCreateProjectRequest ¶
func NewCreateProjectRequest(server string, body CreateProjectJSONRequestBody) (*http.Request, error)
NewCreateProjectRequest calls the generic CreateProject builder with application/json body
func NewCreateProjectRequestWithBody ¶
func NewCreateProjectRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body
func NewDeleteProjectArtifactRequest ¶
func NewDeleteProjectArtifactRequest(server string, projectName string, artifactId string) (*http.Request, error)
NewDeleteProjectArtifactRequest generates requests for DeleteProjectArtifact
func NewDeleteProjectRequest ¶
NewDeleteProjectRequest generates requests for DeleteProject
func NewGetHealthRequest ¶
NewGetHealthRequest generates requests for GetHealth
func NewGetProjectArtifactRequest ¶
func NewGetProjectArtifactRequest(server string, projectName string, artifactId string) (*http.Request, error)
NewGetProjectArtifactRequest generates requests for GetProjectArtifact
func NewGetProjectArtifactsRequest ¶
NewGetProjectArtifactsRequest generates requests for GetProjectArtifacts
func NewGetProjectRequest ¶
NewGetProjectRequest generates requests for GetProject
func NewGetProjectsRequest ¶
NewGetProjectsRequest generates requests for GetProjects
func NewProjectArtifactExistsRequest ¶
func NewProjectArtifactExistsRequest(server string, projectName string, artifactId string) (*http.Request, error)
NewProjectArtifactExistsRequest generates requests for ProjectArtifactExists
func NewProjectExistsRequest ¶
NewProjectExistsRequest generates requests for ProjectExists
func NewUploadArtifactRequestWithBody ¶
func NewUploadArtifactRequestWithBody(server string, projectName string, contentType string, body io.Reader) (*http.Request, error)
NewUploadArtifactRequestWithBody generates requests for UploadArtifact with any type of body
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type Artifact ¶
type Artifact struct { Id string `json:"id"` // location to download the artifact using a GET request. Location *string `json:"location,omitempty"` Size int `json:"size"` }
Artifact defines model for Artifact.
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateProjectWithBody ¶
func (*Client) DeleteProject ¶
func (*Client) DeleteProjectArtifact ¶
func (*Client) GetProject ¶
func (*Client) GetProjectArtifact ¶
func (*Client) GetProjectArtifacts ¶
func (*Client) GetProjects ¶
func (*Client) ProjectArtifactExists ¶
func (*Client) ProjectExists ¶
type ClientInterface ¶
type ClientInterface interface { // GetHealth request GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteProject request DeleteProject(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProject request GetProject(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) // ProjectExists request ProjectExists(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteProjectArtifact request DeleteProjectArtifact(ctx context.Context, projectName string, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectArtifact request GetProjectArtifact(ctx context.Context, projectName string, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error) // ProjectArtifactExists request ProjectArtifactExists(ctx context.Context, projectName string, artifactId string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjectArtifacts request GetProjectArtifacts(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*http.Response, error) // UploadArtifact request with any body UploadArtifactWithBody(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjects request GetProjects(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateProject request with any body CreateProjectWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateProject(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateProjectWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
CreateProjectWithBodyWithResponse request with arbitrary body returning *CreateProjectResponse
func (*ClientWithResponses) CreateProjectWithResponse ¶
func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
func (*ClientWithResponses) DeleteProjectArtifactWithResponse ¶
func (c *ClientWithResponses) DeleteProjectArtifactWithResponse(ctx context.Context, projectName string, artifactId string, reqEditors ...RequestEditorFn) (*DeleteProjectArtifactResponse, error)
DeleteProjectArtifactWithResponse request returning *DeleteProjectArtifactResponse
func (*ClientWithResponses) DeleteProjectWithResponse ¶
func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)
DeleteProjectWithResponse request returning *DeleteProjectResponse
func (*ClientWithResponses) GetHealthWithResponse ¶
func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
GetHealthWithResponse request returning *GetHealthResponse
func (*ClientWithResponses) GetProjectArtifactWithResponse ¶
func (c *ClientWithResponses) GetProjectArtifactWithResponse(ctx context.Context, projectName string, artifactId string, reqEditors ...RequestEditorFn) (*GetProjectArtifactResponse, error)
GetProjectArtifactWithResponse request returning *GetProjectArtifactResponse
func (*ClientWithResponses) GetProjectArtifactsWithResponse ¶
func (c *ClientWithResponses) GetProjectArtifactsWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetProjectArtifactsResponse, error)
GetProjectArtifactsWithResponse request returning *GetProjectArtifactsResponse
func (*ClientWithResponses) GetProjectWithResponse ¶
func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)
GetProjectWithResponse request returning *GetProjectResponse
func (*ClientWithResponses) GetProjectsWithResponse ¶
func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
GetProjectsWithResponse request returning *GetProjectsResponse
func (*ClientWithResponses) ProjectArtifactExistsWithResponse ¶
func (c *ClientWithResponses) ProjectArtifactExistsWithResponse(ctx context.Context, projectName string, artifactId string, reqEditors ...RequestEditorFn) (*ProjectArtifactExistsResponse, error)
ProjectArtifactExistsWithResponse request returning *ProjectArtifactExistsResponse
func (*ClientWithResponses) ProjectExistsWithResponse ¶
func (c *ClientWithResponses) ProjectExistsWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*ProjectExistsResponse, error)
ProjectExistsWithResponse request returning *ProjectExistsResponse
func (*ClientWithResponses) UploadArtifactWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadArtifactWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadArtifactResponse, error)
UploadArtifactWithBodyWithResponse request with arbitrary body returning *UploadArtifactResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetHealth request GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error) // DeleteProject request DeleteProjectWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error) // GetProject request GetProjectWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) // ProjectExists request ProjectExistsWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*ProjectExistsResponse, error) // DeleteProjectArtifact request DeleteProjectArtifactWithResponse(ctx context.Context, projectName string, artifactId string, reqEditors ...RequestEditorFn) (*DeleteProjectArtifactResponse, error) // GetProjectArtifact request GetProjectArtifactWithResponse(ctx context.Context, projectName string, artifactId string, reqEditors ...RequestEditorFn) (*GetProjectArtifactResponse, error) // ProjectArtifactExists request ProjectArtifactExistsWithResponse(ctx context.Context, projectName string, artifactId string, reqEditors ...RequestEditorFn) (*ProjectArtifactExistsResponse, error) // GetProjectArtifacts request GetProjectArtifactsWithResponse(ctx context.Context, projectName string, reqEditors ...RequestEditorFn) (*GetProjectArtifactsResponse, error) // UploadArtifact request with any body UploadArtifactWithBodyWithResponse(ctx context.Context, projectName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadArtifactResponse, error) // GetProjects request GetProjectsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error) // CreateProject request with any body CreateProjectWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) CreateProjectWithResponse(ctx context.Context, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateProjectJSONBody ¶
type CreateProjectJSONBody ProjectCreate
CreateProjectJSONBody defines parameters for CreateProject.
type CreateProjectJSONRequestBody ¶
type CreateProjectJSONRequestBody CreateProjectJSONBody
CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
type CreateProjectResponse ¶
type CreateProjectResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ExtendedProject }
func ParseCreateProjectResponse ¶
func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error)
ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call
func (CreateProjectResponse) Status ¶
func (r CreateProjectResponse) Status() string
Status returns HTTPResponse.Status
func (CreateProjectResponse) StatusCode ¶
func (r CreateProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteProjectArtifactResponse ¶
func ParseDeleteProjectArtifactResponse ¶
func ParseDeleteProjectArtifactResponse(rsp *http.Response) (*DeleteProjectArtifactResponse, error)
ParseDeleteProjectArtifactResponse parses an HTTP response from a DeleteProjectArtifactWithResponse call
func (DeleteProjectArtifactResponse) Status ¶
func (r DeleteProjectArtifactResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteProjectArtifactResponse) StatusCode ¶
func (r DeleteProjectArtifactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteProjectResponse ¶
func ParseDeleteProjectResponse ¶
func ParseDeleteProjectResponse(rsp *http.Response) (*DeleteProjectResponse, error)
ParseDeleteProjectResponse parses an HTTP response from a DeleteProjectWithResponse call
func (DeleteProjectResponse) Status ¶
func (r DeleteProjectResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteProjectResponse) StatusCode ¶
func (r DeleteProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EchoRouter ¶
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type ExtendedProject ¶
type ExtendedProject struct { Description string `json:"description"` Hashes *[]Artifact `json:"hashes,omitempty"` Id string `json:"id"` Name string `json:"name"` }
ExtendedProject defines model for ExtendedProject.
type GetHealthResponse ¶
type GetHealthResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Success JSONDefault *Error }
func ParseGetHealthResponse ¶
func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)
ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call
func (GetHealthResponse) Status ¶
func (r GetHealthResponse) Status() string
Status returns HTTPResponse.Status
func (GetHealthResponse) StatusCode ¶
func (r GetHealthResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectArtifactResponse ¶
type GetProjectArtifactResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Artifact }
func ParseGetProjectArtifactResponse ¶
func ParseGetProjectArtifactResponse(rsp *http.Response) (*GetProjectArtifactResponse, error)
ParseGetProjectArtifactResponse parses an HTTP response from a GetProjectArtifactWithResponse call
func (GetProjectArtifactResponse) Status ¶
func (r GetProjectArtifactResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectArtifactResponse) StatusCode ¶
func (r GetProjectArtifactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectArtifactsResponse ¶
type GetProjectArtifactsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ArtifactIds }
func ParseGetProjectArtifactsResponse ¶
func ParseGetProjectArtifactsResponse(rsp *http.Response) (*GetProjectArtifactsResponse, error)
ParseGetProjectArtifactsResponse parses an HTTP response from a GetProjectArtifactsWithResponse call
func (GetProjectArtifactsResponse) Status ¶
func (r GetProjectArtifactsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectArtifactsResponse) StatusCode ¶
func (r GetProjectArtifactsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectResponse ¶
type GetProjectResponse struct { Body []byte HTTPResponse *http.Response JSON200 *ExtendedProject }
func ParseGetProjectResponse ¶
func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error)
ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call
func (GetProjectResponse) Status ¶
func (r GetProjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectResponse) StatusCode ¶
func (r GetProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetProjectsResponse ¶
func ParseGetProjectsResponse ¶
func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error)
ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call
func (GetProjectsResponse) Status ¶
func (r GetProjectsResponse) Status() string
Status returns HTTPResponse.Status
func (GetProjectsResponse) StatusCode ¶
func (r GetProjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Project ¶
type Project struct { Description string `json:"description"` Id string `json:"id"` Name string `json:"name"` }
Project defines model for Project.
type ProjectArtifactExistsResponse ¶
func ParseProjectArtifactExistsResponse ¶
func ParseProjectArtifactExistsResponse(rsp *http.Response) (*ProjectArtifactExistsResponse, error)
ParseProjectArtifactExistsResponse parses an HTTP response from a ProjectArtifactExistsWithResponse call
func (ProjectArtifactExistsResponse) Status ¶
func (r ProjectArtifactExistsResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectArtifactExistsResponse) StatusCode ¶
func (r ProjectArtifactExistsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ProjectCreate ¶
ProjectCreate defines model for ProjectCreate.
type ProjectExistsResponse ¶
func ParseProjectExistsResponse ¶
func ParseProjectExistsResponse(rsp *http.Response) (*ProjectExistsResponse, error)
ParseProjectExistsResponse parses an HTTP response from a ProjectExistsWithResponse call
func (ProjectExistsResponse) Status ¶
func (r ProjectExistsResponse) Status() string
Status returns HTTPResponse.Status
func (ProjectExistsResponse) StatusCode ¶
func (r ProjectExistsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface { // Returns the health status of the server // (GET /api/health) GetHealth(ctx echo.Context) error // Delete a project by id. // (DELETE /api/project/{projectName}) DeleteProject(ctx echo.Context, projectName string) error // Returns a single project by id. // (GET /api/project/{projectName}) GetProject(ctx echo.Context, projectName string) error // Check if a project name is taken. // (HEAD /api/project/{projectName}) ProjectExists(ctx echo.Context, projectName string) error // Delete a project hash. // (DELETE /api/project/{projectName}/artifact/{artifactId}) DeleteProjectArtifact(ctx echo.Context, projectName string, artifactId string) error // Get a project hash under a project id. // (GET /api/project/{projectName}/artifact/{artifactId}) GetProjectArtifact(ctx echo.Context, projectName string, artifactId string) error // Returns 200 with Bob-Exists header. // (HEAD /api/project/{projectName}/artifact/{artifactId}) ProjectArtifactExists(ctx echo.Context, projectName string, artifactId string) error // (GET /api/project/{projectName}/artifacts) GetProjectArtifacts(ctx echo.Context, projectName string) error // Upload a artifact and assign it to a project. // (POST /api/project/{projectName}/artifacts) UploadArtifact(ctx echo.Context, projectName string) error // Returns a list of projects. // (GET /api/projects) GetProjects(ctx echo.Context) error // Create a new project. // (POST /api/projects) CreateProject(ctx echo.Context) error }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) CreateProject ¶
func (w *ServerInterfaceWrapper) CreateProject(ctx echo.Context) error
CreateProject converts echo context to params.
func (*ServerInterfaceWrapper) DeleteProject ¶
func (w *ServerInterfaceWrapper) DeleteProject(ctx echo.Context) error
DeleteProject converts echo context to params.
func (*ServerInterfaceWrapper) DeleteProjectArtifact ¶
func (w *ServerInterfaceWrapper) DeleteProjectArtifact(ctx echo.Context) error
DeleteProjectArtifact converts echo context to params.
func (*ServerInterfaceWrapper) GetHealth ¶
func (w *ServerInterfaceWrapper) GetHealth(ctx echo.Context) error
GetHealth converts echo context to params.
func (*ServerInterfaceWrapper) GetProject ¶
func (w *ServerInterfaceWrapper) GetProject(ctx echo.Context) error
GetProject converts echo context to params.
func (*ServerInterfaceWrapper) GetProjectArtifact ¶
func (w *ServerInterfaceWrapper) GetProjectArtifact(ctx echo.Context) error
GetProjectArtifact converts echo context to params.
func (*ServerInterfaceWrapper) GetProjectArtifacts ¶
func (w *ServerInterfaceWrapper) GetProjectArtifacts(ctx echo.Context) error
GetProjectArtifacts converts echo context to params.
func (*ServerInterfaceWrapper) GetProjects ¶
func (w *ServerInterfaceWrapper) GetProjects(ctx echo.Context) error
GetProjects converts echo context to params.
func (*ServerInterfaceWrapper) ProjectArtifactExists ¶
func (w *ServerInterfaceWrapper) ProjectArtifactExists(ctx echo.Context) error
ProjectArtifactExists converts echo context to params.
func (*ServerInterfaceWrapper) ProjectExists ¶
func (w *ServerInterfaceWrapper) ProjectExists(ctx echo.Context) error
ProjectExists converts echo context to params.
func (*ServerInterfaceWrapper) UploadArtifact ¶
func (w *ServerInterfaceWrapper) UploadArtifact(ctx echo.Context) error
UploadArtifact converts echo context to params.
type Success ¶
type Success struct {
Message string `json:"message"`
}
Success defines model for Success.
type UploadArtifactResponse ¶
func ParseUploadArtifactResponse ¶
func ParseUploadArtifactResponse(rsp *http.Response) (*UploadArtifactResponse, error)
ParseUploadArtifactResponse parses an HTTP response from a UploadArtifactWithResponse call
func (UploadArtifactResponse) Status ¶
func (r UploadArtifactResponse) Status() string
Status returns HTTPResponse.Status
func (UploadArtifactResponse) StatusCode ¶
func (r UploadArtifactResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode