workspaces

package
v0.0.0-...-3fd5aad Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const CreateWorkspaceBadRequestCode int = 400

CreateWorkspaceBadRequestCode is the HTTP code returned for type CreateWorkspaceBadRequest

View Source
const CreateWorkspaceCreatedCode int = 201

CreateWorkspaceCreatedCode is the HTTP code returned for type CreateWorkspaceCreated

View Source
const CreateWorkspaceInternalServerErrorCode int = 500

CreateWorkspaceInternalServerErrorCode is the HTTP code returned for type CreateWorkspaceInternalServerError

View Source
const CreateWorkspaceNotFoundCode int = 404

CreateWorkspaceNotFoundCode is the HTTP code returned for type CreateWorkspaceNotFound

View Source
const CreateWorkspaceOKCode int = 200

CreateWorkspaceOKCode is the HTTP code returned for type CreateWorkspaceOK

View Source
const DescribeWorkspaceInternalServerErrorCode int = 500

DescribeWorkspaceInternalServerErrorCode is the HTTP code returned for type DescribeWorkspaceInternalServerError

View Source
const DescribeWorkspaceNotFoundCode int = 404

DescribeWorkspaceNotFoundCode is the HTTP code returned for type DescribeWorkspaceNotFound

View Source
const DescribeWorkspaceOKCode int = 200

DescribeWorkspaceOKCode is the HTTP code returned for type DescribeWorkspaceOK

View Source
const ListWorkspacesInternalServerErrorCode int = 500

ListWorkspacesInternalServerErrorCode is the HTTP code returned for type ListWorkspacesInternalServerError

View Source
const ListWorkspacesNotFoundCode int = 404

ListWorkspacesNotFoundCode is the HTTP code returned for type ListWorkspacesNotFound

View Source
const ListWorkspacesOKCode int = 200

ListWorkspacesOKCode is the HTTP code returned for type ListWorkspacesOK

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateWorkspace

type CreateWorkspace struct {
	Context *middleware.Context
	Handler CreateWorkspaceHandler
}

CreateWorkspace swagger:route PUT /tf/workspace/{name} workspaces createWorkspace

Create a Terraform workspace

func NewCreateWorkspace

func NewCreateWorkspace(ctx *middleware.Context, handler CreateWorkspaceHandler) *CreateWorkspace

NewCreateWorkspace creates a new http.Handler for the create workspace operation

func (*CreateWorkspace) ServeHTTP

func (o *CreateWorkspace) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type CreateWorkspaceBadRequest

type CreateWorkspaceBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.ServerError `json:"body,omitempty"`
}

CreateWorkspaceBadRequest Bad Request

swagger:response createWorkspaceBadRequest

func NewCreateWorkspaceBadRequest

func NewCreateWorkspaceBadRequest() *CreateWorkspaceBadRequest

NewCreateWorkspaceBadRequest creates CreateWorkspaceBadRequest with default headers values

func (*CreateWorkspaceBadRequest) SetPayload

func (o *CreateWorkspaceBadRequest) SetPayload(payload *models.ServerError)

SetPayload sets the payload to the create workspace bad request response

func (*CreateWorkspaceBadRequest) WithPayload

WithPayload adds the payload to the create workspace bad request response

func (*CreateWorkspaceBadRequest) WriteResponse

func (o *CreateWorkspaceBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateWorkspaceCreated

type CreateWorkspaceCreated struct {

	/*
	  In: Body
	*/
	Payload *models.ResourceTfWorkspace `json:"body,omitempty"`
}

CreateWorkspaceCreated Created

swagger:response createWorkspaceCreated

func NewCreateWorkspaceCreated

func NewCreateWorkspaceCreated() *CreateWorkspaceCreated

NewCreateWorkspaceCreated creates CreateWorkspaceCreated with default headers values

func (*CreateWorkspaceCreated) SetPayload

func (o *CreateWorkspaceCreated) SetPayload(payload *models.ResourceTfWorkspace)

SetPayload sets the payload to the create workspace created response

func (*CreateWorkspaceCreated) WithPayload

WithPayload adds the payload to the create workspace created response

func (*CreateWorkspaceCreated) WriteResponse

func (o *CreateWorkspaceCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateWorkspaceHandler

type CreateWorkspaceHandler interface {
	Handle(CreateWorkspaceParams, *models.ResourceAuthUser) middleware.Responder
}

CreateWorkspaceHandler interface for that can handle valid create workspace params

type CreateWorkspaceHandlerFunc

type CreateWorkspaceHandlerFunc func(CreateWorkspaceParams, *models.ResourceAuthUser) middleware.Responder

CreateWorkspaceHandlerFunc turns a function with the right signature into a create workspace handler

func (CreateWorkspaceHandlerFunc) Handle

Handle executing the request and returning a response

type CreateWorkspaceInternalServerError

type CreateWorkspaceInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ServerError `json:"body,omitempty"`
}

CreateWorkspaceInternalServerError Internal Server Error

swagger:response createWorkspaceInternalServerError

func NewCreateWorkspaceInternalServerError

func NewCreateWorkspaceInternalServerError() *CreateWorkspaceInternalServerError

NewCreateWorkspaceInternalServerError creates CreateWorkspaceInternalServerError with default headers values

func (*CreateWorkspaceInternalServerError) SetPayload

func (o *CreateWorkspaceInternalServerError) SetPayload(payload *models.ServerError)

SetPayload sets the payload to the create workspace internal server error response

func (*CreateWorkspaceInternalServerError) WithPayload

WithPayload adds the payload to the create workspace internal server error response

func (*CreateWorkspaceInternalServerError) WriteResponse

WriteResponse to the client

type CreateWorkspaceNotFound

type CreateWorkspaceNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ServerError `json:"body,omitempty"`
}

