apis

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

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.8.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.8.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.8.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpec added in v0.1.3

func GetSpec() (swagger *openapi3.T, err error)

GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.

func GetSpecJSON added in v0.1.3

func GetSpecJSON() ([]byte, error)

GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.

func GetSwagger deprecated

func GetSwagger() (*openapi3.T, error)

GetSwagger returns the OpenAPI specification corresponding to the generated code in this file.

Deprecated: GetSwagger predates kin-openapi renaming openapi3.Swagger to openapi3.T. Use GetSpec instead. This wrapper is retained for backwards compatibility.

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 constructs an http.Request for the CreateEnvironment method, with any body, and a specified content type

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 constructs an http.Request for the CreateProject method, with any body, and a specified content type

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 constructs an http.Request for the CreateSnapshot method, with any body, and a specified content type

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 constructs an http.Request for the CreateTeam method, with any body, and a specified content type

func NewDeleteEnvironmentRequest

func NewDeleteEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) (*http.Request, error)

NewDeleteEnvironmentRequest constructs an http.Request for the DeleteEnvironment method

func NewDeleteProjectRequest

func NewDeleteProjectRequest(server string, teamName TeamName, projectName ProjectName) (*http.Request, error)

NewDeleteProjectRequest constructs an http.Request for the DeleteProject method

func NewDeleteSnapshotRequest

func NewDeleteSnapshotRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId) (*http.Request, error)

NewDeleteSnapshotRequest constructs an http.Request for the DeleteSnapshot method

func NewDeleteTeamRequest

func NewDeleteTeamRequest(server string, teamName TeamName) (*http.Request, error)

NewDeleteTeamRequest constructs an http.Request for the DeleteTeam method

func NewGetEnvironmentRequest

func NewGetEnvironmentRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) (*http.Request, error)

NewGetEnvironmentRequest constructs an http.Request for the GetEnvironment method

func NewGetEnvironmentStateRequest

func NewGetEnvironmentStateRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) (*http.Request, error)

NewGetEnvironmentStateRequest constructs an http.Request for the GetEnvironmentState method

func NewGetEnvironmentsRequest

func NewGetEnvironmentsRequest(server string, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams) (*http.Request, error)

NewGetEnvironmentsRequest constructs an http.Request for the GetEnvironments method

func NewGetHealthRequest

func NewGetHealthRequest(server string) (*http.Request, error)

NewGetHealthRequest constructs an http.Request for the GetHealth method

func NewGetProjectRequest

func NewGetProjectRequest(server string, teamName TeamName, projectName ProjectName) (*http.Request, error)

NewGetProjectRequest constructs an http.Request for the GetProject method

func NewGetProjectsRequest

func NewGetProjectsRequest(server string, teamName TeamName, params *GetProjectsParams) (*http.Request, error)

NewGetProjectsRequest constructs an http.Request for the GetProjects method

func NewGetReadyRequest

func NewGetReadyRequest(server string) (*http.Request, error)

NewGetReadyRequest constructs an http.Request for the GetReady method

func NewGetSnapshotRequest

func NewGetSnapshotRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId) (*http.Request, error)

NewGetSnapshotRequest constructs an http.Request for the GetSnapshot method

func NewGetSnapshotsRequest

func NewGetSnapshotsRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams) (*http.Request, error)

NewGetSnapshotsRequest constructs an http.Request for the GetSnapshots method

func NewGetStatesRequest

func NewGetStatesRequest(server string, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetStatesParams) (*http.Request, error)

NewGetStatesRequest constructs an http.Request for the GetStates method

func NewGetTeamRequest

func NewGetTeamRequest(server string, teamName TeamName) (*http.Request, error)

NewGetTeamRequest constructs an http.Request for the GetTeam method

func NewGetTeamsRequest

func NewGetTeamsRequest(server string, params *GetTeamsParams) (*http.Request, error)

NewGetTeamsRequest constructs an http.Request for the GetTeams method

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 constructs an http.Request for the LockEnvironment method, with any body, and a specified content type

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 constructs an http.Request for the UnlockEnvironment method, with any body, and a specified content type

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 constructs an http.Request for the UpdateEnvironment method, with any body, and a specified content type

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 constructs an http.Request for the UpdateEnvironmentState method, with any body, and a specified content type

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 constructs an http.Request for the UpdateProject method, with any body, and a specified content type

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 constructs an http.Request for the UpdateTeam method, with any body, and a specified content type

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

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)

CreateEnvironment Create a new environment

Takes a body of the `application/json` content type.

Corresponds with POST /teams/{teamName}/projects/{projectName}/environments (the `CreateEnvironment` operationId).

func (*Client) CreateEnvironmentWithBody

func (c *Client) CreateEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateEnvironmentWithBody Create a new environment

Takes any type of body and a specified content type.

Corresponds with POST /teams/{teamName}/projects/{projectName}/environments (the `CreateEnvironment` operationId).

func (*Client) CreateProject

func (c *Client) CreateProject(ctx context.Context, teamName TeamName, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateProject Create a new project

Takes a body of the `application/json` content type.

Corresponds with POST /teams/{teamName}/projects (the `CreateProject` operationId).

func (*Client) CreateProjectWithBody

func (c *Client) CreateProjectWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateProjectWithBody Create a new project

Takes any type of body and a specified content type.

Corresponds with POST /teams/{teamName}/projects (the `CreateProject` operationId).

func (*Client) CreateSnapshot

func (c *Client) CreateSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateSnapshot Create a new snapshot

Takes a body of the `application/json` content type.

Corresponds with POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `CreateSnapshot` operationId).

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)

CreateSnapshotWithBody Create a new snapshot

Takes any type of body and a specified content type.

Corresponds with POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `CreateSnapshot` operationId).

func (*Client) CreateTeam

func (c *Client) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTeam Create a new team

Takes a body of the `application/json` content type.

Corresponds with POST /teams (the `CreateTeam` operationId).

func (*Client) CreateTeamWithBody

func (c *Client) CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateTeamWithBody Create a new team

Takes any type of body and a specified content type.

Corresponds with POST /teams (the `CreateTeam` operationId).

func (*Client) DeleteEnvironment

func (c *Client) DeleteEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteEnvironment Delete an environment

Corresponds with DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `DeleteEnvironment` operationId).

func (*Client) DeleteProject

func (c *Client) DeleteProject(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteProject Delete a project

Corresponds with DELETE /teams/{teamName}/projects/{projectName} (the `DeleteProject` operationId).

func (*Client) DeleteSnapshot

func (c *Client) DeleteSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteSnapshot Delete a snapshot

Corresponds with DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId} (the `DeleteSnapshot` operationId).

func (*Client) DeleteTeam

func (c *Client) DeleteTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteTeam Delete a team

Corresponds with DELETE /teams/{teamName} (the `DeleteTeam` operationId).

func (*Client) GetEnvironment

func (c *Client) GetEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error)

GetEnvironment Get an environment

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `GetEnvironment` operationId).

func (*Client) GetEnvironmentState

func (c *Client) GetEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error)

GetEnvironmentState Get the state of Terraform environment

Corresponds with GET /client/{teamName}/{projectName}/{environmentName}/state (the `GetEnvironmentState` operationId).

func (*Client) GetEnvironments

