Documentation ¶
Overview ¶
Package apis provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Package apis provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Package apis provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewCreateEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewCreateEnvironmentRequestWithBody(server string, teamName TeamName, projectName ProjectName, contentType string, ...) (*http.Request, error)
- func NewCreateProjectRequest(server string, teamName TeamName, body CreateProjectJSONRequestBody) (*http.Request, error)
- func NewCreateProjectRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateSnapshotRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewCreateSnapshotRequestWithBody(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewCreateTeamRequest(server string, body CreateTeamJSONRequestBody) (*http.Request, error)
- func NewCreateTeamRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewDeleteProjectRequest(server string, teamName TeamName, projectName ProjectName) (*http.Request, error)
- func NewDeleteSnapshotRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewDeleteTeamRequest(server string, teamName TeamName) (*http.Request, error)
- func NewGetEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewGetEnvironmentStateRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewGetEnvironmentsRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewGetHealthRequest(server string) (*http.Request, error)
- func NewGetProjectRequest(server string, teamName TeamName, projectName ProjectName) (*http.Request, error)
- func NewGetProjectsRequest(server string, teamName TeamName, params *GetProjectsParams) (*http.Request, error)
- func NewGetReadyRequest(server string) (*http.Request, error)
- func NewGetSnapshotRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewGetSnapshotsRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewGetStatesRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewGetTeamRequest(server string, teamName TeamName) (*http.Request, error)
- func NewGetTeamsRequest(server string, params *GetTeamsParams) (*http.Request, error)
- func NewLockEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewLockEnvironmentRequestWithBody(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewUnlockEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewUnlockEnvironmentRequestWithBody(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewUpdateEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewUpdateEnvironmentRequestWithBody(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewUpdateEnvironmentStateRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewUpdateEnvironmentStateRequestWithBody(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewUpdateProjectRequest(server string, teamName TeamName, projectName ProjectName, ...) (*http.Request, error)
- func NewUpdateProjectRequestWithBody(server string, teamName TeamName, projectName ProjectName, contentType string, ...) (*http.Request, error)
- func NewUpdateTeamRequest(server string, teamName TeamName, body UpdateTeamJSONRequestBody) (*http.Request, error)
- func NewUpdateTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router fiber.Router, si ServerInterface)
- func RegisterHandlersWithOptions(router fiber.Router, si ServerInterface, options FiberServerOptions)
- type Client
- func (c *Client) CreateEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) CreateEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) CreateProject(ctx context.Context, teamName TeamName, body CreateProjectJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateProjectWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) CreateSnapshotWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) DeleteProject(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) DeleteSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) DeleteTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) GetEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) GetEnvironments(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetProject(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) GetProjects(ctx context.Context, teamName TeamName, params *GetProjectsParams, ...) (*http.Response, error)
- func (c *Client) GetReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) GetSnapshots(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) GetStates(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) GetTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTeams(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) LockEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) UnlockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) UnlockEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) UpdateEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) UpdateEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) UpdateEnvironmentStateWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) UpdateEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) UpdateProject(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) UpdateProjectWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*http.Response, error)
- func (c *Client) UpdateTeam(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*CreateEnvironmentResponse, error)
- func (c *ClientWithResponses) CreateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*CreateEnvironmentResponse, error)
- func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, ...) (*CreateProjectResponse, error)
- func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, teamName TeamName, body CreateProjectJSONRequestBody, ...) (*CreateProjectResponse, error)
- func (c *ClientWithResponses) CreateSnapshotWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*CreateSnapshotResponse, error)
- func (c *ClientWithResponses) CreateSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*CreateSnapshotResponse, error)
- func (c *ClientWithResponses) CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateTeamResponse, error)
- func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, ...) (*CreateTeamResponse, error)
- func (c *ClientWithResponses) DeleteEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*DeleteEnvironmentResponse, error)
- func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*DeleteProjectResponse, error)
- func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*DeleteSnapshotResponse, error)
- func (c *ClientWithResponses) DeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error)
- func (c *ClientWithResponses) GetEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*GetEnvironmentStateResponse, error)
- func (c *ClientWithResponses) GetEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*GetEnvironmentResponse, error)
- func (c *ClientWithResponses) GetEnvironmentsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*GetEnvironmentsResponse, error)
- func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
- func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*GetProjectResponse, error)
- func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, teamName TeamName, params *GetProjectsParams, ...) (*GetProjectsResponse, error)
- func (c *ClientWithResponses) GetReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyResponse, error)
- func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*GetSnapshotResponse, error)
- func (c *ClientWithResponses) GetSnapshotsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*GetSnapshotsResponse, error)
- func (c *ClientWithResponses) GetStatesWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*GetStatesResponse, error)
- func (c *ClientWithResponses) GetTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)
- func (c *ClientWithResponses) GetTeamsWithResponse(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*GetTeamsResponse, error)
- func (c *ClientWithResponses) LockEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*LockEnvironmentResponse, error)
- func (c *ClientWithResponses) LockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*LockEnvironmentResponse, error)
- func (c *ClientWithResponses) UnlockEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*UnlockEnvironmentResponse, error)
- func (c *ClientWithResponses) UnlockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*UnlockEnvironmentResponse, error)
- func (c *ClientWithResponses) UpdateEnvironmentStateWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*UpdateEnvironmentStateResponse, error)
- func (c *ClientWithResponses) UpdateEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*UpdateEnvironmentStateResponse, error)
- func (c *ClientWithResponses) UpdateEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*UpdateEnvironmentResponse, error)
- func (c *ClientWithResponses) UpdateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*UpdateEnvironmentResponse, error)
- func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*UpdateProjectResponse, error)
- func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, ...) (*UpdateProjectResponse, error)
- func (c *ClientWithResponses) UpdateTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, ...) (*UpdateTeamResponse, error)
- func (c *ClientWithResponses) UpdateTeamWithResponse(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, ...) (*UpdateTeamResponse, error)
- type ClientWithResponsesInterface
- type CreateEnvironment201JSONResponse
- type CreateEnvironment500JSONResponse
- type CreateEnvironmentJSONRequestBody
- type CreateEnvironmentRequestObject
- type CreateEnvironmentResponse
- type CreateEnvironmentResponseObject
- type CreateProject201JSONResponse
- type CreateProject500JSONResponse
- type CreateProjectJSONRequestBody
- type CreateProjectRequestObject
- type CreateProjectResponse
- type CreateProjectResponseObject
- type CreateSnapshot201JSONResponse
- type CreateSnapshot500JSONResponse
- type CreateSnapshotJSONRequestBody
- type CreateSnapshotRequestObject
- type CreateSnapshotResponse
- type CreateSnapshotResponseObject
- type CreateTeam201JSONResponse
- type CreateTeam500JSONResponse
- type CreateTeamJSONRequestBody
- type CreateTeamRequestObject
- type CreateTeamResponse
- type CreateTeamResponseObject
- type DeleteEnvironment204Response
- type DeleteEnvironment404JSONResponse
- type DeleteEnvironment500JSONResponse
- type DeleteEnvironmentRequestObject
- type DeleteEnvironmentResponse
- type DeleteEnvironmentResponseObject
- type DeleteProject204Response
- type DeleteProject404JSONResponse
- type DeleteProject500JSONResponse
- type DeleteProjectRequestObject
- type DeleteProjectResponse
- type DeleteProjectResponseObject
- type DeleteSnapshot204Response
- type DeleteSnapshot404JSONResponse
- type DeleteSnapshot500JSONResponse
- type DeleteSnapshotRequestObject
- type DeleteSnapshotResponse
- type DeleteSnapshotResponseObject
- type DeleteTeam204Response
- type DeleteTeam404JSONResponse
- type DeleteTeam500JSONResponse
- type DeleteTeamRequestObject
- type DeleteTeamResponse
- type DeleteTeamResponseObject
- type Environment
- type EnvironmentCreate
- type EnvironmentName
- type EnvironmentUpdate
- type ErrorResponse
- type FiberServerOptions
- type GetEnvironment200JSONResponse
- type GetEnvironment404JSONResponse
- type GetEnvironment500JSONResponse
- type GetEnvironmentRequestObject
- type GetEnvironmentResponse
- type GetEnvironmentResponseObject
- type GetEnvironmentState200JSONResponse
- type GetEnvironmentState404JSONResponse
- type GetEnvironmentState500JSONResponse
- type GetEnvironmentStateRequestObject
- type GetEnvironmentStateResponse
- type GetEnvironmentStateResponseObject
- type GetEnvironments200JSONResponse
- type GetEnvironments500JSONResponse
- type GetEnvironmentsParams
- type GetEnvironmentsRequestObject
- type GetEnvironmentsResponse
- type GetEnvironmentsResponseObject
- type GetHealth200JSONResponse
- type GetHealth500JSONResponse
- type GetHealthRequestObject
- type GetHealthResponse
- type GetHealthResponseObject
- type GetProject200JSONResponse
- type GetProject404JSONResponse
- type GetProject500JSONResponse
- type GetProjectRequestObject
- type GetProjectResponse
- type GetProjectResponseObject
- type GetProjects200JSONResponse
- type GetProjects500JSONResponse
- type GetProjectsParams
- type GetProjectsRequestObject
- type GetProjectsResponse
- type GetProjectsResponseObject
- type GetReady200JSONResponse
- type GetReady500JSONResponse
- type GetReadyRequestObject
- type GetReadyResponse
- type GetReadyResponseObject
- type GetSnapshot200JSONResponse
- type GetSnapshot404JSONResponse
- type GetSnapshot500JSONResponse
- type GetSnapshotRequestObject
- type GetSnapshotResponse
- type GetSnapshotResponseObject
- type GetSnapshots200JSONResponse
- type GetSnapshots500JSONResponse
- type GetSnapshotsParams
- type GetSnapshotsRequestObject
- type GetSnapshotsResponse
- type GetSnapshotsResponseObject
- type GetStates200JSONResponse
- type GetStates404JSONResponse
- type GetStates500JSONResponse
- type GetStatesParams
- type GetStatesRequestObject
- type GetStatesResponse
- type GetStatesResponseObject
- type GetTeam200JSONResponse
- type GetTeam404JSONResponse
- type GetTeam500JSONResponse
- type GetTeamRequestObject
- type GetTeamResponse
- type GetTeamResponseObject
- type GetTeams200JSONResponse
- type GetTeams500JSONResponse
- type GetTeamsParams
- type GetTeamsRequestObject
- type GetTeamsResponse
- type GetTeamsResponseObject
- type HealthResponse
- type HttpRequestDoer
- type Limit
- type LockEnvironment200JSONResponse
- type LockEnvironment404JSONResponse
- type LockEnvironment500JSONResponse
- type LockEnvironmentJSONRequestBody
- type LockEnvironmentRequestObject
- type LockEnvironmentResponse
- type LockEnvironmentResponseObject
- type LockInfo
- type MiddlewareFunc
- type Offset
- type Payload
- type Project
- type ProjectCreate
- type ProjectName
- type ProjectUpdate
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) CreateEnvironment(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) CreateProject(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) CreateSnapshot(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) CreateTeam(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) DeleteEnvironment(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) DeleteProject(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) DeleteSnapshot(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) DeleteTeam(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetEnvironment(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetEnvironmentState(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetEnvironments(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetHealth(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetProject(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetProjects(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetReady(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetSnapshot(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetSnapshots(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetStates(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetTeam(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) GetTeams(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) LockEnvironment(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) UnlockEnvironment(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) UpdateEnvironment(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) UpdateEnvironmentState(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) UpdateProject(c *fiber.Ctx) error
- func (siw *ServerInterfaceWrapper) UpdateTeam(c *fiber.Ctx) error
- type Snapshot
- type SnapshotCreate
- type SnapshotId
- type SnapshotUpdate
- type State
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type Team
- type TeamCreate
- type TeamName
- type TeamUpdate
- type UnlockEnvironment200Response
- type UnlockEnvironment204Response
- type UnlockEnvironment404JSONResponse
- type UnlockEnvironment500JSONResponse
- type UnlockEnvironmentJSONRequestBody
- type UnlockEnvironmentRequestObject
- type UnlockEnvironmentResponse
- type UnlockEnvironmentResponseObject
- type UpdateEnvironment200JSONResponse
- type UpdateEnvironment404JSONResponse
- type UpdateEnvironment500JSONResponse
- type UpdateEnvironmentJSONRequestBody
- type UpdateEnvironmentRequestObject
- type UpdateEnvironmentResponse
- type UpdateEnvironmentResponseObject
- type UpdateEnvironmentState200JSONResponse
- type UpdateEnvironmentState404JSONResponse
- type UpdateEnvironmentState500JSONResponse
- type UpdateEnvironmentStateJSONRequestBody
- type UpdateEnvironmentStateRequestObject
- type UpdateEnvironmentStateResponse
- type UpdateEnvironmentStateResponseObject
- type UpdateProject200JSONResponse
- type UpdateProject404JSONResponse
- type UpdateProject500JSONResponse
- type UpdateProjectJSONRequestBody
- type UpdateProjectRequestObject
- type UpdateProjectResponse
- type UpdateProjectResponseObject
- type UpdateTeam200JSONResponse
- type UpdateTeam404JSONResponse
- type UpdateTeam500JSONResponse
- type UpdateTeamJSONRequestBody
- type UpdateTeamRequestObject
- type UpdateTeamResponse
- type UpdateTeamResponseObject
Constants ¶
const ( BasicAuthScopes = "basicAuth.Scopes" OpenIdScopes = "openId.Scopes" )
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewCreateEnvironmentRequest ¶
func NewCreateEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, body CreateEnvironmentJSONRequestBody) (*http.Request, error)
NewCreateEnvironmentRequest calls the generic CreateEnvironment builder with application/json body
func NewCreateEnvironmentRequestWithBody ¶
func NewCreateEnvironmentRequestWithBody(server string, teamName TeamName, projectName ProjectName, contentType string, body io.Reader) (*http.Request, error)
NewCreateEnvironmentRequestWithBody generates requests for CreateEnvironment with any type of body
func NewCreateProjectRequest ¶
func NewCreateProjectRequest(server string, teamName TeamName, body CreateProjectJSONRequestBody) (*http.Request, error)
NewCreateProjectRequest calls the generic CreateProject builder with application/json body
func NewCreateProjectRequestWithBody ¶
func NewCreateProjectRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error)
NewCreateProjectRequestWithBody generates requests for CreateProject with any type of body
func NewCreateSnapshotRequest ¶
func NewCreateSnapshotRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body CreateSnapshotJSONRequestBody) (*http.Request, error)
NewCreateSnapshotRequest calls the generic CreateSnapshot builder with application/json body
func NewCreateSnapshotRequestWithBody ¶
func NewCreateSnapshotRequestWithBody(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader) (*http.Request, error)
NewCreateSnapshotRequestWithBody generates requests for CreateSnapshot with any type of body
func NewCreateTeamRequest ¶
func NewCreateTeamRequest(server string, body CreateTeamJSONRequestBody) (*http.Request, error)
NewCreateTeamRequest calls the generic CreateTeam builder with application/json body
func NewCreateTeamRequestWithBody ¶
func NewCreateTeamRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateTeamRequestWithBody generates requests for CreateTeam with any type of body
func NewDeleteEnvironmentRequest ¶
func NewDeleteEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) (*http.Request, error)
NewDeleteEnvironmentRequest generates requests for DeleteEnvironment
func NewDeleteProjectRequest ¶
func NewDeleteProjectRequest(server string, teamName TeamName, projectName ProjectName) (*http.Request, error)
NewDeleteProjectRequest generates requests for DeleteProject
func NewDeleteSnapshotRequest ¶
func NewDeleteSnapshotRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId) (*http.Request, error)
NewDeleteSnapshotRequest generates requests for DeleteSnapshot
func NewDeleteTeamRequest ¶
NewDeleteTeamRequest generates requests for DeleteTeam
func NewGetEnvironmentRequest ¶
func NewGetEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) (*http.Request, error)
NewGetEnvironmentRequest generates requests for GetEnvironment
func NewGetEnvironmentStateRequest ¶
func NewGetEnvironmentStateRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) (*http.Request, error)
NewGetEnvironmentStateRequest generates requests for GetEnvironmentState
func NewGetEnvironmentsRequest ¶
func NewGetEnvironmentsRequest(server string, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams) (*http.Request, error)
NewGetEnvironmentsRequest generates requests for GetEnvironments
func NewGetHealthRequest ¶
NewGetHealthRequest generates requests for GetHealth
func NewGetProjectRequest ¶
func NewGetProjectRequest(server string, teamName TeamName, projectName ProjectName) (*http.Request, error)
NewGetProjectRequest generates requests for GetProject
func NewGetProjectsRequest ¶
func NewGetProjectsRequest(server string, teamName TeamName, params *GetProjectsParams) (*http.Request, error)
NewGetProjectsRequest generates requests for GetProjects
func NewGetReadyRequest ¶
NewGetReadyRequest generates requests for GetReady
func NewGetSnapshotRequest ¶
func NewGetSnapshotRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId) (*http.Request, error)
NewGetSnapshotRequest generates requests for GetSnapshot
func NewGetSnapshotsRequest ¶
func NewGetSnapshotsRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams) (*http.Request, error)
NewGetSnapshotsRequest generates requests for GetSnapshots
func NewGetStatesRequest ¶
func NewGetStatesRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetStatesParams) (*http.Request, error)
NewGetStatesRequest generates requests for GetStates
func NewGetTeamRequest ¶
NewGetTeamRequest generates requests for GetTeam
func NewGetTeamsRequest ¶
func NewGetTeamsRequest(server string, params *GetTeamsParams) (*http.Request, error)
NewGetTeamsRequest generates requests for GetTeams
func NewLockEnvironmentRequest ¶
func NewLockEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body LockEnvironmentJSONRequestBody) (*http.Request, error)
NewLockEnvironmentRequest calls the generic LockEnvironment builder with application/json body
func NewLockEnvironmentRequestWithBody ¶
func NewLockEnvironmentRequestWithBody(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader) (*http.Request, error)
NewLockEnvironmentRequestWithBody generates requests for LockEnvironment with any type of body
func NewUnlockEnvironmentRequest ¶
func NewUnlockEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UnlockEnvironmentJSONRequestBody) (*http.Request, error)
NewUnlockEnvironmentRequest calls the generic UnlockEnvironment builder with application/json body
func NewUnlockEnvironmentRequestWithBody ¶
func NewUnlockEnvironmentRequestWithBody(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader) (*http.Request, error)
NewUnlockEnvironmentRequestWithBody generates requests for UnlockEnvironment with any type of body
func NewUpdateEnvironmentRequest ¶
func NewUpdateEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentJSONRequestBody) (*http.Request, error)
NewUpdateEnvironmentRequest calls the generic UpdateEnvironment builder with application/json body
func NewUpdateEnvironmentRequestWithBody ¶
func NewUpdateEnvironmentRequestWithBody(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader) (*http.Request, error)
NewUpdateEnvironmentRequestWithBody generates requests for UpdateEnvironment with any type of body
func NewUpdateEnvironmentStateRequest ¶
func NewUpdateEnvironmentStateRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentStateJSONRequestBody) (*http.Request, error)
NewUpdateEnvironmentStateRequest calls the generic UpdateEnvironmentState builder with application/json body
func NewUpdateEnvironmentStateRequestWithBody ¶
func NewUpdateEnvironmentStateRequestWithBody(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader) (*http.Request, error)
NewUpdateEnvironmentStateRequestWithBody generates requests for UpdateEnvironmentState with any type of body
func NewUpdateProjectRequest ¶
func NewUpdateProjectRequest(server string, teamName TeamName, projectName ProjectName, body UpdateProjectJSONRequestBody) (*http.Request, error)
NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body
func NewUpdateProjectRequestWithBody ¶
func NewUpdateProjectRequestWithBody(server string, teamName TeamName, projectName ProjectName, contentType string, body io.Reader) (*http.Request, error)
NewUpdateProjectRequestWithBody generates requests for UpdateProject with any type of body
func NewUpdateTeamRequest ¶
func NewUpdateTeamRequest(server string, teamName TeamName, body UpdateTeamJSONRequestBody) (*http.Request, error)
NewUpdateTeamRequest calls the generic UpdateTeam builder with application/json body
func NewUpdateTeamRequestWithBody ¶
func NewUpdateTeamRequestWithBody(server string, teamName TeamName, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTeamRequestWithBody generates requests for UpdateTeam with any type of body
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router fiber.Router, si ServerInterface)
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router fiber.Router, si ServerInterface, options FiberServerOptions)
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
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) CreateEnvironment ¶
func (c *Client) CreateEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEnvironmentWithBody ¶
func (*Client) CreateProject ¶
func (c *Client) CreateProject(ctx context.Context, teamName TeamName, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateProjectWithBody ¶
func (*Client) CreateSnapshot ¶
func (c *Client) CreateSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateSnapshotWithBody ¶
func (c *Client) CreateSnapshotWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTeam ¶
func (c *Client) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTeamWithBody ¶
func (*Client) DeleteEnvironment ¶
func (c *Client) DeleteEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteProject ¶
func (c *Client) DeleteProject(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteSnapshot ¶
func (c *Client) DeleteSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteTeam ¶
func (*Client) GetEnvironment ¶
func (c *Client) GetEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEnvironmentState ¶
func (c *Client) GetEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEnvironments ¶
func (c *Client) GetEnvironments(ctx context.Context, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProject ¶
func (c *Client) GetProject(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetProjects ¶
func (c *Client) GetProjects(ctx context.Context, teamName TeamName, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSnapshot ¶
func (c *Client) GetSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetSnapshots ¶
func (c *Client) GetSnapshots(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetStates ¶
func (c *Client) GetStates(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetStatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTeams ¶
func (c *Client) GetTeams(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LockEnvironment ¶
func (c *Client) LockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body LockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LockEnvironmentWithBody ¶
func (c *Client) LockEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnlockEnvironment ¶
func (c *Client) UnlockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UnlockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UnlockEnvironmentWithBody ¶
func (c *Client) UnlockEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateEnvironment ¶
func (c *Client) UpdateEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateEnvironmentState ¶
func (c *Client) UpdateEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateEnvironmentStateWithBody ¶
func (c *Client) UpdateEnvironmentStateWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateEnvironmentWithBody ¶
func (c *Client) UpdateEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateProject ¶
func (c *Client) UpdateProject(ctx context.Context, teamName TeamName, projectName ProjectName, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateProjectWithBody ¶
func (*Client) UpdateTeam ¶
func (c *Client) UpdateTeam(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // GetHealth request GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // GetReady request GetReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) // LockEnvironmentWithBody request with any body LockEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) LockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body LockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEnvironmentState request GetEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateEnvironmentStateWithBody request with any body UpdateEnvironmentStateWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // UnlockEnvironmentWithBody request with any body UnlockEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UnlockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UnlockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTeams request GetTeams(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateTeamWithBody request with any body CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteTeam request DeleteTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) // GetTeam request GetTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateTeamWithBody request with any body UpdateTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateTeam(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProjects request GetProjects(ctx context.Context, teamName TeamName, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateProjectWithBody request with any body CreateProjectWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateProject(ctx context.Context, teamName TeamName, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteProject request DeleteProject(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error) // GetProject request GetProject(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateProjectWithBody request with any body UpdateProjectWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateProject(ctx context.Context, teamName TeamName, projectName ProjectName, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEnvironments request GetEnvironments(ctx context.Context, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateEnvironmentWithBody request with any body CreateEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteEnvironment request DeleteEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error) // GetEnvironment request GetEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error) // UpdateEnvironmentWithBody request with any body UpdateEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) UpdateEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSnapshots request GetSnapshots(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error) // CreateSnapshotWithBody request with any body CreateSnapshotWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) CreateSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteSnapshot request DeleteSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error) // GetSnapshot request GetSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error) // GetStates request GetStates(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetStatesParams, 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) CreateEnvironmentWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)
CreateEnvironmentWithBodyWithResponse request with arbitrary body returning *CreateEnvironmentResponse
func (*ClientWithResponses) CreateEnvironmentWithResponse ¶
func (c *ClientWithResponses) CreateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)
func (*ClientWithResponses) CreateProjectWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, 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, teamName TeamName, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)
func (*ClientWithResponses) CreateSnapshotWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateSnapshotWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)
CreateSnapshotWithBodyWithResponse request with arbitrary body returning *CreateSnapshotResponse
func (*ClientWithResponses) CreateSnapshotWithResponse ¶
func (c *ClientWithResponses) CreateSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)
func (*ClientWithResponses) CreateTeamWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)
CreateTeamWithBodyWithResponse request with arbitrary body returning *CreateTeamResponse
func (*ClientWithResponses) CreateTeamWithResponse ¶
func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)
func (*ClientWithResponses) DeleteEnvironmentWithResponse ¶
func (c *ClientWithResponses) DeleteEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResponse, error)
DeleteEnvironmentWithResponse request returning *DeleteEnvironmentResponse
func (*ClientWithResponses) DeleteProjectWithResponse ¶
func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)
DeleteProjectWithResponse request returning *DeleteProjectResponse
func (*ClientWithResponses) DeleteSnapshotWithResponse ¶
func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)
DeleteSnapshotWithResponse request returning *DeleteSnapshotResponse
func (*ClientWithResponses) DeleteTeamWithResponse ¶
func (c *ClientWithResponses) DeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error)
DeleteTeamWithResponse request returning *DeleteTeamResponse
func (*ClientWithResponses) GetEnvironmentStateWithResponse ¶
func (c *ClientWithResponses) GetEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*GetEnvironmentStateResponse, error)
GetEnvironmentStateWithResponse request returning *GetEnvironmentStateResponse
func (*ClientWithResponses) GetEnvironmentWithResponse ¶
func (c *ClientWithResponses) GetEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*GetEnvironmentResponse, error)
GetEnvironmentWithResponse request returning *GetEnvironmentResponse
func (*ClientWithResponses) GetEnvironmentsWithResponse ¶
func (c *ClientWithResponses) GetEnvironmentsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams, reqEditors ...RequestEditorFn) (*GetEnvironmentsResponse, error)
GetEnvironmentsWithResponse request returning *GetEnvironmentsResponse
func (*ClientWithResponses) GetHealthWithResponse ¶
func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)
GetHealthWithResponse request returning *GetHealthResponse
func (*ClientWithResponses) GetProjectWithResponse ¶
func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)
GetProjectWithResponse request returning *GetProjectResponse
func (*ClientWithResponses) GetProjectsWithResponse ¶
func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, teamName TeamName, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)
GetProjectsWithResponse request returning *GetProjectsResponse
func (*ClientWithResponses) GetReadyWithResponse ¶
func (c *ClientWithResponses) GetReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyResponse, error)
GetReadyWithResponse request returning *GetReadyResponse
func (*ClientWithResponses) GetSnapshotWithResponse ¶
func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)
GetSnapshotWithResponse request returning *GetSnapshotResponse
func (*ClientWithResponses) GetSnapshotsWithResponse ¶
func (c *ClientWithResponses) GetSnapshotsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams, reqEditors ...RequestEditorFn) (*GetSnapshotsResponse, error)
GetSnapshotsWithResponse request returning *GetSnapshotsResponse
func (*ClientWithResponses) GetStatesWithResponse ¶
func (c *ClientWithResponses) GetStatesWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetStatesParams, reqEditors ...RequestEditorFn) (*GetStatesResponse, error)
GetStatesWithResponse request returning *GetStatesResponse
func (*ClientWithResponses) GetTeamWithResponse ¶
func (c *ClientWithResponses) GetTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)
GetTeamWithResponse request returning *GetTeamResponse
func (*ClientWithResponses) GetTeamsWithResponse ¶
func (c *ClientWithResponses) GetTeamsWithResponse(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*GetTeamsResponse, error)
GetTeamsWithResponse request returning *GetTeamsResponse
func (*ClientWithResponses) LockEnvironmentWithBodyWithResponse ¶
func (c *ClientWithResponses) LockEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LockEnvironmentResponse, error)
LockEnvironmentWithBodyWithResponse request with arbitrary body returning *LockEnvironmentResponse
func (*ClientWithResponses) LockEnvironmentWithResponse ¶
func (c *ClientWithResponses) LockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body LockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*LockEnvironmentResponse, error)
func (*ClientWithResponses) UnlockEnvironmentWithBodyWithResponse ¶
func (c *ClientWithResponses) UnlockEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnlockEnvironmentResponse, error)
UnlockEnvironmentWithBodyWithResponse request with arbitrary body returning *UnlockEnvironmentResponse
func (*ClientWithResponses) UnlockEnvironmentWithResponse ¶
func (c *ClientWithResponses) UnlockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UnlockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UnlockEnvironmentResponse, error)
func (*ClientWithResponses) UpdateEnvironmentStateWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateEnvironmentStateWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentStateResponse, error)
UpdateEnvironmentStateWithBodyWithResponse request with arbitrary body returning *UpdateEnvironmentStateResponse
func (*ClientWithResponses) UpdateEnvironmentStateWithResponse ¶
func (c *ClientWithResponses) UpdateEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentStateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentStateResponse, error)
func (*ClientWithResponses) UpdateEnvironmentWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)
UpdateEnvironmentWithBodyWithResponse request with arbitrary body returning *UpdateEnvironmentResponse
func (*ClientWithResponses) UpdateEnvironmentWithResponse ¶
func (c *ClientWithResponses) UpdateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)
func (*ClientWithResponses) UpdateProjectWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)
UpdateProjectWithBodyWithResponse request with arbitrary body returning *UpdateProjectResponse
func (*ClientWithResponses) UpdateProjectWithResponse ¶
func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)
func (*ClientWithResponses) UpdateTeamWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)
UpdateTeamWithBodyWithResponse request with arbitrary body returning *UpdateTeamResponse
func (*ClientWithResponses) UpdateTeamWithResponse ¶
func (c *ClientWithResponses) UpdateTeamWithResponse(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // GetHealthWithResponse request GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error) // GetReadyWithResponse request GetReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyResponse, error) // LockEnvironmentWithBodyWithResponse request with any body LockEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LockEnvironmentResponse, error) LockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body LockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*LockEnvironmentResponse, error) // GetEnvironmentStateWithResponse request GetEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*GetEnvironmentStateResponse, error) // UpdateEnvironmentStateWithBodyWithResponse request with any body UpdateEnvironmentStateWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentStateResponse, error) UpdateEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentStateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentStateResponse, error) // UnlockEnvironmentWithBodyWithResponse request with any body UnlockEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnlockEnvironmentResponse, error) UnlockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UnlockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UnlockEnvironmentResponse, error) // GetTeamsWithResponse request GetTeamsWithResponse(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*GetTeamsResponse, error) // CreateTeamWithBodyWithResponse request with any body CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) // DeleteTeamWithResponse request DeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error) // GetTeamWithResponse request GetTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetTeamResponse, error) // UpdateTeamWithBodyWithResponse request with any body UpdateTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error) UpdateTeamWithResponse(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error) // GetProjectsWithResponse request GetProjectsWithResponse(ctx context.Context, teamName TeamName, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error) // CreateProjectWithBodyWithResponse request with any body CreateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) CreateProjectWithResponse(ctx context.Context, teamName TeamName, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error) // DeleteProjectWithResponse request DeleteProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error) // GetProjectWithResponse request GetProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectResponse, error) // UpdateProjectWithBodyWithResponse request with any body UpdateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) UpdateProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error) // GetEnvironmentsWithResponse request GetEnvironmentsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams, reqEditors ...RequestEditorFn) (*GetEnvironmentsResponse, error) // CreateEnvironmentWithBodyWithResponse request with any body CreateEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error) CreateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error) // DeleteEnvironmentWithResponse request DeleteEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResponse, error) // GetEnvironmentWithResponse request GetEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*GetEnvironmentResponse, error) // UpdateEnvironmentWithBodyWithResponse request with any body UpdateEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error) UpdateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error) // GetSnapshotsWithResponse request GetSnapshotsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams, reqEditors ...RequestEditorFn) (*GetSnapshotsResponse, error) // CreateSnapshotWithBodyWithResponse request with any body CreateSnapshotWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error) CreateSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error) // DeleteSnapshotWithResponse request DeleteSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error) // GetSnapshotWithResponse request GetSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error) // GetStatesWithResponse request GetStatesWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetStatesParams, reqEditors ...RequestEditorFn) (*GetStatesResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateEnvironment201JSONResponse ¶
type CreateEnvironment201JSONResponse Environment
func (CreateEnvironment201JSONResponse) VisitCreateEnvironmentResponse ¶
func (response CreateEnvironment201JSONResponse) VisitCreateEnvironmentResponse(ctx *fiber.Ctx) error
type CreateEnvironment500JSONResponse ¶
type CreateEnvironment500JSONResponse ErrorResponse
func (CreateEnvironment500JSONResponse) VisitCreateEnvironmentResponse ¶
func (response CreateEnvironment500JSONResponse) VisitCreateEnvironmentResponse(ctx *fiber.Ctx) error
type CreateEnvironmentJSONRequestBody ¶
type CreateEnvironmentJSONRequestBody = EnvironmentCreate
CreateEnvironmentJSONRequestBody defines body for CreateEnvironment for application/json ContentType.
type CreateEnvironmentRequestObject ¶
type CreateEnvironmentRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` Body *CreateEnvironmentJSONRequestBody }
type CreateEnvironmentResponse ¶
type CreateEnvironmentResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Environment JSON500 *ErrorResponse }
func ParseCreateEnvironmentResponse ¶
func ParseCreateEnvironmentResponse(rsp *http.Response) (*CreateEnvironmentResponse, error)
ParseCreateEnvironmentResponse parses an HTTP response from a CreateEnvironmentWithResponse call
func (CreateEnvironmentResponse) Status ¶
func (r CreateEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEnvironmentResponse) StatusCode ¶
func (r CreateEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateEnvironmentResponseObject ¶
type CreateEnvironmentResponseObject interface {
VisitCreateEnvironmentResponse(ctx *fiber.Ctx) error
}
type CreateProject201JSONResponse ¶
type CreateProject201JSONResponse Project
func (CreateProject201JSONResponse) VisitCreateProjectResponse ¶
func (response CreateProject201JSONResponse) VisitCreateProjectResponse(ctx *fiber.Ctx) error
type CreateProject500JSONResponse ¶
type CreateProject500JSONResponse ErrorResponse
func (CreateProject500JSONResponse) VisitCreateProjectResponse ¶
func (response CreateProject500JSONResponse) VisitCreateProjectResponse(ctx *fiber.Ctx) error
type CreateProjectJSONRequestBody ¶
type CreateProjectJSONRequestBody = ProjectCreate
CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType.
type CreateProjectRequestObject ¶
type CreateProjectRequestObject struct { TeamName TeamName `json:"teamName"` Body *CreateProjectJSONRequestBody }
type CreateProjectResponse ¶
type CreateProjectResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Project JSON500 *ErrorResponse }
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 CreateProjectResponseObject ¶
type CreateProjectResponseObject interface {
VisitCreateProjectResponse(ctx *fiber.Ctx) error
}
type CreateSnapshot201JSONResponse ¶
type CreateSnapshot201JSONResponse Snapshot
func (CreateSnapshot201JSONResponse) VisitCreateSnapshotResponse ¶
func (response CreateSnapshot201JSONResponse) VisitCreateSnapshotResponse(ctx *fiber.Ctx) error
type CreateSnapshot500JSONResponse ¶
type CreateSnapshot500JSONResponse ErrorResponse
func (CreateSnapshot500JSONResponse) VisitCreateSnapshotResponse ¶
func (response CreateSnapshot500JSONResponse) VisitCreateSnapshotResponse(ctx *fiber.Ctx) error
type CreateSnapshotJSONRequestBody ¶
type CreateSnapshotJSONRequestBody = SnapshotCreate
CreateSnapshotJSONRequestBody defines body for CreateSnapshot for application/json ContentType.
type CreateSnapshotRequestObject ¶
type CreateSnapshotRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` Body *CreateSnapshotJSONRequestBody }
type CreateSnapshotResponse ¶
type CreateSnapshotResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Snapshot JSON500 *ErrorResponse }
func ParseCreateSnapshotResponse ¶
func ParseCreateSnapshotResponse(rsp *http.Response) (*CreateSnapshotResponse, error)
ParseCreateSnapshotResponse parses an HTTP response from a CreateSnapshotWithResponse call
func (CreateSnapshotResponse) Status ¶
func (r CreateSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (CreateSnapshotResponse) StatusCode ¶
func (r CreateSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateSnapshotResponseObject ¶
type CreateSnapshotResponseObject interface {
VisitCreateSnapshotResponse(ctx *fiber.Ctx) error
}
type CreateTeam201JSONResponse ¶
type CreateTeam201JSONResponse Team
func (CreateTeam201JSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam201JSONResponse) VisitCreateTeamResponse(ctx *fiber.Ctx) error
type CreateTeam500JSONResponse ¶
type CreateTeam500JSONResponse ErrorResponse
func (CreateTeam500JSONResponse) VisitCreateTeamResponse ¶
func (response CreateTeam500JSONResponse) VisitCreateTeamResponse(ctx *fiber.Ctx) error
type CreateTeamJSONRequestBody ¶
type CreateTeamJSONRequestBody = TeamCreate
CreateTeamJSONRequestBody defines body for CreateTeam for application/json ContentType.
type CreateTeamRequestObject ¶
type CreateTeamRequestObject struct {
Body *CreateTeamJSONRequestBody
}
type CreateTeamResponse ¶
type CreateTeamResponse struct { Body []byte HTTPResponse *http.Response JSON201 *Team JSON500 *ErrorResponse }
func ParseCreateTeamResponse ¶
func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error)
ParseCreateTeamResponse parses an HTTP response from a CreateTeamWithResponse call
func (CreateTeamResponse) Status ¶
func (r CreateTeamResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTeamResponse) StatusCode ¶
func (r CreateTeamResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTeamResponseObject ¶
type CreateTeamResponseObject interface {
VisitCreateTeamResponse(ctx *fiber.Ctx) error
}
type DeleteEnvironment204Response ¶
type DeleteEnvironment204Response struct { }
func (DeleteEnvironment204Response) VisitDeleteEnvironmentResponse ¶
func (response DeleteEnvironment204Response) VisitDeleteEnvironmentResponse(ctx *fiber.Ctx) error
type DeleteEnvironment404JSONResponse ¶
type DeleteEnvironment404JSONResponse ErrorResponse
func (DeleteEnvironment404JSONResponse) VisitDeleteEnvironmentResponse ¶
func (response DeleteEnvironment404JSONResponse) VisitDeleteEnvironmentResponse(ctx *fiber.Ctx) error
type DeleteEnvironment500JSONResponse ¶
type DeleteEnvironment500JSONResponse ErrorResponse
func (DeleteEnvironment500JSONResponse) VisitDeleteEnvironmentResponse ¶
func (response DeleteEnvironment500JSONResponse) VisitDeleteEnvironmentResponse(ctx *fiber.Ctx) error
type DeleteEnvironmentRequestObject ¶
type DeleteEnvironmentRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` }
type DeleteEnvironmentResponse ¶
type DeleteEnvironmentResponse struct { Body []byte HTTPResponse *http.Response JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseDeleteEnvironmentResponse ¶
func ParseDeleteEnvironmentResponse(rsp *http.Response) (*DeleteEnvironmentResponse, error)
ParseDeleteEnvironmentResponse parses an HTTP response from a DeleteEnvironmentWithResponse call
func (DeleteEnvironmentResponse) Status ¶
func (r DeleteEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteEnvironmentResponse) StatusCode ¶
func (r DeleteEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteEnvironmentResponseObject ¶
type DeleteEnvironmentResponseObject interface {
VisitDeleteEnvironmentResponse(ctx *fiber.Ctx) error
}
type DeleteProject204Response ¶
type DeleteProject204Response struct { }
func (DeleteProject204Response) VisitDeleteProjectResponse ¶
func (response DeleteProject204Response) VisitDeleteProjectResponse(ctx *fiber.Ctx) error
type DeleteProject404JSONResponse ¶
type DeleteProject404JSONResponse ErrorResponse
func (DeleteProject404JSONResponse) VisitDeleteProjectResponse ¶
func (response DeleteProject404JSONResponse) VisitDeleteProjectResponse(ctx *fiber.Ctx) error
type DeleteProject500JSONResponse ¶
type DeleteProject500JSONResponse ErrorResponse
func (DeleteProject500JSONResponse) VisitDeleteProjectResponse ¶
func (response DeleteProject500JSONResponse) VisitDeleteProjectResponse(ctx *fiber.Ctx) error
type DeleteProjectRequestObject ¶
type DeleteProjectRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` }
type DeleteProjectResponse ¶
type DeleteProjectResponse struct { Body []byte HTTPResponse *http.Response JSON404 *ErrorResponse JSON500 *ErrorResponse }
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 DeleteProjectResponseObject ¶
type DeleteProjectResponseObject interface {
VisitDeleteProjectResponse(ctx *fiber.Ctx) error
}
type DeleteSnapshot204Response ¶
type DeleteSnapshot204Response struct { }
func (DeleteSnapshot204Response) VisitDeleteSnapshotResponse ¶
func (response DeleteSnapshot204Response) VisitDeleteSnapshotResponse(ctx *fiber.Ctx) error
type DeleteSnapshot404JSONResponse ¶
type DeleteSnapshot404JSONResponse ErrorResponse
func (DeleteSnapshot404JSONResponse) VisitDeleteSnapshotResponse ¶
func (response DeleteSnapshot404JSONResponse) VisitDeleteSnapshotResponse(ctx *fiber.Ctx) error
type DeleteSnapshot500JSONResponse ¶
type DeleteSnapshot500JSONResponse ErrorResponse
func (DeleteSnapshot500JSONResponse) VisitDeleteSnapshotResponse ¶
func (response DeleteSnapshot500JSONResponse) VisitDeleteSnapshotResponse(ctx *fiber.Ctx) error
type DeleteSnapshotRequestObject ¶
type DeleteSnapshotRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` SnapshotId SnapshotId `json:"snapshotId"` }
type DeleteSnapshotResponse ¶
type DeleteSnapshotResponse struct { Body []byte HTTPResponse *http.Response JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseDeleteSnapshotResponse ¶
func ParseDeleteSnapshotResponse(rsp *http.Response) (*DeleteSnapshotResponse, error)
ParseDeleteSnapshotResponse parses an HTTP response from a DeleteSnapshotWithResponse call
func (DeleteSnapshotResponse) Status ¶
func (r DeleteSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSnapshotResponse) StatusCode ¶
func (r DeleteSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSnapshotResponseObject ¶
type DeleteSnapshotResponseObject interface {
VisitDeleteSnapshotResponse(ctx *fiber.Ctx) error
}
type DeleteTeam204Response ¶
type DeleteTeam204Response struct { }
func (DeleteTeam204Response) VisitDeleteTeamResponse ¶
func (response DeleteTeam204Response) VisitDeleteTeamResponse(ctx *fiber.Ctx) error
type DeleteTeam404JSONResponse ¶
type DeleteTeam404JSONResponse ErrorResponse
func (DeleteTeam404JSONResponse) VisitDeleteTeamResponse ¶
func (response DeleteTeam404JSONResponse) VisitDeleteTeamResponse(ctx *fiber.Ctx) error
type DeleteTeam500JSONResponse ¶
type DeleteTeam500JSONResponse ErrorResponse
func (DeleteTeam500JSONResponse) VisitDeleteTeamResponse ¶
func (response DeleteTeam500JSONResponse) VisitDeleteTeamResponse(ctx *fiber.Ctx) error
type DeleteTeamRequestObject ¶
type DeleteTeamRequestObject struct {
TeamName TeamName `json:"teamName"`
}
type DeleteTeamResponse ¶
type DeleteTeamResponse struct { Body []byte HTTPResponse *http.Response JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseDeleteTeamResponse ¶
func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error)
ParseDeleteTeamResponse parses an HTTP response from a DeleteTeamWithResponse call
func (DeleteTeamResponse) Status ¶
func (r DeleteTeamResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteTeamResponse) StatusCode ¶
func (r DeleteTeamResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteTeamResponseObject ¶
type DeleteTeamResponseObject interface {
VisitDeleteTeamResponse(ctx *fiber.Ctx) error
}
type Environment ¶
type Environment struct { CreatedAt *time.Time `json:"createdAt,omitempty"` Id *string `json:"id,omitempty"` IsLocked *bool `json:"isLocked,omitempty"` Name *string `json:"name,omitempty"` Project *struct { Id *string `json:"id,omitempty"` } `json:"project,omitempty"` Secret *string `json:"secret,omitempty"` StateVersion *int `json:"stateVersion,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` Username *string `json:"username,omitempty"` }
Environment defines model for Environment.
type EnvironmentCreate ¶
type EnvironmentCreate struct { Name *string `json:"name,omitempty"` Secret *string `json:"secret,omitempty"` Username *string `json:"username,omitempty"` }
EnvironmentCreate defines model for EnvironmentCreate.
type EnvironmentName ¶
type EnvironmentName = string
EnvironmentName defines model for environmentName.
type EnvironmentUpdate ¶
type EnvironmentUpdate struct { Name *string `json:"name,omitempty"` Secret *string `json:"secret,omitempty"` Username *string `json:"username,omitempty"` }
EnvironmentUpdate defines model for EnvironmentUpdate.
type ErrorResponse ¶
type ErrorResponse struct {
ErrorMessage *string `json:"errorMessage,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type FiberServerOptions ¶
type FiberServerOptions struct { BaseURL string Middlewares []MiddlewareFunc }
FiberServerOptions provides options for the Fiber server.
type GetEnvironment200JSONResponse ¶
type GetEnvironment200JSONResponse Environment
func (GetEnvironment200JSONResponse) VisitGetEnvironmentResponse ¶
func (response GetEnvironment200JSONResponse) VisitGetEnvironmentResponse(ctx *fiber.Ctx) error
type GetEnvironment404JSONResponse ¶
type GetEnvironment404JSONResponse ErrorResponse
func (GetEnvironment404JSONResponse) VisitGetEnvironmentResponse ¶
func (response GetEnvironment404JSONResponse) VisitGetEnvironmentResponse(ctx *fiber.Ctx) error
type GetEnvironment500JSONResponse ¶
type GetEnvironment500JSONResponse ErrorResponse
func (GetEnvironment500JSONResponse) VisitGetEnvironmentResponse ¶
func (response GetEnvironment500JSONResponse) VisitGetEnvironmentResponse(ctx *fiber.Ctx) error
type GetEnvironmentRequestObject ¶
type GetEnvironmentRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` }
type GetEnvironmentResponse ¶
type GetEnvironmentResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Environment JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseGetEnvironmentResponse ¶
func ParseGetEnvironmentResponse(rsp *http.Response) (*GetEnvironmentResponse, error)
ParseGetEnvironmentResponse parses an HTTP response from a GetEnvironmentWithResponse call
func (GetEnvironmentResponse) Status ¶
func (r GetEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (GetEnvironmentResponse) StatusCode ¶
func (r GetEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEnvironmentResponseObject ¶
type GetEnvironmentResponseObject interface {
VisitGetEnvironmentResponse(ctx *fiber.Ctx) error
}
type GetEnvironmentState200JSONResponse ¶
type GetEnvironmentState200JSONResponse Payload
func (GetEnvironmentState200JSONResponse) VisitGetEnvironmentStateResponse ¶
func (response GetEnvironmentState200JSONResponse) VisitGetEnvironmentStateResponse(ctx *fiber.Ctx) error
type GetEnvironmentState404JSONResponse ¶
type GetEnvironmentState404JSONResponse ErrorResponse
func (GetEnvironmentState404JSONResponse) VisitGetEnvironmentStateResponse ¶
func (response GetEnvironmentState404JSONResponse) VisitGetEnvironmentStateResponse(ctx *fiber.Ctx) error
type GetEnvironmentState500JSONResponse ¶
type GetEnvironmentState500JSONResponse ErrorResponse
func (GetEnvironmentState500JSONResponse) VisitGetEnvironmentStateResponse ¶
func (response GetEnvironmentState500JSONResponse) VisitGetEnvironmentStateResponse(ctx *fiber.Ctx) error
type GetEnvironmentStateRequestObject ¶
type GetEnvironmentStateRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` }
type GetEnvironmentStateResponse ¶
type GetEnvironmentStateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Payload JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseGetEnvironmentStateResponse ¶
func ParseGetEnvironmentStateResponse(rsp *http.Response) (*GetEnvironmentStateResponse, error)
ParseGetEnvironmentStateResponse parses an HTTP response from a GetEnvironmentStateWithResponse call
func (GetEnvironmentStateResponse) Status ¶
func (r GetEnvironmentStateResponse) Status() string
Status returns HTTPResponse.Status
func (GetEnvironmentStateResponse) StatusCode ¶
func (r GetEnvironmentStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEnvironmentStateResponseObject ¶
type GetEnvironmentStateResponseObject interface {
VisitGetEnvironmentStateResponse(ctx *fiber.Ctx) error
}
type GetEnvironments200JSONResponse ¶
type GetEnvironments200JSONResponse struct { Environments *[]Environment `json:"environments,omitempty"` Metadata *struct { Limit *int `json:"limit,omitempty"` Offset *int `json:"offset,omitempty"` TotalCount *int `json:"totalCount,omitempty"` } `json:"metadata,omitempty"` }
func (GetEnvironments200JSONResponse) VisitGetEnvironmentsResponse ¶
func (response GetEnvironments200JSONResponse) VisitGetEnvironmentsResponse(ctx *fiber.Ctx) error
type GetEnvironments500JSONResponse ¶
type GetEnvironments500JSONResponse ErrorResponse
func (GetEnvironments500JSONResponse) VisitGetEnvironmentsResponse ¶
func (response GetEnvironments500JSONResponse) VisitGetEnvironmentsResponse(ctx *fiber.Ctx) error
type GetEnvironmentsParams ¶
type GetEnvironmentsParams struct { Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` }
GetEnvironmentsParams defines parameters for GetEnvironments.
type GetEnvironmentsRequestObject ¶
type GetEnvironmentsRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` Params GetEnvironmentsParams }
type GetEnvironmentsResponse ¶
type GetEnvironmentsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Environments *[]Environment `json:"environments,omitempty"` Metadata *struct { Limit *int `json:"limit,omitempty"` Offset *int `json:"offset,omitempty"` TotalCount *int `json:"totalCount,omitempty"` } `json:"metadata,omitempty"` } JSON500 *ErrorResponse }
func ParseGetEnvironmentsResponse ¶
func ParseGetEnvironmentsResponse(rsp *http.Response) (*GetEnvironmentsResponse, error)
ParseGetEnvironmentsResponse parses an HTTP response from a GetEnvironmentsWithResponse call
func (GetEnvironmentsResponse) Status ¶
func (r GetEnvironmentsResponse) Status() string
Status returns HTTPResponse.Status
func (GetEnvironmentsResponse) StatusCode ¶
func (r GetEnvironmentsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEnvironmentsResponseObject ¶
type GetEnvironmentsResponseObject interface {
VisitGetEnvironmentsResponse(ctx *fiber.Ctx) error
}
type GetHealth200JSONResponse ¶
type GetHealth200JSONResponse HealthResponse
func (GetHealth200JSONResponse) VisitGetHealthResponse ¶
func (response GetHealth200JSONResponse) VisitGetHealthResponse(ctx *fiber.Ctx) error
type GetHealth500JSONResponse ¶
type GetHealth500JSONResponse HealthResponse
func (GetHealth500JSONResponse) VisitGetHealthResponse ¶
func (response GetHealth500JSONResponse) VisitGetHealthResponse(ctx *fiber.Ctx) error
type GetHealthRequestObject ¶
type GetHealthRequestObject struct { }
type GetHealthResponse ¶
type GetHealthResponse struct { Body []byte HTTPResponse *http.Response JSON200 *HealthResponse JSON500 *HealthResponse }
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 GetHealthResponseObject ¶
type GetHealthResponseObject interface {
VisitGetHealthResponse(ctx *fiber.Ctx) error
}
type GetProject200JSONResponse ¶
type GetProject200JSONResponse Project
func (GetProject200JSONResponse) VisitGetProjectResponse ¶
func (response GetProject200JSONResponse) VisitGetProjectResponse(ctx *fiber.Ctx) error
type GetProject404JSONResponse ¶
type GetProject404JSONResponse ErrorResponse
func (GetProject404JSONResponse) VisitGetProjectResponse ¶
func (response GetProject404JSONResponse) VisitGetProjectResponse(ctx *fiber.Ctx) error
type GetProject500JSONResponse ¶
type GetProject500JSONResponse ErrorResponse
func (GetProject500JSONResponse) VisitGetProjectResponse ¶
func (response GetProject500JSONResponse) VisitGetProjectResponse(ctx *fiber.Ctx) error
type GetProjectRequestObject ¶
type GetProjectRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` }
type GetProjectResponse ¶
type GetProjectResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Project JSON404 *ErrorResponse JSON500 *ErrorResponse }
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 GetProjectResponseObject ¶
type GetProjectResponseObject interface {
VisitGetProjectResponse(ctx *fiber.Ctx) error
}
type GetProjects200JSONResponse ¶
type GetProjects200JSONResponse struct { Metadata *struct { Limit *int `json:"limit,omitempty"` Offset *int `json:"offset,omitempty"` TotalCount *int `json:"totalCount,omitempty"` } `json:"metadata,omitempty"` Projects *[]Project `json:"projects,omitempty"` }
func (GetProjects200JSONResponse) VisitGetProjectsResponse ¶
func (response GetProjects200JSONResponse) VisitGetProjectsResponse(ctx *fiber.Ctx) error
type GetProjects500JSONResponse ¶
type GetProjects500JSONResponse ErrorResponse
func (GetProjects500JSONResponse) VisitGetProjectsResponse ¶
func (response GetProjects500JSONResponse) VisitGetProjectsResponse(ctx *fiber.Ctx) error
type GetProjectsParams ¶
type GetProjectsParams struct { Limit *int `form:"limit,omitempty" json:"limit,omitempty"` Offset *int `form:"offset,omitempty" json:"offset,omitempty"` }
GetProjectsParams defines parameters for GetProjects.
type GetProjectsRequestObject ¶
type GetProjectsRequestObject struct { TeamName TeamName `json:"teamName"` Params GetProjectsParams }
type GetProjectsResponse ¶
type GetProjectsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Metadata *struct { Limit *int `json:"limit,omitempty"` Offset *int `json:"offset,omitempty"` TotalCount *int `json:"totalCount,omitempty"` } `json:"metadata,omitempty"` Projects *[]Project `json:"projects,omitempty"` } JSON500 *ErrorResponse }
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 GetProjectsResponseObject ¶
type GetProjectsResponseObject interface {
VisitGetProjectsResponse(ctx *fiber.Ctx) error
}
type GetReady200JSONResponse ¶
type GetReady200JSONResponse HealthResponse
func (GetReady200JSONResponse) VisitGetReadyResponse ¶
func (response GetReady200JSONResponse) VisitGetReadyResponse(ctx *fiber.Ctx) error
type GetReady500JSONResponse ¶
type GetReady500JSONResponse HealthResponse
func (GetReady500JSONResponse) VisitGetReadyResponse ¶
func (response GetReady500JSONResponse) VisitGetReadyResponse(ctx *fiber.Ctx) error
type GetReadyRequestObject ¶
type GetReadyRequestObject struct { }
type GetReadyResponse ¶
type GetReadyResponse struct { Body []byte HTTPResponse *http.Response JSON200 *HealthResponse JSON500 *HealthResponse }
func ParseGetReadyResponse ¶
func ParseGetReadyResponse(rsp *http.Response) (*GetReadyResponse, error)
ParseGetReadyResponse parses an HTTP response from a GetReadyWithResponse call
func (GetReadyResponse) Status ¶
func (r GetReadyResponse) Status() string
Status returns HTTPResponse.Status
func (GetReadyResponse) StatusCode ¶
func (r GetReadyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetReadyResponseObject ¶
type GetReadyResponseObject interface {
VisitGetReadyResponse(ctx *fiber.Ctx) error
}
type GetSnapshot200JSONResponse ¶
type GetSnapshot200JSONResponse Snapshot
func (GetSnapshot200JSONResponse) VisitGetSnapshotResponse ¶
func (response GetSnapshot200JSONResponse) VisitGetSnapshotResponse(ctx *fiber.Ctx) error
type GetSnapshot404JSONResponse ¶
type GetSnapshot404JSONResponse ErrorResponse
func (GetSnapshot404JSONResponse) VisitGetSnapshotResponse ¶
func (response GetSnapshot404JSONResponse) VisitGetSnapshotResponse(ctx *fiber.Ctx) error
type GetSnapshot500JSONResponse ¶
type GetSnapshot500JSONResponse ErrorResponse
func (GetSnapshot500JSONResponse) VisitGetSnapshotResponse ¶
func (response GetSnapshot500JSONResponse) VisitGetSnapshotResponse(ctx *fiber.Ctx) error
type GetSnapshotRequestObject ¶
type GetSnapshotRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` SnapshotId SnapshotId `json:"snapshotId"` }
type GetSnapshotResponse ¶
type GetSnapshotResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Snapshot JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseGetSnapshotResponse ¶
func ParseGetSnapshotResponse(rsp *http.Response) (*GetSnapshotResponse, error)
ParseGetSnapshotResponse parses an HTTP response from a GetSnapshotWithResponse call
func (GetSnapshotResponse) Status ¶
func (r GetSnapshotResponse) Status() string
Status returns HTTPResponse.Status
func (GetSnapshotResponse) StatusCode ¶
func (r GetSnapshotResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSnapshotResponseObject ¶
type GetSnapshotResponseObject interface {
VisitGetSnapshotResponse(ctx *fiber.Ctx) error
}
type GetSnapshots200JSONResponse ¶
type GetSnapshots200JSONResponse struct { Metadata *struct { Limit *int `json:"limit,omitempty"` Offset *int `json:"offset,omitempty"` TotalCount *int `json:"totalCount,omitempty"` } `json:"metadata,omitempty"` Snapshots *[]Snapshot `json:"snapshots,omitempty"` }
func (GetSnapshots200JSONResponse) VisitGetSnapshotsResponse ¶
func (response GetSnapshots200JSONResponse) VisitGetSnapshotsResponse(ctx *fiber.Ctx) error
type GetSnapshots500JSONResponse ¶
type GetSnapshots500JSONResponse ErrorResponse
func (GetSnapshots500JSONResponse) VisitGetSnapshotsResponse ¶
func (response GetSnapshots500JSONResponse) VisitGetSnapshotsResponse(ctx *fiber.Ctx) error
type GetSnapshotsParams ¶
type GetSnapshotsParams struct { Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` }
GetSnapshotsParams defines parameters for GetSnapshots.
type GetSnapshotsRequestObject ¶
type GetSnapshotsRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` Params GetSnapshotsParams }
type GetSnapshotsResponse ¶
type GetSnapshotsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Metadata *struct { Limit *int `json:"limit,omitempty"` Offset *int `json:"offset,omitempty"` TotalCount *int `json:"totalCount,omitempty"` } `json:"metadata,omitempty"` Snapshots *[]Snapshot `json:"snapshots,omitempty"` } JSON500 *ErrorResponse }
func ParseGetSnapshotsResponse ¶
func ParseGetSnapshotsResponse(rsp *http.Response) (*GetSnapshotsResponse, error)
ParseGetSnapshotsResponse parses an HTTP response from a GetSnapshotsWithResponse call
func (GetSnapshotsResponse) Status ¶
func (r GetSnapshotsResponse) Status() string
Status returns HTTPResponse.Status
func (GetSnapshotsResponse) StatusCode ¶
func (r GetSnapshotsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetSnapshotsResponseObject ¶
type GetSnapshotsResponseObject interface {
VisitGetSnapshotsResponse(ctx *fiber.Ctx) error
}
type GetStates200JSONResponse ¶
type GetStates200JSONResponse struct {
States *[]State `json:"states,omitempty"`
}
func (GetStates200JSONResponse) VisitGetStatesResponse ¶
func (response GetStates200JSONResponse) VisitGetStatesResponse(ctx *fiber.Ctx) error
type GetStates404JSONResponse ¶
type GetStates404JSONResponse ErrorResponse
func (GetStates404JSONResponse) VisitGetStatesResponse ¶
func (response GetStates404JSONResponse) VisitGetStatesResponse(ctx *fiber.Ctx) error
type GetStates500JSONResponse ¶
type GetStates500JSONResponse ErrorResponse
func (GetStates500JSONResponse) VisitGetStatesResponse ¶
func (response GetStates500JSONResponse) VisitGetStatesResponse(ctx *fiber.Ctx) error
type GetStatesParams ¶
type GetStatesParams struct { Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` }
GetStatesParams defines parameters for GetStates.
type GetStatesRequestObject ¶
type GetStatesRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` Params GetStatesParams }
type GetStatesResponse ¶
type GetStatesResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { States *[]State `json:"states,omitempty"` } JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseGetStatesResponse ¶
func ParseGetStatesResponse(rsp *http.Response) (*GetStatesResponse, error)
ParseGetStatesResponse parses an HTTP response from a GetStatesWithResponse call
func (GetStatesResponse) Status ¶
func (r GetStatesResponse) Status() string
Status returns HTTPResponse.Status
func (GetStatesResponse) StatusCode ¶
func (r GetStatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStatesResponseObject ¶
type GetStatesResponseObject interface {
VisitGetStatesResponse(ctx *fiber.Ctx) error
}
type GetTeam200JSONResponse ¶
type GetTeam200JSONResponse Team
func (GetTeam200JSONResponse) VisitGetTeamResponse ¶
func (response GetTeam200JSONResponse) VisitGetTeamResponse(ctx *fiber.Ctx) error
type GetTeam404JSONResponse ¶
type GetTeam404JSONResponse ErrorResponse
func (GetTeam404JSONResponse) VisitGetTeamResponse ¶
func (response GetTeam404JSONResponse) VisitGetTeamResponse(ctx *fiber.Ctx) error
type GetTeam500JSONResponse ¶
type GetTeam500JSONResponse ErrorResponse
func (GetTeam500JSONResponse) VisitGetTeamResponse ¶
func (response GetTeam500JSONResponse) VisitGetTeamResponse(ctx *fiber.Ctx) error
type GetTeamRequestObject ¶
type GetTeamRequestObject struct {
TeamName TeamName `json:"teamName"`
}
type GetTeamResponse ¶
type GetTeamResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Team JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseGetTeamResponse ¶
func ParseGetTeamResponse(rsp *http.Response) (*GetTeamResponse, error)
ParseGetTeamResponse parses an HTTP response from a GetTeamWithResponse call
func (GetTeamResponse) Status ¶
func (r GetTeamResponse) Status() string
Status returns HTTPResponse.Status
func (GetTeamResponse) StatusCode ¶
func (r GetTeamResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTeamResponseObject ¶
type GetTeamResponseObject interface {
VisitGetTeamResponse(ctx *fiber.Ctx) error
}
type GetTeams200JSONResponse ¶
type GetTeams200JSONResponse struct { Metadata *struct { Limit *int `json:"limit,omitempty"` Offset *int `json:"offset,omitempty"` TotalCount *int `json:"totalCount,omitempty"` } `json:"metadata,omitempty"` Teams *[]Team `json:"teams,omitempty"` }
func (GetTeams200JSONResponse) VisitGetTeamsResponse ¶
func (response GetTeams200JSONResponse) VisitGetTeamsResponse(ctx *fiber.Ctx) error
type GetTeams500JSONResponse ¶
type GetTeams500JSONResponse ErrorResponse
func (GetTeams500JSONResponse) VisitGetTeamsResponse ¶
func (response GetTeams500JSONResponse) VisitGetTeamsResponse(ctx *fiber.Ctx) error
type GetTeamsParams ¶
type GetTeamsParams struct { Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` }
GetTeamsParams defines parameters for GetTeams.
type GetTeamsRequestObject ¶
type GetTeamsRequestObject struct {
Params GetTeamsParams
}
type GetTeamsResponse ¶
type GetTeamsResponse struct { Body []byte HTTPResponse *http.Response JSON200 *struct { Metadata *struct { Limit *int `json:"limit,omitempty"` Offset *int `json:"offset,omitempty"` TotalCount *int `json:"totalCount,omitempty"` } `json:"metadata,omitempty"` Teams *[]Team `json:"teams,omitempty"` } JSON500 *ErrorResponse }
func ParseGetTeamsResponse ¶
func ParseGetTeamsResponse(rsp *http.Response) (*GetTeamsResponse, error)
ParseGetTeamsResponse parses an HTTP response from a GetTeamsWithResponse call
func (GetTeamsResponse) Status ¶
func (r GetTeamsResponse) Status() string
Status returns HTTPResponse.Status
func (GetTeamsResponse) StatusCode ¶
func (r GetTeamsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTeamsResponseObject ¶
type GetTeamsResponseObject interface {
VisitGetTeamsResponse(ctx *fiber.Ctx) error
}
type HealthResponse ¶
type HealthResponse struct { ErrorMessage *string `json:"errorMessage,omitempty"` Status *string `json:"status,omitempty"` }
HealthResponse defines model for HealthResponse.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type LockEnvironment200JSONResponse ¶
type LockEnvironment200JSONResponse LockInfo
func (LockEnvironment200JSONResponse) VisitLockEnvironmentResponse ¶
func (response LockEnvironment200JSONResponse) VisitLockEnvironmentResponse(ctx *fiber.Ctx) error
type LockEnvironment404JSONResponse ¶
type LockEnvironment404JSONResponse ErrorResponse
func (LockEnvironment404JSONResponse) VisitLockEnvironmentResponse ¶
func (response LockEnvironment404JSONResponse) VisitLockEnvironmentResponse(ctx *fiber.Ctx) error
type LockEnvironment500JSONResponse ¶
type LockEnvironment500JSONResponse ErrorResponse
func (LockEnvironment500JSONResponse) VisitLockEnvironmentResponse ¶
func (response LockEnvironment500JSONResponse) VisitLockEnvironmentResponse(ctx *fiber.Ctx) error
type LockEnvironmentJSONRequestBody ¶
type LockEnvironmentJSONRequestBody = LockInfo
LockEnvironmentJSONRequestBody defines body for LockEnvironment for application/json ContentType.
type LockEnvironmentRequestObject ¶
type LockEnvironmentRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` Body *LockEnvironmentJSONRequestBody }
type LockEnvironmentResponse ¶
type LockEnvironmentResponse struct { Body []byte HTTPResponse *http.Response JSON200 *LockInfo JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseLockEnvironmentResponse ¶
func ParseLockEnvironmentResponse(rsp *http.Response) (*LockEnvironmentResponse, error)
ParseLockEnvironmentResponse parses an HTTP response from a LockEnvironmentWithResponse call
func (LockEnvironmentResponse) Status ¶
func (r LockEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (LockEnvironmentResponse) StatusCode ¶
func (r LockEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type LockEnvironmentResponseObject ¶
type LockEnvironmentResponseObject interface {
VisitLockEnvironmentResponse(ctx *fiber.Ctx) error
}
type LockInfo ¶
type LockInfo struct { Created *time.Time `json:"created,omitempty"` Id *openapi_types.UUID `json:"id,omitempty"` Info *string `json:"info,omitempty"` Operation *string `json:"operation,omitempty"` Path *string `json:"path,omitempty"` Version *string `json:"version,omitempty"` Who *string `json:"who,omitempty"` }
LockInfo defines model for LockInfo.
type MiddlewareFunc ¶
type MiddlewareFunc fiber.Handler
type Project ¶
type Project struct { CreatedAt *time.Time `json:"createdAt,omitempty"` Description *string `json:"description,omitempty"` EnvCount *int `json:"envCount,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Team *struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` } `json:"team,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` }
Project defines model for Project.
type ProjectCreate ¶
type ProjectCreate struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` }
ProjectCreate defines model for ProjectCreate.
type ProjectUpdate ¶
type ProjectUpdate struct { Description *string `json:"description,omitempty"` Name *string `json:"name,omitempty"` TeamId *int `json:"team_id,omitempty"` }
ProjectUpdate defines model for ProjectUpdate.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface { // Get system health status // (GET /_health) GetHealth(c *fiber.Ctx) error // Get system readiness // (GET /_ready) GetReady(c *fiber.Ctx) error // Lock the state of Terraform environment // (POST /client/{teamName}/{projectName}/{environmentName}/lock) LockEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error // Get the state of Terraform environment // (GET /client/{teamName}/{projectName}/{environmentName}/state) GetEnvironmentState(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error // Update the state of Terraform environment // (POST /client/{teamName}/{projectName}/{environmentName}/state) UpdateEnvironmentState(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error // Unlock the state of Terraform environment // (POST /client/{teamName}/{projectName}/{environmentName}/unlock) UnlockEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error // Get a list of teams // (GET /teams) GetTeams(c *fiber.Ctx, params GetTeamsParams) error // Create a new team // (POST /teams) CreateTeam(c *fiber.Ctx) error // Delete a team // (DELETE /teams/{teamName}) DeleteTeam(c *fiber.Ctx, teamName TeamName) error // Get a team // (GET /teams/{teamName}) GetTeam(c *fiber.Ctx, teamName TeamName) error // Update a team // (PUT /teams/{teamName}) UpdateTeam(c *fiber.Ctx, teamName TeamName) error // Get a list of projects // (GET /teams/{teamName}/projects) GetProjects(c *fiber.Ctx, teamName TeamName, params GetProjectsParams) error // Create a new project // (POST /teams/{teamName}/projects) CreateProject(c *fiber.Ctx, teamName TeamName) error // Delete a project // (DELETE /teams/{teamName}/projects/{projectName}) DeleteProject(c *fiber.Ctx, teamName TeamName, projectName ProjectName) error // Get a project // (GET /teams/{teamName}/projects/{projectName}) GetProject(c *fiber.Ctx, teamName TeamName, projectName ProjectName) error // Update a project // (PUT /teams/{teamName}/projects/{projectName}) UpdateProject(c *fiber.Ctx, teamName TeamName, projectName ProjectName) error // Get a list of environments // (GET /teams/{teamName}/projects/{projectName}/environments) GetEnvironments(c *fiber.Ctx, teamName TeamName, projectName ProjectName, params GetEnvironmentsParams) error // Create a new environment // (POST /teams/{teamName}/projects/{projectName}/environments) CreateEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName) error // Delete an environment // (DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName}) DeleteEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error // Get an environment // (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}) GetEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error // Update an environment // (PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName}) UpdateEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error // Get a list of snapshots // (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots) GetSnapshots(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params GetSnapshotsParams) error // Create a new snapshot // (POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots) CreateSnapshot(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error // Delete a snapshot // (DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId}) DeleteSnapshot(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId) error // Get a snapshot // (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId}) GetSnapshot(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId) error // Get the state of Terraform environment // (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/states) GetStates(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params GetStatesParams) error }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) CreateEnvironment ¶
func (siw *ServerInterfaceWrapper) CreateEnvironment(c *fiber.Ctx) error
CreateEnvironment operation middleware
func (*ServerInterfaceWrapper) CreateProject ¶
func (siw *ServerInterfaceWrapper) CreateProject(c *fiber.Ctx) error
CreateProject operation middleware
func (*ServerInterfaceWrapper) CreateSnapshot ¶
func (siw *ServerInterfaceWrapper) CreateSnapshot(c *fiber.Ctx) error
CreateSnapshot operation middleware
func (*ServerInterfaceWrapper) CreateTeam ¶
func (siw *ServerInterfaceWrapper) CreateTeam(c *fiber.Ctx) error
CreateTeam operation middleware
func (*ServerInterfaceWrapper) DeleteEnvironment ¶
func (siw *ServerInterfaceWrapper) DeleteEnvironment(c *fiber.Ctx) error
DeleteEnvironment operation middleware
func (*ServerInterfaceWrapper) DeleteProject ¶
func (siw *ServerInterfaceWrapper) DeleteProject(c *fiber.Ctx) error
DeleteProject operation middleware
func (*ServerInterfaceWrapper) DeleteSnapshot ¶
func (siw *ServerInterfaceWrapper) DeleteSnapshot(c *fiber.Ctx) error
DeleteSnapshot operation middleware
func (*ServerInterfaceWrapper) DeleteTeam ¶
func (siw *ServerInterfaceWrapper) DeleteTeam(c *fiber.Ctx) error
DeleteTeam operation middleware
func (*ServerInterfaceWrapper) GetEnvironment ¶
func (siw *ServerInterfaceWrapper) GetEnvironment(c *fiber.Ctx) error
GetEnvironment operation middleware
func (*ServerInterfaceWrapper) GetEnvironmentState ¶
func (siw *ServerInterfaceWrapper) GetEnvironmentState(c *fiber.Ctx) error
GetEnvironmentState operation middleware
func (*ServerInterfaceWrapper) GetEnvironments ¶
func (siw *ServerInterfaceWrapper) GetEnvironments(c *fiber.Ctx) error
GetEnvironments operation middleware
func (*ServerInterfaceWrapper) GetHealth ¶
func (siw *ServerInterfaceWrapper) GetHealth(c *fiber.Ctx) error
GetHealth operation middleware
func (*ServerInterfaceWrapper) GetProject ¶
func (siw *ServerInterfaceWrapper) GetProject(c *fiber.Ctx) error
GetProject operation middleware
func (*ServerInterfaceWrapper) GetProjects ¶
func (siw *ServerInterfaceWrapper) GetProjects(c *fiber.Ctx) error
GetProjects operation middleware
func (*ServerInterfaceWrapper) GetReady ¶
func (siw *ServerInterfaceWrapper) GetReady(c *fiber.Ctx) error
GetReady operation middleware
func (*ServerInterfaceWrapper) GetSnapshot ¶
func (siw *ServerInterfaceWrapper) GetSnapshot(c *fiber.Ctx) error
GetSnapshot operation middleware
func (*ServerInterfaceWrapper) GetSnapshots ¶
func (siw *ServerInterfaceWrapper) GetSnapshots(c *fiber.Ctx) error
GetSnapshots operation middleware
func (*ServerInterfaceWrapper) GetStates ¶
func (siw *ServerInterfaceWrapper) GetStates(c *fiber.Ctx) error
GetStates operation middleware
func (*ServerInterfaceWrapper) GetTeam ¶
func (siw *ServerInterfaceWrapper) GetTeam(c *fiber.Ctx) error
GetTeam operation middleware
func (*ServerInterfaceWrapper) GetTeams ¶
func (siw *ServerInterfaceWrapper) GetTeams(c *fiber.Ctx) error
GetTeams operation middleware
func (*ServerInterfaceWrapper) LockEnvironment ¶
func (siw *ServerInterfaceWrapper) LockEnvironment(c *fiber.Ctx) error
LockEnvironment operation middleware
func (*ServerInterfaceWrapper) UnlockEnvironment ¶
func (siw *ServerInterfaceWrapper) UnlockEnvironment(c *fiber.Ctx) error
UnlockEnvironment operation middleware
func (*ServerInterfaceWrapper) UpdateEnvironment ¶
func (siw *ServerInterfaceWrapper) UpdateEnvironment(c *fiber.Ctx) error
UpdateEnvironment operation middleware
func (*ServerInterfaceWrapper) UpdateEnvironmentState ¶
func (siw *ServerInterfaceWrapper) UpdateEnvironmentState(c *fiber.Ctx) error
UpdateEnvironmentState operation middleware
func (*ServerInterfaceWrapper) UpdateProject ¶
func (siw *ServerInterfaceWrapper) UpdateProject(c *fiber.Ctx) error
UpdateProject operation middleware
func (*ServerInterfaceWrapper) UpdateTeam ¶
func (siw *ServerInterfaceWrapper) UpdateTeam(c *fiber.Ctx) error
UpdateTeam operation middleware
type Snapshot ¶
type Snapshot struct { CreatedAt *time.Time `json:"createdAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` Description *string `json:"description,omitempty"` Id *string `json:"id,omitempty"` Title *string `json:"title,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` Version *int `json:"version,omitempty"` }
Snapshot defines model for Snapshot.
type SnapshotCreate ¶
type SnapshotCreate struct { Description *string `json:"description,omitempty"` StateId *openapi_types.UUID `json:"state_id,omitempty"` Title *string `json:"title,omitempty"` }
SnapshotCreate defines model for SnapshotCreate.
type SnapshotUpdate ¶
type SnapshotUpdate struct { Description *string `json:"description,omitempty"` TeamId *int `json:"team_id,omitempty"` Title *string `json:"title,omitempty"` }
SnapshotUpdate defines model for SnapshotUpdate.
type State ¶
type State struct { CreatedAt *time.Time `json:"createdAt,omitempty"` DeletedAt *time.Time `json:"deletedAt,omitempty"` Id *string `json:"id,omitempty"` State *string `json:"state,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` Version *int `json:"version,omitempty"` }
State defines model for State.
type StrictHandlerFunc ¶
type StrictHandlerFunc func(ctx *fiber.Ctx, args interface{}) (interface{}, error)
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // Get system health status // (GET /_health) GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error) // Get system readiness // (GET /_ready) GetReady(ctx context.Context, request GetReadyRequestObject) (GetReadyResponseObject, error) // Lock the state of Terraform environment // (POST /client/{teamName}/{projectName}/{environmentName}/lock) LockEnvironment(ctx context.Context, request LockEnvironmentRequestObject) (LockEnvironmentResponseObject, error) // Get the state of Terraform environment // (GET /client/{teamName}/{projectName}/{environmentName}/state) GetEnvironmentState(ctx context.Context, request GetEnvironmentStateRequestObject) (GetEnvironmentStateResponseObject, error) // Update the state of Terraform environment // (POST /client/{teamName}/{projectName}/{environmentName}/state) UpdateEnvironmentState(ctx context.Context, request UpdateEnvironmentStateRequestObject) (UpdateEnvironmentStateResponseObject, error) // Unlock the state of Terraform environment // (POST /client/{teamName}/{projectName}/{environmentName}/unlock) UnlockEnvironment(ctx context.Context, request UnlockEnvironmentRequestObject) (UnlockEnvironmentResponseObject, error) // Get a list of teams // (GET /teams) GetTeams(ctx context.Context, request GetTeamsRequestObject) (GetTeamsResponseObject, error) // Create a new team // (POST /teams) CreateTeam(ctx context.Context, request CreateTeamRequestObject) (CreateTeamResponseObject, error) // Delete a team // (DELETE /teams/{teamName}) DeleteTeam(ctx context.Context, request DeleteTeamRequestObject) (DeleteTeamResponseObject, error) // Get a team // (GET /teams/{teamName}) GetTeam(ctx context.Context, request GetTeamRequestObject) (GetTeamResponseObject, error) // Update a team // (PUT /teams/{teamName}) UpdateTeam(ctx context.Context, request UpdateTeamRequestObject) (UpdateTeamResponseObject, error) // Get a list of projects // (GET /teams/{teamName}/projects) GetProjects(ctx context.Context, request GetProjectsRequestObject) (GetProjectsResponseObject, error) // Create a new project // (POST /teams/{teamName}/projects) CreateProject(ctx context.Context, request CreateProjectRequestObject) (CreateProjectResponseObject, error) // Delete a project // (DELETE /teams/{teamName}/projects/{projectName}) DeleteProject(ctx context.Context, request DeleteProjectRequestObject) (DeleteProjectResponseObject, error) // Get a project // (GET /teams/{teamName}/projects/{projectName}) GetProject(ctx context.Context, request GetProjectRequestObject) (GetProjectResponseObject, error) // Update a project // (PUT /teams/{teamName}/projects/{projectName}) UpdateProject(ctx context.Context, request UpdateProjectRequestObject) (UpdateProjectResponseObject, error) // Get a list of environments // (GET /teams/{teamName}/projects/{projectName}/environments) GetEnvironments(ctx context.Context, request GetEnvironmentsRequestObject) (GetEnvironmentsResponseObject, error) // Create a new environment // (POST /teams/{teamName}/projects/{projectName}/environments) CreateEnvironment(ctx context.Context, request CreateEnvironmentRequestObject) (CreateEnvironmentResponseObject, error) // Delete an environment // (DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName}) DeleteEnvironment(ctx context.Context, request DeleteEnvironmentRequestObject) (DeleteEnvironmentResponseObject, error) // Get an environment // (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}) GetEnvironment(ctx context.Context, request GetEnvironmentRequestObject) (GetEnvironmentResponseObject, error) // Update an environment // (PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName}) UpdateEnvironment(ctx context.Context, request UpdateEnvironmentRequestObject) (UpdateEnvironmentResponseObject, error) // Get a list of snapshots // (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots) GetSnapshots(ctx context.Context, request GetSnapshotsRequestObject) (GetSnapshotsResponseObject, error) // Create a new snapshot // (POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots) CreateSnapshot(ctx context.Context, request CreateSnapshotRequestObject) (CreateSnapshotResponseObject, error) // Delete a snapshot // (DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId}) DeleteSnapshot(ctx context.Context, request DeleteSnapshotRequestObject) (DeleteSnapshotResponseObject, error) // Get a snapshot // (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId}) GetSnapshot(ctx context.Context, request GetSnapshotRequestObject) (GetSnapshotResponseObject, error) // Get the state of Terraform environment // (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/states) GetStates(ctx context.Context, request GetStatesRequestObject) (GetStatesResponseObject, error) }
StrictServerInterface represents all server handlers.
type Team ¶
type Team struct { CreatedAt *time.Time `json:"createdAt,omitempty"` Description *string `json:"description,omitempty"` Id *string `json:"id,omitempty"` Members *[]string `json:"members,omitempty"` Name *string `json:"name,omitempty"` ProjectsCount *int `json:"projectsCount,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` UsersCount *int `json:"usersCount,omitempty"` }
Team defines model for Team.
type TeamCreate ¶
type TeamCreate struct { Description *string `json:"description,omitempty"` Members *[]string `json:"members,omitempty"` Name *string `json:"name,omitempty"` }
TeamCreate defines model for TeamCreate.
type TeamUpdate ¶
type TeamUpdate struct { Description *string `json:"description,omitempty"` Members *[]string `json:"members,omitempty"` Name *string `json:"name,omitempty"` }
TeamUpdate defines model for TeamUpdate.
type UnlockEnvironment200Response ¶
type UnlockEnvironment200Response struct { }
func (UnlockEnvironment200Response) VisitUnlockEnvironmentResponse ¶
func (response UnlockEnvironment200Response) VisitUnlockEnvironmentResponse(ctx *fiber.Ctx) error
type UnlockEnvironment204Response ¶
type UnlockEnvironment204Response struct { }
func (UnlockEnvironment204Response) VisitUnlockEnvironmentResponse ¶
func (response UnlockEnvironment204Response) VisitUnlockEnvironmentResponse(ctx *fiber.Ctx) error
type UnlockEnvironment404JSONResponse ¶
type UnlockEnvironment404JSONResponse ErrorResponse
func (UnlockEnvironment404JSONResponse) VisitUnlockEnvironmentResponse ¶
func (response UnlockEnvironment404JSONResponse) VisitUnlockEnvironmentResponse(ctx *fiber.Ctx) error
type UnlockEnvironment500JSONResponse ¶
type UnlockEnvironment500JSONResponse ErrorResponse
func (UnlockEnvironment500JSONResponse) VisitUnlockEnvironmentResponse ¶
func (response UnlockEnvironment500JSONResponse) VisitUnlockEnvironmentResponse(ctx *fiber.Ctx) error
type UnlockEnvironmentJSONRequestBody ¶
type UnlockEnvironmentJSONRequestBody = LockInfo
UnlockEnvironmentJSONRequestBody defines body for UnlockEnvironment for application/json ContentType.
type UnlockEnvironmentRequestObject ¶
type UnlockEnvironmentRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` Body *UnlockEnvironmentJSONRequestBody }
type UnlockEnvironmentResponse ¶
type UnlockEnvironmentResponse struct { Body []byte HTTPResponse *http.Response JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseUnlockEnvironmentResponse ¶
func ParseUnlockEnvironmentResponse(rsp *http.Response) (*UnlockEnvironmentResponse, error)
ParseUnlockEnvironmentResponse parses an HTTP response from a UnlockEnvironmentWithResponse call
func (UnlockEnvironmentResponse) Status ¶
func (r UnlockEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (UnlockEnvironmentResponse) StatusCode ¶
func (r UnlockEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UnlockEnvironmentResponseObject ¶
type UnlockEnvironmentResponseObject interface {
VisitUnlockEnvironmentResponse(ctx *fiber.Ctx) error
}
type UpdateEnvironment200JSONResponse ¶
type UpdateEnvironment200JSONResponse Environment
func (UpdateEnvironment200JSONResponse) VisitUpdateEnvironmentResponse ¶
func (response UpdateEnvironment200JSONResponse) VisitUpdateEnvironmentResponse(ctx *fiber.Ctx) error
type UpdateEnvironment404JSONResponse ¶
type UpdateEnvironment404JSONResponse ErrorResponse
func (UpdateEnvironment404JSONResponse) VisitUpdateEnvironmentResponse ¶
func (response UpdateEnvironment404JSONResponse) VisitUpdateEnvironmentResponse(ctx *fiber.Ctx) error
type UpdateEnvironment500JSONResponse ¶
type UpdateEnvironment500JSONResponse ErrorResponse
func (UpdateEnvironment500JSONResponse) VisitUpdateEnvironmentResponse ¶
func (response UpdateEnvironment500JSONResponse) VisitUpdateEnvironmentResponse(ctx *fiber.Ctx) error
type UpdateEnvironmentJSONRequestBody ¶
type UpdateEnvironmentJSONRequestBody = EnvironmentUpdate
UpdateEnvironmentJSONRequestBody defines body for UpdateEnvironment for application/json ContentType.
type UpdateEnvironmentRequestObject ¶
type UpdateEnvironmentRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` Body *UpdateEnvironmentJSONRequestBody }
type UpdateEnvironmentResponse ¶
type UpdateEnvironmentResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Environment JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseUpdateEnvironmentResponse ¶
func ParseUpdateEnvironmentResponse(rsp *http.Response) (*UpdateEnvironmentResponse, error)
ParseUpdateEnvironmentResponse parses an HTTP response from a UpdateEnvironmentWithResponse call
func (UpdateEnvironmentResponse) Status ¶
func (r UpdateEnvironmentResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateEnvironmentResponse) StatusCode ¶
func (r UpdateEnvironmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateEnvironmentResponseObject ¶
type UpdateEnvironmentResponseObject interface {
VisitUpdateEnvironmentResponse(ctx *fiber.Ctx) error
}
type UpdateEnvironmentState200JSONResponse ¶
type UpdateEnvironmentState200JSONResponse Payload
func (UpdateEnvironmentState200JSONResponse) VisitUpdateEnvironmentStateResponse ¶
func (response UpdateEnvironmentState200JSONResponse) VisitUpdateEnvironmentStateResponse(ctx *fiber.Ctx) error
type UpdateEnvironmentState404JSONResponse ¶
type UpdateEnvironmentState404JSONResponse ErrorResponse
func (UpdateEnvironmentState404JSONResponse) VisitUpdateEnvironmentStateResponse ¶
func (response UpdateEnvironmentState404JSONResponse) VisitUpdateEnvironmentStateResponse(ctx *fiber.Ctx) error
type UpdateEnvironmentState500JSONResponse ¶
type UpdateEnvironmentState500JSONResponse ErrorResponse
func (UpdateEnvironmentState500JSONResponse) VisitUpdateEnvironmentStateResponse ¶
func (response UpdateEnvironmentState500JSONResponse) VisitUpdateEnvironmentStateResponse(ctx *fiber.Ctx) error
type UpdateEnvironmentStateJSONRequestBody ¶
type UpdateEnvironmentStateJSONRequestBody = Payload
UpdateEnvironmentStateJSONRequestBody defines body for UpdateEnvironmentState for application/json ContentType.
type UpdateEnvironmentStateRequestObject ¶
type UpdateEnvironmentStateRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` EnvironmentName EnvironmentName `json:"environmentName"` Body *UpdateEnvironmentStateJSONRequestBody }
type UpdateEnvironmentStateResponse ¶
type UpdateEnvironmentStateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Payload JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseUpdateEnvironmentStateResponse ¶
func ParseUpdateEnvironmentStateResponse(rsp *http.Response) (*UpdateEnvironmentStateResponse, error)
ParseUpdateEnvironmentStateResponse parses an HTTP response from a UpdateEnvironmentStateWithResponse call
func (UpdateEnvironmentStateResponse) Status ¶
func (r UpdateEnvironmentStateResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateEnvironmentStateResponse) StatusCode ¶
func (r UpdateEnvironmentStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateEnvironmentStateResponseObject ¶
type UpdateEnvironmentStateResponseObject interface {
VisitUpdateEnvironmentStateResponse(ctx *fiber.Ctx) error
}
type UpdateProject200JSONResponse ¶
type UpdateProject200JSONResponse Project
func (UpdateProject200JSONResponse) VisitUpdateProjectResponse ¶
func (response UpdateProject200JSONResponse) VisitUpdateProjectResponse(ctx *fiber.Ctx) error
type UpdateProject404JSONResponse ¶
type UpdateProject404JSONResponse ErrorResponse
func (UpdateProject404JSONResponse) VisitUpdateProjectResponse ¶
func (response UpdateProject404JSONResponse) VisitUpdateProjectResponse(ctx *fiber.Ctx) error
type UpdateProject500JSONResponse ¶
type UpdateProject500JSONResponse ErrorResponse
func (UpdateProject500JSONResponse) VisitUpdateProjectResponse ¶
func (response UpdateProject500JSONResponse) VisitUpdateProjectResponse(ctx *fiber.Ctx) error
type UpdateProjectJSONRequestBody ¶
type UpdateProjectJSONRequestBody = ProjectUpdate
UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType.
type UpdateProjectRequestObject ¶
type UpdateProjectRequestObject struct { TeamName TeamName `json:"teamName"` ProjectName ProjectName `json:"projectName"` Body *UpdateProjectJSONRequestBody }
type UpdateProjectResponse ¶
type UpdateProjectResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Project JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseUpdateProjectResponse ¶
func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error)
ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call
func (UpdateProjectResponse) Status ¶
func (r UpdateProjectResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateProjectResponse) StatusCode ¶
func (r UpdateProjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateProjectResponseObject ¶
type UpdateProjectResponseObject interface {
VisitUpdateProjectResponse(ctx *fiber.Ctx) error
}
type UpdateTeam200JSONResponse ¶
type UpdateTeam200JSONResponse Team
func (UpdateTeam200JSONResponse) VisitUpdateTeamResponse ¶
func (response UpdateTeam200JSONResponse) VisitUpdateTeamResponse(ctx *fiber.Ctx) error
type UpdateTeam404JSONResponse ¶
type UpdateTeam404JSONResponse ErrorResponse
func (UpdateTeam404JSONResponse) VisitUpdateTeamResponse ¶
func (response UpdateTeam404JSONResponse) VisitUpdateTeamResponse(ctx *fiber.Ctx) error
type UpdateTeam500JSONResponse ¶
type UpdateTeam500JSONResponse ErrorResponse
func (UpdateTeam500JSONResponse) VisitUpdateTeamResponse ¶
func (response UpdateTeam500JSONResponse) VisitUpdateTeamResponse(ctx *fiber.Ctx) error
type UpdateTeamJSONRequestBody ¶
type UpdateTeamJSONRequestBody = TeamUpdate
UpdateTeamJSONRequestBody defines body for UpdateTeam for application/json ContentType.
type UpdateTeamRequestObject ¶
type UpdateTeamRequestObject struct { TeamName TeamName `json:"teamName"` Body *UpdateTeamJSONRequestBody }
type UpdateTeamResponse ¶
type UpdateTeamResponse struct { Body []byte HTTPResponse *http.Response JSON200 *Team JSON404 *ErrorResponse JSON500 *ErrorResponse }
func ParseUpdateTeamResponse ¶
func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error)
ParseUpdateTeamResponse parses an HTTP response from a UpdateTeamWithResponse call
func (UpdateTeamResponse) Status ¶
func (r UpdateTeamResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTeamResponse) StatusCode ¶
func (r UpdateTeamResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTeamResponseObject ¶
type UpdateTeamResponseObject interface {
VisitUpdateTeamResponse(ctx *fiber.Ctx) error
}