CreateWorkspaceNotFound Not Found

swagger:response createWorkspaceNotFound

func NewCreateWorkspaceNotFound

func NewCreateWorkspaceNotFound() *CreateWorkspaceNotFound

NewCreateWorkspaceNotFound creates CreateWorkspaceNotFound with default headers values

func (*CreateWorkspaceNotFound) SetPayload

func (o *CreateWorkspaceNotFound) SetPayload(payload *models.ServerError)

SetPayload sets the payload to the create workspace not found response

func (*CreateWorkspaceNotFound) WithPayload

WithPayload adds the payload to the create workspace not found response

func (*CreateWorkspaceNotFound) WriteResponse

func (o *CreateWorkspaceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateWorkspaceOK

type CreateWorkspaceOK struct {

	/*
	  In: Body
	*/
	Payload *models.ResourceTfWorkspace `json:"body,omitempty"`
}

CreateWorkspaceOK OK

swagger:response createWorkspaceOK

func NewCreateWorkspaceOK

func NewCreateWorkspaceOK() *CreateWorkspaceOK

NewCreateWorkspaceOK creates CreateWorkspaceOK with default headers values

func (*CreateWorkspaceOK) SetPayload

func (o *CreateWorkspaceOK) SetPayload(payload *models.ResourceTfWorkspace)

SetPayload sets the payload to the create workspace o k response

func (*CreateWorkspaceOK) WithPayload

WithPayload adds the payload to the create workspace o k response

func (*CreateWorkspaceOK) WriteResponse

func (o *CreateWorkspaceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type CreateWorkspaceParams

type CreateWorkspaceParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A terraform workspace
	  Required: true
	  In: path
	*/
	Name string
	/*A terraform workspace
	  In: body
	*/
	TerraformWorkspace *models.ResourceTfWorkspace
}

CreateWorkspaceParams contains all the bound params for the create workspace operation typically these are obtained from a http.Request

swagger:parameters create-workspace

func NewCreateWorkspaceParams

func NewCreateWorkspaceParams() CreateWorkspaceParams

NewCreateWorkspaceParams creates a new CreateWorkspaceParams object no default values defined in spec.

func (*CreateWorkspaceParams) BindRequest

func (o *CreateWorkspaceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewCreateWorkspaceParams() beforehand.

type CreateWorkspaceURL

type CreateWorkspaceURL struct {
	Name string
	// contains filtered or unexported fields
}

CreateWorkspaceURL generates an URL for the create workspace operation

func (*CreateWorkspaceURL) Build

func (o *CreateWorkspaceURL) Build() (*url.URL, error)

Build a url path and query string

func (*CreateWorkspaceURL) BuildFull

func (o *CreateWorkspaceURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*CreateWorkspaceURL) Must

func (o *CreateWorkspaceURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*CreateWorkspaceURL) SetBasePath

func (o *CreateWorkspaceURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*CreateWorkspaceURL) String

func (o *CreateWorkspaceURL) String() string

String returns the string representation of the path with query string

func (*CreateWorkspaceURL) StringFull

func (o *CreateWorkspaceURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*CreateWorkspaceURL) WithBasePath

func (o *CreateWorkspaceURL) WithBasePath(bp string) *CreateWorkspaceURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type DescribeWorkspace

type DescribeWorkspace struct {
	Context *middleware.Context
	Handler DescribeWorkspaceHandler
}

DescribeWorkspace swagger:route GET /tf/workspace/{name} workspaces describeWorkspace

Describe a terraform workspace

func NewDescribeWorkspace

func NewDescribeWorkspace(ctx *middleware.Context, handler DescribeWorkspaceHandler) *DescribeWorkspace

NewDescribeWorkspace creates a new http.Handler for the describe workspace operation

func (*DescribeWorkspace) ServeHTTP

func (o *DescribeWorkspace) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type DescribeWorkspaceHandler

type DescribeWorkspaceHandler interface {
	Handle(DescribeWorkspaceParams, *models.ResourceAuthUser) middleware.Responder
}

DescribeWorkspaceHandler interface for that can handle valid describe workspace params

type DescribeWorkspaceHandlerFunc

type DescribeWorkspaceHandlerFunc func(DescribeWorkspaceParams, *models.ResourceAuthUser) middleware.Responder

DescribeWorkspaceHandlerFunc turns a function with the right signature into a describe workspace handler

func (DescribeWorkspaceHandlerFunc) Handle

Handle executing the request and returning a response

type DescribeWorkspaceInternalServerError

type DescribeWorkspaceInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ServerError `json:"body,omitempty"`
}

DescribeWorkspaceInternalServerError Internal Server Error

swagger:response describeWorkspaceInternalServerError

func NewDescribeWorkspaceInternalServerError

func NewDescribeWorkspaceInternalServerError() *DescribeWorkspaceInternalServerError

NewDescribeWorkspaceInternalServerError creates DescribeWorkspaceInternalServerError with default headers values

func (*DescribeWorkspaceInternalServerError) SetPayload

SetPayload sets the payload to the describe workspace internal server error response

func (*DescribeWorkspaceInternalServerError) WithPayload

WithPayload adds the payload to the describe workspace internal server error response

func (*DescribeWorkspaceInternalServerError) WriteResponse

WriteResponse to the client

type DescribeWorkspaceNotFound

type DescribeWorkspaceNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.ServerError `json:"body,omitempty"`
}