func (c *Client) GetEnvironments(ctx context.Context, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetEnvironments Get a list of environments

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments (the `GetEnvironments` operationId).

func (*Client) GetHealth

func (c *Client) GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetHealth Get system health status

Corresponds with GET /_health (the `GetHealth` operationId).

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

GetProject Get a project

Corresponds with GET /teams/{teamName}/projects/{projectName} (the `GetProject` operationId).

func (*Client) GetProjects

func (c *Client) GetProjects(ctx context.Context, teamName TeamName, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetProjects Get a list of projects

Corresponds with GET /teams/{teamName}/projects (the `GetProjects` operationId).

func (*Client) GetReady

func (c *Client) GetReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

GetReady Get system readiness

Corresponds with GET /_ready (the `GetReady` operationId).

func (*Client) GetSnapshot

func (c *Client) GetSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSnapshot Get a snapshot

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId} (the `GetSnapshot` operationId).

func (*Client) GetSnapshots

func (c *Client) GetSnapshots(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSnapshots Get a list of snapshots

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `GetSnapshots` operationId).

func (*Client) GetStates

func (c *Client) GetStates(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetStatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetStates Get the state of Terraform environment

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/states (the `GetStates` operationId).

func (*Client) GetTeam

func (c *Client) GetTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTeam Get a team

Corresponds with GET /teams/{teamName} (the `GetTeam` operationId).

func (*Client) GetTeams

func (c *Client) GetTeams(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetTeams Get a list of teams

Corresponds with GET /teams (the `GetTeams` operationId).

func (*Client) LockEnvironment

func (c *Client) LockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body LockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

LockEnvironment Lock the state of Terraform environment

Takes a body of the `application/json` content type.

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/lock (the `LockEnvironment` operationId).

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)

LockEnvironmentWithBody Lock the state of Terraform environment

Takes any type of body and a specified content type.

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/lock (the `LockEnvironment` operationId).

func (*Client) UnlockEnvironment

func (c *Client) UnlockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UnlockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UnlockEnvironment Unlock the state of Terraform environment

Takes a body of the `application/json` content type.

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/unlock (the `UnlockEnvironment` operationId).

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)

UnlockEnvironmentWithBody Unlock the state of Terraform environment

Takes any type of body and a specified content type.

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/unlock (the `UnlockEnvironment` operationId).

func (*Client) UpdateEnvironment

func (c *Client) UpdateEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateEnvironment Update an environment

Takes a body of the `application/json` content type.

Corresponds with PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `UpdateEnvironment` operationId).

func (*Client) UpdateEnvironmentState

func (c *Client) UpdateEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateEnvironmentState Update the state of Terraform environment

Takes a body of the `application/json` content type.

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/state (the `UpdateEnvironmentState` operationId).

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)

UpdateEnvironmentStateWithBody Update the state of Terraform environment

Takes any type of body and a specified content type.

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/state (the `UpdateEnvironmentState` operationId).

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)

UpdateEnvironmentWithBody Update an environment

Takes any type of body and a specified content type.

Corresponds with PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `UpdateEnvironment` operationId).

func (*Client) UpdateProject

