Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateWorkspace(params *CreateWorkspaceParams, authInfo runtime.ClientAuthInfoWriter) (*CreateWorkspaceOK, *CreateWorkspaceCreated, error)
- func (a *Client) DescribeWorkspace(params *DescribeWorkspaceParams, authInfo runtime.ClientAuthInfoWriter) (*DescribeWorkspaceOK, error)
- func (a *Client) ListWorkspaces(params *ListWorkspacesParams, authInfo runtime.ClientAuthInfoWriter) (*ListWorkspacesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type CreateWorkspaceBadRequest
- type CreateWorkspaceCreated
- type CreateWorkspaceInternalServerError
- type CreateWorkspaceNotFound
- type CreateWorkspaceOK
- type CreateWorkspaceParams
- func NewCreateWorkspaceParams() *CreateWorkspaceParams
- func NewCreateWorkspaceParamsWithContext(ctx context.Context) *CreateWorkspaceParams
- func NewCreateWorkspaceParamsWithHTTPClient(client *http.Client) *CreateWorkspaceParams
- func NewCreateWorkspaceParamsWithTimeout(timeout time.Duration) *CreateWorkspaceParams
- func (o *CreateWorkspaceParams) SetContext(ctx context.Context)
- func (o *CreateWorkspaceParams) SetHTTPClient(client *http.Client)
- func (o *CreateWorkspaceParams) SetName(name string)
- func (o *CreateWorkspaceParams) SetTerraformWorkspace(terraformWorkspace *models.ResourceTfWorkspace)
- func (o *CreateWorkspaceParams) SetTimeout(timeout time.Duration)
- func (o *CreateWorkspaceParams) WithContext(ctx context.Context) *CreateWorkspaceParams
- func (o *CreateWorkspaceParams) WithHTTPClient(client *http.Client) *CreateWorkspaceParams
- func (o *CreateWorkspaceParams) WithName(name string) *CreateWorkspaceParams
- func (o *CreateWorkspaceParams) WithTerraformWorkspace(terraformWorkspace *models.ResourceTfWorkspace) *CreateWorkspaceParams
- func (o *CreateWorkspaceParams) WithTimeout(timeout time.Duration) *CreateWorkspaceParams
- func (o *CreateWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateWorkspaceReader
- type DescribeWorkspaceInternalServerError
- type DescribeWorkspaceNotFound
- type DescribeWorkspaceOK
- type DescribeWorkspaceParams
- func NewDescribeWorkspaceParams() *DescribeWorkspaceParams
- func NewDescribeWorkspaceParamsWithContext(ctx context.Context) *DescribeWorkspaceParams
- func NewDescribeWorkspaceParamsWithHTTPClient(client *http.Client) *DescribeWorkspaceParams
- func NewDescribeWorkspaceParamsWithTimeout(timeout time.Duration) *DescribeWorkspaceParams
- func (o *DescribeWorkspaceParams) SetContext(ctx context.Context)
- func (o *DescribeWorkspaceParams) SetHTTPClient(client *http.Client)
- func (o *DescribeWorkspaceParams) SetName(name string)
- func (o *DescribeWorkspaceParams) SetTimeout(timeout time.Duration)
- func (o *DescribeWorkspaceParams) WithContext(ctx context.Context) *DescribeWorkspaceParams
- func (o *DescribeWorkspaceParams) WithHTTPClient(client *http.Client) *DescribeWorkspaceParams
- func (o *DescribeWorkspaceParams) WithName(name string) *DescribeWorkspaceParams
- func (o *DescribeWorkspaceParams) WithTimeout(timeout time.Duration) *DescribeWorkspaceParams
- func (o *DescribeWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DescribeWorkspaceReader
- type ListWorkspacesInternalServerError
- type ListWorkspacesNotFound
- type ListWorkspacesOK
- type ListWorkspacesParams
- func NewListWorkspacesParams() *ListWorkspacesParams
- func NewListWorkspacesParamsWithContext(ctx context.Context) *ListWorkspacesParams
- func NewListWorkspacesParamsWithHTTPClient(client *http.Client) *ListWorkspacesParams
- func NewListWorkspacesParamsWithTimeout(timeout time.Duration) *ListWorkspacesParams
- func (o *ListWorkspacesParams) SetContext(ctx context.Context)
- func (o *ListWorkspacesParams) SetHTTPClient(client *http.Client)
- func (o *ListWorkspacesParams) SetTimeout(timeout time.Duration)
- func (o *ListWorkspacesParams) WithContext(ctx context.Context) *ListWorkspacesParams
- func (o *ListWorkspacesParams) WithHTTPClient(client *http.Client) *ListWorkspacesParams
- func (o *ListWorkspacesParams) WithTimeout(timeout time.Duration) *ListWorkspacesParams
- func (o *ListWorkspacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListWorkspacesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for workspaces API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new workspaces API client.
func (*Client) CreateWorkspace ¶
func (a *Client) CreateWorkspace(params *CreateWorkspaceParams, authInfo runtime.ClientAuthInfoWriter) (*CreateWorkspaceOK, *CreateWorkspaceCreated, error)
CreateWorkspace Create a Terraform workspace
func (*Client) DescribeWorkspace ¶
func (a *Client) DescribeWorkspace(params *DescribeWorkspaceParams, authInfo runtime.ClientAuthInfoWriter) (*DescribeWorkspaceOK, error)
DescribeWorkspace Describe a terraform workspace
func (*Client) ListWorkspaces ¶
func (a *Client) ListWorkspaces(params *ListWorkspacesParams, authInfo runtime.ClientAuthInfoWriter) (*ListWorkspacesOK, error)
ListWorkspaces List approved terraform workspaces
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type CreateWorkspaceBadRequest ¶
type CreateWorkspaceBadRequest struct {
Payload *models.ServerError
}
CreateWorkspaceBadRequest handles this case with default header values.
Bad Request
func NewCreateWorkspaceBadRequest ¶
func NewCreateWorkspaceBadRequest() *CreateWorkspaceBadRequest
NewCreateWorkspaceBadRequest creates a CreateWorkspaceBadRequest with default headers values
func (*CreateWorkspaceBadRequest) Error ¶
func (o *CreateWorkspaceBadRequest) Error() string
type CreateWorkspaceCreated ¶
type CreateWorkspaceCreated struct {
Payload *models.ResourceTfWorkspace
}
CreateWorkspaceCreated handles this case with default header values.
Created
func NewCreateWorkspaceCreated ¶
func NewCreateWorkspaceCreated() *CreateWorkspaceCreated
NewCreateWorkspaceCreated creates a CreateWorkspaceCreated with default headers values
func (*CreateWorkspaceCreated) Error ¶
func (o *CreateWorkspaceCreated) Error() string
type CreateWorkspaceInternalServerError ¶
type CreateWorkspaceInternalServerError struct {
Payload *models.ServerError
}
CreateWorkspaceInternalServerError handles this case with default header values.
Internal Server Error
func NewCreateWorkspaceInternalServerError ¶
func NewCreateWorkspaceInternalServerError() *CreateWorkspaceInternalServerError
NewCreateWorkspaceInternalServerError creates a CreateWorkspaceInternalServerError with default headers values
func (*CreateWorkspaceInternalServerError) Error ¶
func (o *CreateWorkspaceInternalServerError) Error() string
type CreateWorkspaceNotFound ¶
type CreateWorkspaceNotFound struct {
Payload *models.ServerError
}
CreateWorkspaceNotFound handles this case with default header values.
Not Found
func NewCreateWorkspaceNotFound ¶
func NewCreateWorkspaceNotFound() *CreateWorkspaceNotFound
NewCreateWorkspaceNotFound creates a CreateWorkspaceNotFound with default headers values
func (*CreateWorkspaceNotFound) Error ¶
func (o *CreateWorkspaceNotFound) Error() string
type CreateWorkspaceOK ¶
type CreateWorkspaceOK struct {
Payload *models.ResourceTfWorkspace
}
CreateWorkspaceOK handles this case with default header values.
OK
func NewCreateWorkspaceOK ¶
func NewCreateWorkspaceOK() *CreateWorkspaceOK
NewCreateWorkspaceOK creates a CreateWorkspaceOK with default headers values
func (*CreateWorkspaceOK) Error ¶
func (o *CreateWorkspaceOK) Error() string
type CreateWorkspaceParams ¶
type CreateWorkspaceParams struct {
/*Name
A terraform workspace
*/
Name string
/*TerraformWorkspace
A terraform workspace
*/
TerraformWorkspace *models.ResourceTfWorkspace
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateWorkspaceParams contains all the parameters to send to the API endpoint for the create workspace operation typically these are written to a http.Request
func NewCreateWorkspaceParams ¶
func NewCreateWorkspaceParams() *CreateWorkspaceParams
NewCreateWorkspaceParams creates a new CreateWorkspaceParams object with the default values initialized.
func NewCreateWorkspaceParamsWithContext ¶
func NewCreateWorkspaceParamsWithContext(ctx context.Context) *CreateWorkspaceParams
NewCreateWorkspaceParamsWithContext creates a new CreateWorkspaceParams object with the default values initialized, and the ability to set a context for a request
func NewCreateWorkspaceParamsWithHTTPClient ¶
func NewCreateWorkspaceParamsWithHTTPClient(client *http.Client) *CreateWorkspaceParams
NewCreateWorkspaceParamsWithHTTPClient creates a new CreateWorkspaceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateWorkspaceParamsWithTimeout ¶
func NewCreateWorkspaceParamsWithTimeout(timeout time.Duration) *CreateWorkspaceParams
NewCreateWorkspaceParamsWithTimeout creates a new CreateWorkspaceParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateWorkspaceParams) SetContext ¶
func (o *CreateWorkspaceParams) SetContext(ctx context.Context)
SetContext adds the context to the create workspace params
func (*CreateWorkspaceParams) SetHTTPClient ¶
func (o *CreateWorkspaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create workspace params
func (*CreateWorkspaceParams) SetName ¶
func (o *CreateWorkspaceParams) SetName(name string)
SetName adds the name to the create workspace params
func (*CreateWorkspaceParams) SetTerraformWorkspace ¶
func (o *CreateWorkspaceParams) SetTerraformWorkspace(terraformWorkspace *models.ResourceTfWorkspace)
SetTerraformWorkspace adds the terraformWorkspace to the create workspace params
func (*CreateWorkspaceParams) SetTimeout ¶
func (o *CreateWorkspaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create workspace params
func (*CreateWorkspaceParams) WithContext ¶
func (o *CreateWorkspaceParams) WithContext(ctx context.Context) *CreateWorkspaceParams
WithContext adds the context to the create workspace params
func (*CreateWorkspaceParams) WithHTTPClient ¶
func (o *CreateWorkspaceParams) WithHTTPClient(client *http.Client) *CreateWorkspaceParams
WithHTTPClient adds the HTTPClient to the create workspace params
func (*CreateWorkspaceParams) WithName ¶
func (o *CreateWorkspaceParams) WithName(name string) *CreateWorkspaceParams
WithName adds the name to the create workspace params
func (*CreateWorkspaceParams) WithTerraformWorkspace ¶
func (o *CreateWorkspaceParams) WithTerraformWorkspace(terraformWorkspace *models.ResourceTfWorkspace) *CreateWorkspaceParams
WithTerraformWorkspace adds the terraformWorkspace to the create workspace params
func (*CreateWorkspaceParams) WithTimeout ¶
func (o *CreateWorkspaceParams) WithTimeout(timeout time.Duration) *CreateWorkspaceParams
WithTimeout adds the timeout to the create workspace params
func (*CreateWorkspaceParams) WriteToRequest ¶
func (o *CreateWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateWorkspaceReader ¶
type CreateWorkspaceReader struct {
// contains filtered or unexported fields
}
CreateWorkspaceReader is a Reader for the CreateWorkspace structure.
func (*CreateWorkspaceReader) ReadResponse ¶
func (o *CreateWorkspaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DescribeWorkspaceInternalServerError ¶
type DescribeWorkspaceInternalServerError struct {
Payload *models.ServerError
}
DescribeWorkspaceInternalServerError handles this case with default header values.
Internal Server Error
func NewDescribeWorkspaceInternalServerError ¶
func NewDescribeWorkspaceInternalServerError() *DescribeWorkspaceInternalServerError
NewDescribeWorkspaceInternalServerError creates a DescribeWorkspaceInternalServerError with default headers values
func (*DescribeWorkspaceInternalServerError) Error ¶
func (o *DescribeWorkspaceInternalServerError) Error() string
type DescribeWorkspaceNotFound ¶
type DescribeWorkspaceNotFound struct {
Payload *models.ServerError
}
DescribeWorkspaceNotFound handles this case with default header values.
Not Found
func NewDescribeWorkspaceNotFound ¶
func NewDescribeWorkspaceNotFound() *DescribeWorkspaceNotFound
NewDescribeWorkspaceNotFound creates a DescribeWorkspaceNotFound with default headers values
func (*DescribeWorkspaceNotFound) Error ¶
func (o *DescribeWorkspaceNotFound) Error() string
type DescribeWorkspaceOK ¶
type DescribeWorkspaceOK struct {
Payload *models.ResourceTfWorkspace
}
DescribeWorkspaceOK handles this case with default header values.
OK
func NewDescribeWorkspaceOK ¶
func NewDescribeWorkspaceOK() *DescribeWorkspaceOK
NewDescribeWorkspaceOK creates a DescribeWorkspaceOK with default headers values
func (*DescribeWorkspaceOK) Error ¶
func (o *DescribeWorkspaceOK) Error() string
type DescribeWorkspaceParams ¶
type DescribeWorkspaceParams struct {
/*Name
A terraform workspace
*/
Name string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DescribeWorkspaceParams contains all the parameters to send to the API endpoint for the describe workspace operation typically these are written to a http.Request
func NewDescribeWorkspaceParams ¶
func NewDescribeWorkspaceParams() *DescribeWorkspaceParams
NewDescribeWorkspaceParams creates a new DescribeWorkspaceParams object with the default values initialized.
func NewDescribeWorkspaceParamsWithContext ¶
func NewDescribeWorkspaceParamsWithContext(ctx context.Context) *DescribeWorkspaceParams
NewDescribeWorkspaceParamsWithContext creates a new DescribeWorkspaceParams object with the default values initialized, and the ability to set a context for a request
func NewDescribeWorkspaceParamsWithHTTPClient ¶
func NewDescribeWorkspaceParamsWithHTTPClient(client *http.Client) *DescribeWorkspaceParams
NewDescribeWorkspaceParamsWithHTTPClient creates a new DescribeWorkspaceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDescribeWorkspaceParamsWithTimeout ¶
func NewDescribeWorkspaceParamsWithTimeout(timeout time.Duration) *DescribeWorkspaceParams
NewDescribeWorkspaceParamsWithTimeout creates a new DescribeWorkspaceParams object with the default values initialized, and the ability to set a timeout on a request
func (*DescribeWorkspaceParams) SetContext ¶
func (o *DescribeWorkspaceParams) SetContext(ctx context.Context)
SetContext adds the context to the describe workspace params
func (*DescribeWorkspaceParams) SetHTTPClient ¶
func (o *DescribeWorkspaceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the describe workspace params
func (*DescribeWorkspaceParams) SetName ¶
func (o *DescribeWorkspaceParams) SetName(name string)
SetName adds the name to the describe workspace params
func (*DescribeWorkspaceParams) SetTimeout ¶
func (o *DescribeWorkspaceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the describe workspace params
func (*DescribeWorkspaceParams) WithContext ¶
func (o *DescribeWorkspaceParams) WithContext(ctx context.Context) *DescribeWorkspaceParams
WithContext adds the context to the describe workspace params
func (*DescribeWorkspaceParams) WithHTTPClient ¶
func (o *DescribeWorkspaceParams) WithHTTPClient(client *http.Client) *DescribeWorkspaceParams
WithHTTPClient adds the HTTPClient to the describe workspace params
func (*DescribeWorkspaceParams) WithName ¶
func (o *DescribeWorkspaceParams) WithName(name string) *DescribeWorkspaceParams
WithName adds the name to the describe workspace params
func (*DescribeWorkspaceParams) WithTimeout ¶
func (o *DescribeWorkspaceParams) WithTimeout(timeout time.Duration) *DescribeWorkspaceParams
WithTimeout adds the timeout to the describe workspace params
func (*DescribeWorkspaceParams) WriteToRequest ¶
func (o *DescribeWorkspaceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DescribeWorkspaceReader ¶
type DescribeWorkspaceReader struct {
// contains filtered or unexported fields
}
DescribeWorkspaceReader is a Reader for the DescribeWorkspace structure.
func (*DescribeWorkspaceReader) ReadResponse ¶
func (o *DescribeWorkspaceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListWorkspacesInternalServerError ¶
type ListWorkspacesInternalServerError struct {
Payload *models.ServerError
}
ListWorkspacesInternalServerError handles this case with default header values.
Internal Server Error
func NewListWorkspacesInternalServerError ¶
func NewListWorkspacesInternalServerError() *ListWorkspacesInternalServerError
NewListWorkspacesInternalServerError creates a ListWorkspacesInternalServerError with default headers values
func (*ListWorkspacesInternalServerError) Error ¶
func (o *ListWorkspacesInternalServerError) Error() string
type ListWorkspacesNotFound ¶
type ListWorkspacesNotFound struct {
}
ListWorkspacesNotFound handles this case with default header values.
Not Found
func NewListWorkspacesNotFound ¶
func NewListWorkspacesNotFound() *ListWorkspacesNotFound
NewListWorkspacesNotFound creates a ListWorkspacesNotFound with default headers values
func (*ListWorkspacesNotFound) Error ¶
func (o *ListWorkspacesNotFound) Error() string
type ListWorkspacesOK ¶
type ListWorkspacesOK struct {
Payload *models.ResponseListTfWorkspaces
}
ListWorkspacesOK handles this case with default header values.
OK
func NewListWorkspacesOK ¶
func NewListWorkspacesOK() *ListWorkspacesOK
NewListWorkspacesOK creates a ListWorkspacesOK with default headers values
func (*ListWorkspacesOK) Error ¶
func (o *ListWorkspacesOK) Error() string
type ListWorkspacesParams ¶
type ListWorkspacesParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListWorkspacesParams contains all the parameters to send to the API endpoint for the list workspaces operation typically these are written to a http.Request
func NewListWorkspacesParams ¶
func NewListWorkspacesParams() *ListWorkspacesParams
NewListWorkspacesParams creates a new ListWorkspacesParams object with the default values initialized.
func NewListWorkspacesParamsWithContext ¶
func NewListWorkspacesParamsWithContext(ctx context.Context) *ListWorkspacesParams
NewListWorkspacesParamsWithContext creates a new ListWorkspacesParams object with the default values initialized, and the ability to set a context for a request
func NewListWorkspacesParamsWithHTTPClient ¶
func NewListWorkspacesParamsWithHTTPClient(client *http.Client) *ListWorkspacesParams
NewListWorkspacesParamsWithHTTPClient creates a new ListWorkspacesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListWorkspacesParamsWithTimeout ¶
func NewListWorkspacesParamsWithTimeout(timeout time.Duration) *ListWorkspacesParams
NewListWorkspacesParamsWithTimeout creates a new ListWorkspacesParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListWorkspacesParams) SetContext ¶
func (o *ListWorkspacesParams) SetContext(ctx context.Context)
SetContext adds the context to the list workspaces params
func (*ListWorkspacesParams) SetHTTPClient ¶
func (o *ListWorkspacesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list workspaces params
func (*ListWorkspacesParams) SetTimeout ¶
func (o *ListWorkspacesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list workspaces params
func (*ListWorkspacesParams) WithContext ¶
func (o *ListWorkspacesParams) WithContext(ctx context.Context) *ListWorkspacesParams
WithContext adds the context to the list workspaces params
func (*ListWorkspacesParams) WithHTTPClient ¶
func (o *ListWorkspacesParams) WithHTTPClient(client *http.Client) *ListWorkspacesParams
WithHTTPClient adds the HTTPClient to the list workspaces params
func (*ListWorkspacesParams) WithTimeout ¶
func (o *ListWorkspacesParams) WithTimeout(timeout time.Duration) *ListWorkspacesParams
WithTimeout adds the timeout to the list workspaces params
func (*ListWorkspacesParams) WriteToRequest ¶
func (o *ListWorkspacesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListWorkspacesReader ¶
type ListWorkspacesReader struct {
// contains filtered or unexported fields
}
ListWorkspacesReader is a Reader for the ListWorkspaces structure.
func (*ListWorkspacesReader) ReadResponse ¶
func (o *ListWorkspacesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.