DescribeWorkspaceNotFound Not Found

swagger:response describeWorkspaceNotFound

func NewDescribeWorkspaceNotFound

func NewDescribeWorkspaceNotFound() *DescribeWorkspaceNotFound

NewDescribeWorkspaceNotFound creates DescribeWorkspaceNotFound with default headers values

func (*DescribeWorkspaceNotFound) SetPayload

func (o *DescribeWorkspaceNotFound) SetPayload(payload *models.ServerError)

SetPayload sets the payload to the describe workspace not found response

func (*DescribeWorkspaceNotFound) WithPayload

WithPayload adds the payload to the describe workspace not found response

func (*DescribeWorkspaceNotFound) WriteResponse

func (o *DescribeWorkspaceNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DescribeWorkspaceOK

type DescribeWorkspaceOK struct {

	/*
	  In: Body
	*/
	Payload *models.ResourceTfWorkspace `json:"body,omitempty"`
}

DescribeWorkspaceOK OK

swagger:response describeWorkspaceOK

func NewDescribeWorkspaceOK

func NewDescribeWorkspaceOK() *DescribeWorkspaceOK

NewDescribeWorkspaceOK creates DescribeWorkspaceOK with default headers values

func (*DescribeWorkspaceOK) SetPayload

func (o *DescribeWorkspaceOK) SetPayload(payload *models.ResourceTfWorkspace)

SetPayload sets the payload to the describe workspace o k response

func (*DescribeWorkspaceOK) WithPayload

WithPayload adds the payload to the describe workspace o k response

func (*DescribeWorkspaceOK) WriteResponse

func (o *DescribeWorkspaceOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type DescribeWorkspaceParams

type DescribeWorkspaceParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*A terraform workspace
	  Required: true
	  In: path
	*/
	Name string
}

DescribeWorkspaceParams contains all the bound params for the describe workspace operation typically these are obtained from a http.Request

swagger:parameters describe-workspace

func NewDescribeWorkspaceParams

func NewDescribeWorkspaceParams() DescribeWorkspaceParams

NewDescribeWorkspaceParams creates a new DescribeWorkspaceParams object no default values defined in spec.

func (*DescribeWorkspaceParams) BindRequest

func (o *DescribeWorkspaceParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewDescribeWorkspaceParams() beforehand.

type DescribeWorkspaceURL

type DescribeWorkspaceURL struct {
	Name string
	// contains filtered or unexported fields
}

DescribeWorkspaceURL generates an URL for the describe workspace operation

func (*DescribeWorkspaceURL) Build

func (o *DescribeWorkspaceURL) Build() (*url.URL, error)

Build a url path and query string

func (*DescribeWorkspaceURL) BuildFull

func (o *DescribeWorkspaceURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*DescribeWorkspaceURL) Must

func (o *DescribeWorkspaceURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*DescribeWorkspaceURL) SetBasePath

func (o *DescribeWorkspaceURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*DescribeWorkspaceURL) String

func (o *DescribeWorkspaceURL) String() string

String returns the string representation of the path with query string

func (*DescribeWorkspaceURL) StringFull

func (o *DescribeWorkspaceURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*DescribeWorkspaceURL) WithBasePath

func (o *DescribeWorkspaceURL) WithBasePath(bp string) *DescribeWorkspaceURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type ListWorkspaces

type ListWorkspaces struct {
	Context *middleware.Context
	Handler ListWorkspacesHandler
}

ListWorkspaces swagger:route GET /tf/workspaces workspaces listWorkspaces

List approved terraform workspaces

func NewListWorkspaces

func NewListWorkspaces(ctx *middleware.Context, handler ListWorkspacesHandler) *ListWorkspaces

NewListWorkspaces creates a new http.Handler for the list workspaces operation

func (*ListWorkspaces) ServeHTTP

func (o *ListWorkspaces) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type ListWorkspacesHandler

type ListWorkspacesHandler interface {
	Handle(ListWorkspacesParams, *models.ResourceAuthUser) middleware.Responder
}

ListWorkspacesHandler interface for that can handle valid list workspaces params

type ListWorkspacesHandlerFunc

type ListWorkspacesHandlerFunc func(ListWorkspacesParams, *models.ResourceAuthUser) middleware.Responder

ListWorkspacesHandlerFunc turns a function with the right signature into a list workspaces handler

func (ListWorkspacesHandlerFunc) Handle

Handle executing the request and returning a response

type ListWorkspacesInternalServerError

type ListWorkspacesInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.ServerError `json:"body,omitempty"`
}

ListWorkspacesInternalServerError Internal Server Error

swagger:response listWorkspacesInternalServerError

func NewListWorkspacesInternalServerError

func NewListWorkspacesInternalServerError() *ListWorkspacesInternalServerError

NewListWorkspacesInternalServerError creates ListWorkspacesInternalServerError with default headers values

func (*ListWorkspacesInternalServerError) SetPayload

func (o *ListWorkspacesInternalServerError) SetPayload(payload *models.ServerError)

SetPayload sets the payload to the list workspaces internal server error response

func (*ListWorkspacesInternalServerError) WithPayload

WithPayload adds the payload to the list workspaces internal server error response

func (*ListWorkspacesInternalServerError) WriteResponse

func (o *ListWorkspacesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListWorkspacesNotFound

type ListWorkspacesNotFound struct {
}

ListWorkspacesNotFound Not Found

swagger:response listWorkspacesNotFound

func NewListWorkspacesNotFound

func NewListWorkspacesNotFound() *ListWorkspacesNotFound

NewListWorkspacesNotFound creates ListWorkspacesNotFound with default headers values

func (*ListWorkspacesNotFound) WriteResponse

func (o *ListWorkspacesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListWorkspacesOK

type ListWorkspacesOK struct {

	/*
	  In: Body
	*/
	Payload *models.ResponseListTfWorkspaces `json:"body,omitempty"`
}

ListWorkspacesOK OK

swagger:response listWorkspacesOK

func NewListWorkspacesOK

func NewListWorkspacesOK() *ListWorkspacesOK

NewListWorkspacesOK creates ListWorkspacesOK with default headers values

func (*ListWorkspacesOK) SetPayload

func (o *ListWorkspacesOK) SetPayload(payload *models.ResponseListTfWorkspaces)

SetPayload sets the payload to the list workspaces o k response

func (*ListWorkspacesOK) WithPayload

WithPayload adds the payload to the list workspaces o k response

func (*ListWorkspacesOK) WriteResponse

func (o *ListWorkspacesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type ListWorkspacesParams

type ListWorkspacesParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

ListWorkspacesParams contains all the bound params for the list workspaces operation typically these are obtained from a http.Request

swagger:parameters list-workspaces

func NewListWorkspacesParams

func NewListWorkspacesParams() ListWorkspacesParams

NewListWorkspacesParams creates a new ListWorkspacesParams object no default values defined in spec.

func (*ListWorkspacesParams) BindRequest

func (o *ListWorkspacesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewListWorkspacesParams() beforehand.

type ListWorkspacesURL

type ListWorkspacesURL struct {
	// contains filtered or unexported fields
}

ListWorkspacesURL generates an URL for the list workspaces operation

func (*ListWorkspacesURL) Build

func (o *ListWorkspacesURL) Build() (*url.URL, error)

Build a url path and query string

func (*ListWorkspacesURL) BuildFull

func (o *ListWorkspacesURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*ListWorkspacesURL) Must

func (o *ListWorkspacesURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*ListWorkspacesURL) SetBasePath

func (o *ListWorkspacesURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*ListWorkspacesURL) String

func (o *ListWorkspacesURL) String() string

String returns the string representation of the path with query string

func (*ListWorkspacesURL) StringFull

func (o *ListWorkspacesURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*ListWorkspacesURL) WithBasePath

func (o *ListWorkspacesURL) WithBasePath(bp string) *ListWorkspacesURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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