func (c *Client) UpdateProject(ctx context.Context, teamName TeamName, projectName ProjectName, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateProject Update a project

Takes a body of the `application/json` content type.

Corresponds with PUT /teams/{teamName}/projects/{projectName} (the `UpdateProject` operationId).

func (*Client) UpdateProjectWithBody

func (c *Client) UpdateProjectWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateProjectWithBody Update a project

Takes any type of body and a specified content type.

Corresponds with PUT /teams/{teamName}/projects/{projectName} (the `UpdateProject` operationId).

func (*Client) UpdateTeam

func (c *Client) UpdateTeam(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateTeam Update a team

Takes a body of the `application/json` content type.

Corresponds with PUT /teams/{teamName} (the `UpdateTeam` operationId).

func (*Client) UpdateTeamWithBody

func (c *Client) UpdateTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateTeamWithBody Update a team

Takes any type of body and a specified content type.

Corresponds with PUT /teams/{teamName} (the `UpdateTeam` operationId).

type ClientInterface

type ClientInterface interface {

	// GetHealth Get system health status
	//
	// Corresponds with GET /_health (the `GetHealth` operationId).
	GetHealth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetReady Get system readiness
	//
	// Corresponds with GET /_ready (the `GetReady` operationId).
	GetReady(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LockEnvironmentWithBody Lock the state of Terraform environment
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/lock (the `LockEnvironment` operationId).
	LockEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// LockEnvironment Lock the state of Terraform environment
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/lock (the `LockEnvironment` operationId).
	LockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body LockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEnvironmentState Get the state of Terraform environment
	//
	// Corresponds with GET /client/{teamName}/{projectName}/{environmentName}/state (the `GetEnvironmentState` operationId).
	GetEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEnvironmentStateWithBody Update the state of Terraform environment
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/state (the `UpdateEnvironmentState` operationId).
	UpdateEnvironmentStateWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEnvironmentState Update the state of Terraform environment
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/state (the `UpdateEnvironmentState` operationId).
	UpdateEnvironmentState(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnlockEnvironmentWithBody Unlock the state of Terraform environment
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/unlock (the `UnlockEnvironment` operationId).
	UnlockEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnlockEnvironment Unlock the state of Terraform environment
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/unlock (the `UnlockEnvironment` operationId).
	UnlockEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UnlockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTeams Get a list of teams
	//
	// Corresponds with GET /teams (the `GetTeams` operationId).
	GetTeams(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTeamWithBody Create a new team
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /teams (the `CreateTeam` operationId).
	CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateTeam Create a new team
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /teams (the `CreateTeam` operationId).
	CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteTeam Delete a team
	//
	// Corresponds with DELETE /teams/{teamName} (the `DeleteTeam` operationId).
	DeleteTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetTeam Get a team
	//
	// Corresponds with GET /teams/{teamName} (the `GetTeam` operationId).
	GetTeam(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTeamWithBody Update a team
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /teams/{teamName} (the `UpdateTeam` operationId).
	UpdateTeamWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateTeam Update a team
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /teams/{teamName} (the `UpdateTeam` operationId).
	UpdateTeam(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjects Get a list of projects
	//
	// Corresponds with GET /teams/{teamName}/projects (the `GetProjects` operationId).
	GetProjects(ctx context.Context, teamName TeamName, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProjectWithBody Create a new project
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /teams/{teamName}/projects (the `CreateProject` operationId).
	CreateProjectWithBody(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateProject Create a new project
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /teams/{teamName}/projects (the `CreateProject` operationId).
	CreateProject(ctx context.Context, teamName TeamName, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteProject Delete a project
	//
	// Corresponds with DELETE /teams/{teamName}/projects/{projectName} (the `DeleteProject` operationId).
	DeleteProject(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProject Get a project
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName} (the `GetProject` operationId).
	GetProject(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProjectWithBody Update a project
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /teams/{teamName}/projects/{projectName} (the `UpdateProject` operationId).
	UpdateProjectWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProject Update a project
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /teams/{teamName}/projects/{projectName} (the `UpdateProject` operationId).
	UpdateProject(ctx context.Context, teamName TeamName, projectName ProjectName, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEnvironments Get a list of environments
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments (the `GetEnvironments` operationId).
	GetEnvironments(ctx context.Context, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEnvironmentWithBody Create a new environment
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /teams/{teamName}/projects/{projectName}/environments (the `CreateEnvironment` operationId).
	CreateEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEnvironment Create a new environment
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /teams/{teamName}/projects/{projectName}/environments (the `CreateEnvironment` operationId).
	CreateEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteEnvironment Delete an environment
	//
	// Corresponds with DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `DeleteEnvironment` operationId).
	DeleteEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetEnvironment Get an environment
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `GetEnvironment` operationId).
	GetEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEnvironmentWithBody Update an environment
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `UpdateEnvironment` operationId).
	UpdateEnvironmentWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateEnvironment Update an environment
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `UpdateEnvironment` operationId).
	UpdateEnvironment(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSnapshots Get a list of snapshots
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `GetSnapshots` operationId).
	GetSnapshots(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSnapshotWithBody Create a new snapshot
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `CreateSnapshot` operationId).
	CreateSnapshotWithBody(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateSnapshot Create a new snapshot
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `CreateSnapshot` operationId).
	CreateSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteSnapshot Delete a snapshot
	//
	// Corresponds with DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId} (the `DeleteSnapshot` operationId).
	DeleteSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSnapshot Get a snapshot
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId} (the `GetSnapshot` operationId).
	GetSnapshot(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetStates Get the state of Terraform environment
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/states (the `GetStates` operationId).
	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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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 Create a new environment

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams/{teamName}/projects/{projectName}/environments (the `CreateEnvironment` operationId).

func (*ClientWithResponses) CreateEnvironmentWithResponse

func (c *ClientWithResponses) CreateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)

CreateEnvironmentWithResponse Create a new environment

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams/{teamName}/projects/{projectName}/environments (the `CreateEnvironment` operationId).

func (*ClientWithResponses) CreateProjectWithBodyWithResponse

func (c *ClientWithResponses) CreateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

CreateProjectWithBodyWithResponse Create a new project

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams/{teamName}/projects (the `CreateProject` operationId).

func (*ClientWithResponses) CreateProjectWithResponse

func (c *ClientWithResponses) CreateProjectWithResponse(ctx context.Context, teamName TeamName, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

CreateProjectWithResponse Create a new project

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams/{teamName}/projects (the `CreateProject` operationId).

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 Create a new snapshot

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `CreateSnapshot` operationId).

func (*ClientWithResponses) CreateSnapshotWithResponse

func (c *ClientWithResponses) CreateSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

CreateSnapshotWithResponse Create a new snapshot

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `CreateSnapshot` operationId).

func (*ClientWithResponses) CreateTeamWithBodyWithResponse

func (c *ClientWithResponses) CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

CreateTeamWithBodyWithResponse Create a new team

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams (the `CreateTeam` operationId).

func (*ClientWithResponses) CreateTeamWithResponse

func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

CreateTeamWithResponse Create a new team

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /teams (the `CreateTeam` operationId).

func (*ClientWithResponses) DeleteEnvironmentWithResponse

func (c *ClientWithResponses) DeleteEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResponse, error)

DeleteEnvironmentWithResponse Delete an environment

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `DeleteEnvironment` operationId).

func (*ClientWithResponses) DeleteProjectWithResponse

func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

DeleteProjectWithResponse Delete a project

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /teams/{teamName}/projects/{projectName} (the `DeleteProject` operationId).

func (*ClientWithResponses) DeleteSnapshotWithResponse

func (c *ClientWithResponses) DeleteSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)

DeleteSnapshotWithResponse Delete a snapshot

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId} (the `DeleteSnapshot` operationId).

func (*ClientWithResponses) DeleteTeamWithResponse

func (c *ClientWithResponses) DeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error)

DeleteTeamWithResponse Delete a team

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /teams/{teamName} (the `DeleteTeam` operationId).

func (*ClientWithResponses) GetEnvironmentStateWithResponse

func (c *ClientWithResponses) GetEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*GetEnvironmentStateResponse, error)

GetEnvironmentStateWithResponse Get the state of Terraform environment

Returns a wrapper object for the known response body format(s).

Corresponds with GET /client/{teamName}/{projectName}/{environmentName}/state (the `GetEnvironmentState` operationId).

func (*ClientWithResponses) GetEnvironmentWithResponse

func (c *ClientWithResponses) GetEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*GetEnvironmentResponse, error)

GetEnvironmentWithResponse Get an environment

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `GetEnvironment` operationId).

func (*ClientWithResponses) GetEnvironmentsWithResponse

func (c *ClientWithResponses) GetEnvironmentsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams, reqEditors ...RequestEditorFn) (*GetEnvironmentsResponse, error)

GetEnvironmentsWithResponse Get a list of environments

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments (the `GetEnvironments` operationId).

func (*ClientWithResponses) GetHealthWithResponse

func (c *ClientWithResponses) GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

GetHealthWithResponse Get system health status

Returns a wrapper object for the known response body format(s).

Corresponds with GET /_health (the `GetHealth` operationId).

func (*ClientWithResponses) GetProjectWithResponse

func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

GetProjectWithResponse Get a project

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{teamName}/projects/{projectName} (the `GetProject` operationId).

func (*ClientWithResponses) GetProjectsWithResponse

func (c *ClientWithResponses) GetProjectsWithResponse(ctx context.Context, teamName TeamName, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)

GetProjectsWithResponse Get a list of projects

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{teamName}/projects (the `GetProjects` operationId).

func (*ClientWithResponses) GetReadyWithResponse

func (c *ClientWithResponses) GetReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyResponse, error)

GetReadyWithResponse Get system readiness

Returns a wrapper object for the known response body format(s).

Corresponds with GET /_ready (the `GetReady` operationId).

func (*ClientWithResponses) GetSnapshotWithResponse

func (c *ClientWithResponses) GetSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)

GetSnapshotWithResponse Get a snapshot

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId} (the `GetSnapshot` operationId).

func (*ClientWithResponses) GetSnapshotsWithResponse

func (c *ClientWithResponses) GetSnapshotsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams, reqEditors ...RequestEditorFn) (*GetSnapshotsResponse, error)

GetSnapshotsWithResponse Get a list of snapshots

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `GetSnapshots` operationId).

func (*ClientWithResponses) GetStatesWithResponse

func (c *ClientWithResponses) GetStatesWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetStatesParams, reqEditors ...RequestEditorFn) (*GetStatesResponse, error)

GetStatesWithResponse Get the state of Terraform environment

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/states (the `GetStates` operationId).

func (*ClientWithResponses) GetTeamWithResponse

func (c *ClientWithResponses) GetTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)

GetTeamWithResponse Get a team

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams/{teamName} (the `GetTeam` operationId).

func (*ClientWithResponses) GetTeamsWithResponse

func (c *ClientWithResponses) GetTeamsWithResponse(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*GetTeamsResponse, error)

GetTeamsWithResponse Get a list of teams

Returns a wrapper object for the known response body format(s).

Corresponds with GET /teams (the `GetTeams` operationId).

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 Lock the state of Terraform environment

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/lock (the `LockEnvironment` operationId).

func (*ClientWithResponses) LockEnvironmentWithResponse

func (c *ClientWithResponses) LockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body LockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*LockEnvironmentResponse, error)

LockEnvironmentWithResponse Lock the state of Terraform environment

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/lock (the `LockEnvironment` operationId).

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 Unlock the state of Terraform environment

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/unlock (the `UnlockEnvironment` operationId).

func (*ClientWithResponses) UnlockEnvironmentWithResponse

func (c *ClientWithResponses) UnlockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UnlockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UnlockEnvironmentResponse, error)

UnlockEnvironmentWithResponse Unlock the state of Terraform environment

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/unlock (the `UnlockEnvironment` operationId).

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 Update the state of Terraform environment

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/state (the `UpdateEnvironmentState` operationId).

func (*ClientWithResponses) UpdateEnvironmentStateWithResponse

func (c *ClientWithResponses) UpdateEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentStateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentStateResponse, error)

UpdateEnvironmentStateWithResponse Update the state of Terraform environment

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/state (the `UpdateEnvironmentState` operationId).

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 Update an environment

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `UpdateEnvironment` operationId).

func (*ClientWithResponses) UpdateEnvironmentWithResponse

func (c *ClientWithResponses) UpdateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)

UpdateEnvironmentWithResponse Update an environment

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `UpdateEnvironment` operationId).

func (*ClientWithResponses) UpdateProjectWithBodyWithResponse

func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

UpdateProjectWithBodyWithResponse Update a project

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /teams/{teamName}/projects/{projectName} (the `UpdateProject` operationId).

func (*ClientWithResponses) UpdateProjectWithResponse

func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

UpdateProjectWithResponse Update a project

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /teams/{teamName}/projects/{projectName} (the `UpdateProject` operationId).

func (*ClientWithResponses) UpdateTeamWithBodyWithResponse

func (c *ClientWithResponses) UpdateTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

UpdateTeamWithBodyWithResponse Update a team

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /teams/{teamName} (the `UpdateTeam` operationId).

func (*ClientWithResponses) UpdateTeamWithResponse

func (c *ClientWithResponses) UpdateTeamWithResponse(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

UpdateTeamWithResponse Update a team

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PUT /teams/{teamName} (the `UpdateTeam` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// GetHealthWithResponse Get system health status
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /_health (the `GetHealth` operationId).
	GetHealthWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthResponse, error)

	// GetReadyWithResponse Get system readiness
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /_ready (the `GetReady` operationId).
	GetReadyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetReadyResponse, error)

	// LockEnvironmentWithBodyWithResponse Lock the state of Terraform environment
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/lock (the `LockEnvironment` operationId).
	LockEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*LockEnvironmentResponse, error)

	// LockEnvironmentWithResponse Lock the state of Terraform environment
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/lock (the `LockEnvironment` operationId).
	LockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body LockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*LockEnvironmentResponse, error)

	// GetEnvironmentStateWithResponse Get the state of Terraform environment
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /client/{teamName}/{projectName}/{environmentName}/state (the `GetEnvironmentState` operationId).
	GetEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*GetEnvironmentStateResponse, error)

	// UpdateEnvironmentStateWithBodyWithResponse Update the state of Terraform environment
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/state (the `UpdateEnvironmentState` operationId).
	UpdateEnvironmentStateWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentStateResponse, error)

	// UpdateEnvironmentStateWithResponse Update the state of Terraform environment
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/state (the `UpdateEnvironmentState` operationId).
	UpdateEnvironmentStateWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentStateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentStateResponse, error)

	// UnlockEnvironmentWithBodyWithResponse Unlock the state of Terraform environment
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/unlock (the `UnlockEnvironment` operationId).
	UnlockEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UnlockEnvironmentResponse, error)

	// UnlockEnvironmentWithResponse Unlock the state of Terraform environment
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /client/{teamName}/{projectName}/{environmentName}/unlock (the `UnlockEnvironment` operationId).
	UnlockEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UnlockEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UnlockEnvironmentResponse, error)

	// GetTeamsWithResponse Get a list of teams
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams (the `GetTeams` operationId).
	GetTeamsWithResponse(ctx context.Context, params *GetTeamsParams, reqEditors ...RequestEditorFn) (*GetTeamsResponse, error)

	// CreateTeamWithBodyWithResponse Create a new team
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams (the `CreateTeam` operationId).
	CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

	// CreateTeamWithResponse Create a new team
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams (the `CreateTeam` operationId).
	CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error)

	// DeleteTeamWithResponse Delete a team
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /teams/{teamName} (the `DeleteTeam` operationId).
	DeleteTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error)

	// GetTeamWithResponse Get a team
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{teamName} (the `GetTeam` operationId).
	GetTeamWithResponse(ctx context.Context, teamName TeamName, reqEditors ...RequestEditorFn) (*GetTeamResponse, error)

	// UpdateTeamWithBodyWithResponse Update a team
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /teams/{teamName} (the `UpdateTeam` operationId).
	UpdateTeamWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

	// UpdateTeamWithResponse Update a team
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /teams/{teamName} (the `UpdateTeam` operationId).
	UpdateTeamWithResponse(ctx context.Context, teamName TeamName, body UpdateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTeamResponse, error)

	// GetProjectsWithResponse Get a list of projects
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{teamName}/projects (the `GetProjects` operationId).
	GetProjectsWithResponse(ctx context.Context, teamName TeamName, params *GetProjectsParams, reqEditors ...RequestEditorFn) (*GetProjectsResponse, error)

	// CreateProjectWithBodyWithResponse Create a new project
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams/{teamName}/projects (the `CreateProject` operationId).
	CreateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

	// CreateProjectWithResponse Create a new project
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams/{teamName}/projects (the `CreateProject` operationId).
	CreateProjectWithResponse(ctx context.Context, teamName TeamName, body CreateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateProjectResponse, error)

	// DeleteProjectWithResponse Delete a project
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /teams/{teamName}/projects/{projectName} (the `DeleteProject` operationId).
	DeleteProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

	// GetProjectWithResponse Get a project
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName} (the `GetProject` operationId).
	GetProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

	// UpdateProjectWithBodyWithResponse Update a project
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /teams/{teamName}/projects/{projectName} (the `UpdateProject` operationId).
	UpdateProjectWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

	// UpdateProjectWithResponse Update a project
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /teams/{teamName}/projects/{projectName} (the `UpdateProject` operationId).
	UpdateProjectWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

	// GetEnvironmentsWithResponse Get a list of environments
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments (the `GetEnvironments` operationId).
	GetEnvironmentsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, params *GetEnvironmentsParams, reqEditors ...RequestEditorFn) (*GetEnvironmentsResponse, error)

	// CreateEnvironmentWithBodyWithResponse Create a new environment
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams/{teamName}/projects/{projectName}/environments (the `CreateEnvironment` operationId).
	CreateEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)

	// CreateEnvironmentWithResponse Create a new environment
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams/{teamName}/projects/{projectName}/environments (the `CreateEnvironment` operationId).
	CreateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, body CreateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEnvironmentResponse, error)

	// DeleteEnvironmentWithResponse Delete an environment
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `DeleteEnvironment` operationId).
	DeleteEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*DeleteEnvironmentResponse, error)

	// GetEnvironmentWithResponse Get an environment
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `GetEnvironment` operationId).
	GetEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, reqEditors ...RequestEditorFn) (*GetEnvironmentResponse, error)

	// UpdateEnvironmentWithBodyWithResponse Update an environment
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `UpdateEnvironment` operationId).
	UpdateEnvironmentWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)

	// UpdateEnvironmentWithResponse Update an environment
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName} (the `UpdateEnvironment` operationId).
	UpdateEnvironmentWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body UpdateEnvironmentJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEnvironmentResponse, error)

	// GetSnapshotsWithResponse Get a list of snapshots
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `GetSnapshots` operationId).
	GetSnapshotsWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, params *GetSnapshotsParams, reqEditors ...RequestEditorFn) (*GetSnapshotsResponse, error)

	// CreateSnapshotWithBodyWithResponse Create a new snapshot
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `CreateSnapshot` operationId).
	CreateSnapshotWithBodyWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

	// CreateSnapshotWithResponse Create a new snapshot
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots (the `CreateSnapshot` operationId).
	CreateSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, body CreateSnapshotJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSnapshotResponse, error)

	// DeleteSnapshotWithResponse Delete a snapshot
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId} (the `DeleteSnapshot` operationId).
	DeleteSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*DeleteSnapshotResponse, error)

	// GetSnapshotWithResponse Get a snapshot
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId} (the `GetSnapshot` operationId).
	GetSnapshotWithResponse(ctx context.Context, teamName TeamName, projectName ProjectName, environmentName EnvironmentName, snapshotId SnapshotId, reqEditors ...RequestEditorFn) (*GetSnapshotResponse, error)

	// GetStatesWithResponse Get the state of Terraform environment
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/states (the `GetStates` operationId).
	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 the response for an HTTP 201 `application/json` response
	JSON201 *Environment
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseCreateEnvironmentResponse

func ParseCreateEnvironmentResponse(rsp *http.Response) (*CreateEnvironmentResponse, error)

ParseCreateEnvironmentResponse parses an HTTP response from a CreateEnvironmentWithResponse call

func (CreateEnvironmentResponse) ContentType added in v0.1.3

func (r CreateEnvironmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateEnvironmentResponse) GetBody added in v0.1.3

func (r CreateEnvironmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateEnvironmentResponse) GetJSON201 added in v0.1.3

func (r CreateEnvironmentResponse) GetJSON201() *Environment

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateEnvironmentResponse) GetJSON500 added in v0.1.3

func (r CreateEnvironmentResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 201 `application/json` response
	JSON201 *Project
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseCreateProjectResponse

func ParseCreateProjectResponse(rsp *http.Response) (*CreateProjectResponse, error)

ParseCreateProjectResponse parses an HTTP response from a CreateProjectWithResponse call

func (CreateProjectResponse) ContentType added in v0.1.3

func (r CreateProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateProjectResponse) GetBody added in v0.1.3

func (r CreateProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateProjectResponse) GetJSON201 added in v0.1.3

func (r CreateProjectResponse) GetJSON201() *Project

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateProjectResponse) GetJSON500 added in v0.1.3

func (r CreateProjectResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 201 `application/json` response
	JSON201 *Snapshot
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseCreateSnapshotResponse

func ParseCreateSnapshotResponse(rsp *http.Response) (*CreateSnapshotResponse, error)

ParseCreateSnapshotResponse parses an HTTP response from a CreateSnapshotWithResponse call

func (CreateSnapshotResponse) ContentType added in v0.1.3

func (r CreateSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateSnapshotResponse) GetBody added in v0.1.3

func (r CreateSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateSnapshotResponse) GetJSON201 added in v0.1.3

func (r CreateSnapshotResponse) GetJSON201() *Snapshot

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateSnapshotResponse) GetJSON500 added in v0.1.3

func (r CreateSnapshotResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 201 `application/json` response
	JSON201 *Team
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseCreateTeamResponse

func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error)

ParseCreateTeamResponse parses an HTTP response from a CreateTeamWithResponse call

func (CreateTeamResponse) ContentType added in v0.1.3

func (r CreateTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateTeamResponse) GetBody added in v0.1.3

func (r CreateTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateTeamResponse) GetJSON201 added in v0.1.3

func (r CreateTeamResponse) GetJSON201() *Team

GetJSON201 returns the response for an HTTP 201 `application/json` response

func (CreateTeamResponse) GetJSON500 added in v0.1.3

func (r CreateTeamResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseDeleteEnvironmentResponse

func ParseDeleteEnvironmentResponse(rsp *http.Response) (*DeleteEnvironmentResponse, error)

ParseDeleteEnvironmentResponse parses an HTTP response from a DeleteEnvironmentWithResponse call

func (DeleteEnvironmentResponse) ContentType added in v0.1.3

func (r DeleteEnvironmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteEnvironmentResponse) GetBody added in v0.1.3

func (r DeleteEnvironmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteEnvironmentResponse) GetJSON404 added in v0.1.3

func (r DeleteEnvironmentResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteEnvironmentResponse) GetJSON500 added in v0.1.3

func (r DeleteEnvironmentResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseDeleteProjectResponse

func ParseDeleteProjectResponse(rsp *http.Response) (*DeleteProjectResponse, error)

ParseDeleteProjectResponse parses an HTTP response from a DeleteProjectWithResponse call

func (DeleteProjectResponse) ContentType added in v0.1.3

func (r DeleteProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteProjectResponse) GetBody added in v0.1.3

func (r DeleteProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteProjectResponse) GetJSON404 added in v0.1.3

func (r DeleteProjectResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteProjectResponse) GetJSON500 added in v0.1.3

func (r DeleteProjectResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseDeleteSnapshotResponse

func ParseDeleteSnapshotResponse(rsp *http.Response) (*DeleteSnapshotResponse, error)

ParseDeleteSnapshotResponse parses an HTTP response from a DeleteSnapshotWithResponse call

func (DeleteSnapshotResponse) ContentType added in v0.1.3

func (r DeleteSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteSnapshotResponse) GetBody added in v0.1.3

func (r DeleteSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteSnapshotResponse) GetJSON404 added in v0.1.3

func (r DeleteSnapshotResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteSnapshotResponse) GetJSON500 added in v0.1.3

func (r DeleteSnapshotResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseDeleteTeamResponse

func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error)

ParseDeleteTeamResponse parses an HTTP response from a DeleteTeamWithResponse call

func (DeleteTeamResponse) ContentType added in v0.1.3

func (r DeleteTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteTeamResponse) GetBody added in v0.1.3

func (r DeleteTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteTeamResponse) GetJSON404 added in v0.1.3

func (r DeleteTeamResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteTeamResponse) GetJSON500 added in v0.1.3

func (r DeleteTeamResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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
	HandlerMiddlewares []HandlerMiddlewareFunc
}

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 the response for an HTTP 200 `application/json` response
	JSON200 *Environment
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetEnvironmentResponse

func ParseGetEnvironmentResponse(rsp *http.Response) (*GetEnvironmentResponse, error)

ParseGetEnvironmentResponse parses an HTTP response from a GetEnvironmentWithResponse call

func (GetEnvironmentResponse) ContentType added in v0.1.3

func (r GetEnvironmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetEnvironmentResponse) GetBody added in v0.1.3

func (r GetEnvironmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetEnvironmentResponse) GetJSON200 added in v0.1.3

func (r GetEnvironmentResponse) GetJSON200() *Environment

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetEnvironmentResponse) GetJSON404 added in v0.1.3

func (r GetEnvironmentResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetEnvironmentResponse) GetJSON500 added in v0.1.3

func (r GetEnvironmentResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *Payload
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetEnvironmentStateResponse

func ParseGetEnvironmentStateResponse(rsp *http.Response) (*GetEnvironmentStateResponse, error)

ParseGetEnvironmentStateResponse parses an HTTP response from a GetEnvironmentStateWithResponse call

func (GetEnvironmentStateResponse) ContentType added in v0.1.3

func (r GetEnvironmentStateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetEnvironmentStateResponse) GetBody added in v0.1.3

func (r GetEnvironmentStateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetEnvironmentStateResponse) GetJSON200 added in v0.1.3

func (r GetEnvironmentStateResponse) GetJSON200() *Payload

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetEnvironmentStateResponse) GetJSON404 added in v0.1.3

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetEnvironmentStateResponse) GetJSON500 added in v0.1.3

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (GetEnvironmentStateResponse) Status

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 the response for an HTTP 200 `application/json` 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 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetEnvironmentsResponse

func ParseGetEnvironmentsResponse(rsp *http.Response) (*GetEnvironmentsResponse, error)

ParseGetEnvironmentsResponse parses an HTTP response from a GetEnvironmentsWithResponse call

func (GetEnvironmentsResponse) ContentType added in v0.1.3

func (r GetEnvironmentsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetEnvironmentsResponse) GetBody added in v0.1.3

func (r GetEnvironmentsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetEnvironmentsResponse) GetJSON200 added in v0.1.3

func (r GetEnvironmentsResponse) GetJSON200() *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"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetEnvironmentsResponse) GetJSON500 added in v0.1.3

func (r GetEnvironmentsResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *HealthResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *HealthResponse
}

func ParseGetHealthResponse

func ParseGetHealthResponse(rsp *http.Response) (*GetHealthResponse, error)

ParseGetHealthResponse parses an HTTP response from a GetHealthWithResponse call

func (GetHealthResponse) ContentType added in v0.1.3

func (r GetHealthResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetHealthResponse) GetBody added in v0.1.3

func (r GetHealthResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetHealthResponse) GetJSON200 added in v0.1.3

func (r GetHealthResponse) GetJSON200() *HealthResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetHealthResponse) GetJSON500 added in v0.1.3

func (r GetHealthResponse) GetJSON500() *HealthResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *Project
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetProjectResponse

func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error)

ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call

func (GetProjectResponse) ContentType added in v0.1.3

func (r GetProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetProjectResponse) GetBody added in v0.1.3

func (r GetProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetProjectResponse) GetJSON200 added in v0.1.3

func (r GetProjectResponse) GetJSON200() *Project

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetProjectResponse) GetJSON404 added in v0.1.3

func (r GetProjectResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetProjectResponse) GetJSON500 added in v0.1.3

func (r GetProjectResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` 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 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetProjectsResponse

func ParseGetProjectsResponse(rsp *http.Response) (*GetProjectsResponse, error)

ParseGetProjectsResponse parses an HTTP response from a GetProjectsWithResponse call

func (GetProjectsResponse) ContentType added in v0.1.3

func (r GetProjectsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetProjectsResponse) GetBody added in v0.1.3

func (r GetProjectsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetProjectsResponse) GetJSON200 added in v0.1.3

func (r GetProjectsResponse) GetJSON200() *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"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetProjectsResponse) GetJSON500 added in v0.1.3

func (r GetProjectsResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *HealthResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *HealthResponse
}

func ParseGetReadyResponse

func ParseGetReadyResponse(rsp *http.Response) (*GetReadyResponse, error)

ParseGetReadyResponse parses an HTTP response from a GetReadyWithResponse call

func (GetReadyResponse) ContentType added in v0.1.3

func (r GetReadyResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetReadyResponse) GetBody added in v0.1.3

func (r GetReadyResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetReadyResponse) GetJSON200 added in v0.1.3

func (r GetReadyResponse) GetJSON200() *HealthResponse

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetReadyResponse) GetJSON500 added in v0.1.3

func (r GetReadyResponse) GetJSON500() *HealthResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *Snapshot
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetSnapshotResponse

func ParseGetSnapshotResponse(rsp *http.Response) (*GetSnapshotResponse, error)

ParseGetSnapshotResponse parses an HTTP response from a GetSnapshotWithResponse call

func (GetSnapshotResponse) ContentType added in v0.1.3

func (r GetSnapshotResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSnapshotResponse) GetBody added in v0.1.3

func (r GetSnapshotResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSnapshotResponse) GetJSON200 added in v0.1.3

func (r GetSnapshotResponse) GetJSON200() *Snapshot

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSnapshotResponse) GetJSON404 added in v0.1.3

func (r GetSnapshotResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetSnapshotResponse) GetJSON500 added in v0.1.3

func (r GetSnapshotResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` 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 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetSnapshotsResponse

func ParseGetSnapshotsResponse(rsp *http.Response) (*GetSnapshotsResponse, error)

ParseGetSnapshotsResponse parses an HTTP response from a GetSnapshotsWithResponse call

func (GetSnapshotsResponse) ContentType added in v0.1.3

func (r GetSnapshotsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSnapshotsResponse) GetBody added in v0.1.3

func (r GetSnapshotsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSnapshotsResponse) GetJSON200 added in v0.1.3

func (r GetSnapshotsResponse) GetJSON200() *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"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSnapshotsResponse) GetJSON500 added in v0.1.3

func (r GetSnapshotsResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *struct {
		States *[]State `json:"states,omitempty"`
	}
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetStatesResponse

func ParseGetStatesResponse(rsp *http.Response) (*GetStatesResponse, error)

ParseGetStatesResponse parses an HTTP response from a GetStatesWithResponse call

func (GetStatesResponse) ContentType added in v0.1.3

func (r GetStatesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetStatesResponse) GetBody added in v0.1.3

func (r GetStatesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetStatesResponse) GetJSON200 added in v0.1.3

func (r GetStatesResponse) GetJSON200() *struct {
	States *[]State `json:"states,omitempty"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetStatesResponse) GetJSON404 added in v0.1.3

func (r GetStatesResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetStatesResponse) GetJSON500 added in v0.1.3

func (r GetStatesResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *Team
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetTeamResponse

func ParseGetTeamResponse(rsp *http.Response) (*GetTeamResponse, error)

ParseGetTeamResponse parses an HTTP response from a GetTeamWithResponse call

func (GetTeamResponse) ContentType added in v0.1.3

func (r GetTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTeamResponse) GetBody added in v0.1.3

func (r GetTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTeamResponse) GetJSON200 added in v0.1.3

func (r GetTeamResponse) GetJSON200() *Team

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTeamResponse) GetJSON404 added in v0.1.3

func (r GetTeamResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetTeamResponse) GetJSON500 added in v0.1.3

func (r GetTeamResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` 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 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseGetTeamsResponse

func ParseGetTeamsResponse(rsp *http.Response) (*GetTeamsResponse, error)

ParseGetTeamsResponse parses an HTTP response from a GetTeamsWithResponse call

func (GetTeamsResponse) ContentType added in v0.1.3

func (r GetTeamsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetTeamsResponse) GetBody added in v0.1.3

func (r GetTeamsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetTeamsResponse) GetJSON200 added in v0.1.3

func (r GetTeamsResponse) GetJSON200() *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"`
}

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetTeamsResponse) GetJSON500 added in v0.1.3

func (r GetTeamsResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 HandlerMiddlewareFunc added in v0.1.3

type HandlerMiddlewareFunc func(c *fiber.Ctx, next fiber.Handler) error

type HealthResponse

type HealthResponse struct {
	ErrorMessage *string `json:"errorMessage,omitempty"`
	Status       *string `json:"status,omitempty"`
}

HealthResponse defines model for HealthResponse.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type Limit

type Limit = int

Limit defines model for limit.

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 the response for an HTTP 200 `application/json` response
	JSON200 *LockInfo
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseLockEnvironmentResponse

func ParseLockEnvironmentResponse(rsp *http.Response) (*LockEnvironmentResponse, error)

ParseLockEnvironmentResponse parses an HTTP response from a LockEnvironmentWithResponse call

func (LockEnvironmentResponse) ContentType added in v0.1.3

func (r LockEnvironmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (LockEnvironmentResponse) GetBody added in v0.1.3

func (r LockEnvironmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (LockEnvironmentResponse) GetJSON200 added in v0.1.3

func (r LockEnvironmentResponse) GetJSON200() *LockInfo

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (LockEnvironmentResponse) GetJSON404 added in v0.1.3

func (r LockEnvironmentResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (LockEnvironmentResponse) GetJSON500 added in v0.1.3

func (r LockEnvironmentResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 Offset

type Offset = int

Offset defines model for offset.

type Payload

type Payload = map[string]interface{}

Payload defines model for Payload.

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 ProjectName

type ProjectName = string

ProjectName defines model for projectName.

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

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type ServerInterface

type ServerInterface interface {
	// GetHealth Get system health status
	// (GET /_health)
	GetHealth(c *fiber.Ctx) error
	// GetReady Get system readiness
	// (GET /_ready)
	GetReady(c *fiber.Ctx) error
	// LockEnvironment Lock the state of Terraform environment
	// (POST /client/{teamName}/{projectName}/{environmentName}/lock)
	LockEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error
	// GetEnvironmentState Get the state of Terraform environment
	// (GET /client/{teamName}/{projectName}/{environmentName}/state)
	GetEnvironmentState(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error
	// UpdateEnvironmentState Update the state of Terraform environment
	// (POST /client/{teamName}/{projectName}/{environmentName}/state)
	UpdateEnvironmentState(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error
	// UnlockEnvironment Unlock the state of Terraform environment
	// (POST /client/{teamName}/{projectName}/{environmentName}/unlock)
	UnlockEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error
	// GetTeams Get a list of teams
	// (GET /teams)
	GetTeams(c *fiber.Ctx, params GetTeamsParams) error
	// CreateTeam Create a new team
	// (POST /teams)
	CreateTeam(c *fiber.Ctx) error
	// DeleteTeam Delete a team
	// (DELETE /teams/{teamName})
	DeleteTeam(c *fiber.Ctx, teamName TeamName) error
	// GetTeam Get a team
	// (GET /teams/{teamName})
	GetTeam(c *fiber.Ctx, teamName TeamName) error
	// UpdateTeam Update a team
	// (PUT /teams/{teamName})
	UpdateTeam(c *fiber.Ctx, teamName TeamName) error
	// GetProjects Get a list of projects
	// (GET /teams/{teamName}/projects)
	GetProjects(c *fiber.Ctx, teamName TeamName, params GetProjectsParams) error
	// CreateProject Create a new project
	// (POST /teams/{teamName}/projects)
	CreateProject(c *fiber.Ctx, teamName TeamName) error
	// DeleteProject Delete a project
	// (DELETE /teams/{teamName}/projects/{projectName})
	DeleteProject(c *fiber.Ctx, teamName TeamName, projectName ProjectName) error
	// GetProject Get a project
	// (GET /teams/{teamName}/projects/{projectName})
	GetProject(c *fiber.Ctx, teamName TeamName, projectName ProjectName) error
	// UpdateProject Update a project
	// (PUT /teams/{teamName}/projects/{projectName})
	UpdateProject(c *fiber.Ctx, teamName TeamName, projectName ProjectName) error
	// GetEnvironments Get a list of environments
	// (GET /teams/{teamName}/projects/{projectName}/environments)
	GetEnvironments(c *fiber.Ctx, teamName TeamName, projectName ProjectName, params GetEnvironmentsParams) error
	// CreateEnvironment Create a new environment
	// (POST /teams/{teamName}/projects/{projectName}/environments)
	CreateEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName) error
	// DeleteEnvironment Delete an environment
	// (DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName})
	DeleteEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error
	// GetEnvironment Get an environment
	// (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName})
	GetEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error
	// UpdateEnvironment Update an environment
	// (PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName})
	UpdateEnvironment(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error
	// GetSnapshots 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
	// CreateSnapshot Create a new snapshot
	// (POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots)
	CreateSnapshot(c *fiber.Ctx, teamName TeamName, projectName ProjectName, environmentName EnvironmentName) error
	// DeleteSnapshot 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
	// GetSnapshot 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
	// GetStates 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
	HandlerMiddlewares []HandlerMiddlewareFunc
}

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 SnapshotId

type SnapshotId = openapi_types.UUID

SnapshotId defines model for snapshotId.

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 any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// GetHealth Get system health status
	// (GET /_health)
	GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
	// GetReady Get system readiness
	// (GET /_ready)
	GetReady(ctx context.Context, request GetReadyRequestObject) (GetReadyResponseObject, error)
	// LockEnvironment Lock the state of Terraform environment
	// (POST /client/{teamName}/{projectName}/{environmentName}/lock)
	LockEnvironment(ctx context.Context, request LockEnvironmentRequestObject) (LockEnvironmentResponseObject, error)
	// GetEnvironmentState Get the state of Terraform environment
	// (GET /client/{teamName}/{projectName}/{environmentName}/state)
	GetEnvironmentState(ctx context.Context, request GetEnvironmentStateRequestObject) (GetEnvironmentStateResponseObject, error)
	// UpdateEnvironmentState Update the state of Terraform environment
	// (POST /client/{teamName}/{projectName}/{environmentName}/state)
	UpdateEnvironmentState(ctx context.Context, request UpdateEnvironmentStateRequestObject) (UpdateEnvironmentStateResponseObject, error)
	// UnlockEnvironment Unlock the state of Terraform environment
	// (POST /client/{teamName}/{projectName}/{environmentName}/unlock)
	UnlockEnvironment(ctx context.Context, request UnlockEnvironmentRequestObject) (UnlockEnvironmentResponseObject, error)
	// GetTeams Get a list of teams
	// (GET /teams)
	GetTeams(ctx context.Context, request GetTeamsRequestObject) (GetTeamsResponseObject, error)
	// CreateTeam Create a new team
	// (POST /teams)
	CreateTeam(ctx context.Context, request CreateTeamRequestObject) (CreateTeamResponseObject, error)
	// DeleteTeam Delete a team
	// (DELETE /teams/{teamName})
	DeleteTeam(ctx context.Context, request DeleteTeamRequestObject) (DeleteTeamResponseObject, error)
	// GetTeam Get a team
	// (GET /teams/{teamName})
	GetTeam(ctx context.Context, request GetTeamRequestObject) (GetTeamResponseObject, error)
	// UpdateTeam Update a team
	// (PUT /teams/{teamName})
	UpdateTeam(ctx context.Context, request UpdateTeamRequestObject) (UpdateTeamResponseObject, error)
	// GetProjects Get a list of projects
	// (GET /teams/{teamName}/projects)
	GetProjects(ctx context.Context, request GetProjectsRequestObject) (GetProjectsResponseObject, error)
	// CreateProject Create a new project
	// (POST /teams/{teamName}/projects)
	CreateProject(ctx context.Context, request CreateProjectRequestObject) (CreateProjectResponseObject, error)
	// DeleteProject Delete a project
	// (DELETE /teams/{teamName}/projects/{projectName})
	DeleteProject(ctx context.Context, request DeleteProjectRequestObject) (DeleteProjectResponseObject, error)
	// GetProject Get a project
	// (GET /teams/{teamName}/projects/{projectName})
	GetProject(ctx context.Context, request GetProjectRequestObject) (GetProjectResponseObject, error)
	// UpdateProject Update a project
	// (PUT /teams/{teamName}/projects/{projectName})
	UpdateProject(ctx context.Context, request UpdateProjectRequestObject) (UpdateProjectResponseObject, error)
	// GetEnvironments Get a list of environments
	// (GET /teams/{teamName}/projects/{projectName}/environments)
	GetEnvironments(ctx context.Context, request GetEnvironmentsRequestObject) (GetEnvironmentsResponseObject, error)
	// CreateEnvironment Create a new environment
	// (POST /teams/{teamName}/projects/{projectName}/environments)
	CreateEnvironment(ctx context.Context, request CreateEnvironmentRequestObject) (CreateEnvironmentResponseObject, error)
	// DeleteEnvironment Delete an environment
	// (DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName})
	DeleteEnvironment(ctx context.Context, request DeleteEnvironmentRequestObject) (DeleteEnvironmentResponseObject, error)
	// GetEnvironment Get an environment
	// (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName})
	GetEnvironment(ctx context.Context, request GetEnvironmentRequestObject) (GetEnvironmentResponseObject, error)
	// UpdateEnvironment Update an environment
	// (PUT /teams/{teamName}/projects/{projectName}/environments/{environmentName})
	UpdateEnvironment(ctx context.Context, request UpdateEnvironmentRequestObject) (UpdateEnvironmentResponseObject, error)
	// GetSnapshots Get a list of snapshots
	// (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots)
	GetSnapshots(ctx context.Context, request GetSnapshotsRequestObject) (GetSnapshotsResponseObject, error)
	// CreateSnapshot Create a new snapshot
	// (POST /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots)
	CreateSnapshot(ctx context.Context, request CreateSnapshotRequestObject) (CreateSnapshotResponseObject, error)
	// DeleteSnapshot Delete a snapshot
	// (DELETE /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId})
	DeleteSnapshot(ctx context.Context, request DeleteSnapshotRequestObject) (DeleteSnapshotResponseObject, error)
	// GetSnapshot Get a snapshot
	// (GET /teams/{teamName}/projects/{projectName}/environments/{environmentName}/snapshots/{snapshotId})
	GetSnapshot(ctx context.Context, request GetSnapshotRequestObject) (GetSnapshotResponseObject, error)
	// GetStates 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 TeamName

type TeamName = string

TeamName defines model for teamName.

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 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseUnlockEnvironmentResponse

func ParseUnlockEnvironmentResponse(rsp *http.Response) (*UnlockEnvironmentResponse, error)

ParseUnlockEnvironmentResponse parses an HTTP response from a UnlockEnvironmentWithResponse call

func (UnlockEnvironmentResponse) ContentType added in v0.1.3

func (r UnlockEnvironmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnlockEnvironmentResponse) GetBody added in v0.1.3

func (r UnlockEnvironmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UnlockEnvironmentResponse) GetJSON404 added in v0.1.3

func (r UnlockEnvironmentResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UnlockEnvironmentResponse) GetJSON500 added in v0.1.3

func (r UnlockEnvironmentResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *Environment
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseUpdateEnvironmentResponse

func ParseUpdateEnvironmentResponse(rsp *http.Response) (*UpdateEnvironmentResponse, error)

ParseUpdateEnvironmentResponse parses an HTTP response from a UpdateEnvironmentWithResponse call

func (UpdateEnvironmentResponse) ContentType added in v0.1.3

func (r UpdateEnvironmentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateEnvironmentResponse) GetBody added in v0.1.3

func (r UpdateEnvironmentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateEnvironmentResponse) GetJSON200 added in v0.1.3

func (r UpdateEnvironmentResponse) GetJSON200() *Environment

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateEnvironmentResponse) GetJSON404 added in v0.1.3

func (r UpdateEnvironmentResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateEnvironmentResponse) GetJSON500 added in v0.1.3

func (r UpdateEnvironmentResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *Payload
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseUpdateEnvironmentStateResponse

func ParseUpdateEnvironmentStateResponse(rsp *http.Response) (*UpdateEnvironmentStateResponse, error)

ParseUpdateEnvironmentStateResponse parses an HTTP response from a UpdateEnvironmentStateWithResponse call

func (UpdateEnvironmentStateResponse) ContentType added in v0.1.3

func (r UpdateEnvironmentStateResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateEnvironmentStateResponse) GetBody added in v0.1.3

func (r UpdateEnvironmentStateResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateEnvironmentStateResponse) GetJSON200 added in v0.1.3

func (r UpdateEnvironmentStateResponse) GetJSON200() *Payload

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateEnvironmentStateResponse) GetJSON404 added in v0.1.3

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateEnvironmentStateResponse) GetJSON500 added in v0.1.3

GetJSON500 returns the response for an HTTP 500 `application/json` response

func (UpdateEnvironmentStateResponse) Status

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 the response for an HTTP 200 `application/json` response
	JSON200 *Project
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseUpdateProjectResponse

func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error)

ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call

func (UpdateProjectResponse) ContentType added in v0.1.3

func (r UpdateProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateProjectResponse) GetBody added in v0.1.3

func (r UpdateProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateProjectResponse) GetJSON200 added in v0.1.3

func (r UpdateProjectResponse) GetJSON200() *Project

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateProjectResponse) GetJSON404 added in v0.1.3

func (r UpdateProjectResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateProjectResponse) GetJSON500 added in v0.1.3

func (r UpdateProjectResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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 the response for an HTTP 200 `application/json` response
	JSON200 *Team
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON500 the response for an HTTP 500 `application/json` response
	JSON500 *ErrorResponse
}

func ParseUpdateTeamResponse

func ParseUpdateTeamResponse(rsp *http.Response) (*UpdateTeamResponse, error)

ParseUpdateTeamResponse parses an HTTP response from a UpdateTeamWithResponse call

func (UpdateTeamResponse) ContentType added in v0.1.3

func (r UpdateTeamResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateTeamResponse) GetBody added in v0.1.3

func (r UpdateTeamResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateTeamResponse) GetJSON200 added in v0.1.3

func (r UpdateTeamResponse) GetJSON200() *Team

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateTeamResponse) GetJSON404 added in v0.1.3

func (r UpdateTeamResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateTeamResponse) GetJSON500 added in v0.1.3

func (r UpdateTeamResponse) GetJSON500() *ErrorResponse

GetJSON500 returns the response for an HTTP 500 `application/json` response

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
}

Jump to

Keyboard shortcuts

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