environment

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

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

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 environment API

func (*Client) GenerateEnvironment

func (a *Client) GenerateEnvironment(params *GenerateEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenerateEnvironmentOK, error)

GenerateEnvironment generates a temporary environment

Generate a temporary environment (set of environment variables)

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GenerateEnvironment(params *GenerateEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenerateEnvironmentOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new environment API client.

type GenerateEnvironmentBadRequest

type GenerateEnvironmentBadRequest struct {
	Payload string
}
GenerateEnvironmentBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGenerateEnvironmentBadRequest

func NewGenerateEnvironmentBadRequest() *GenerateEnvironmentBadRequest

NewGenerateEnvironmentBadRequest creates a GenerateEnvironmentBadRequest with default headers values

func (*GenerateEnvironmentBadRequest) Error

func (*GenerateEnvironmentBadRequest) GetPayload

func (o *GenerateEnvironmentBadRequest) GetPayload() string

type GenerateEnvironmentDefault

type GenerateEnvironmentDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
GenerateEnvironmentDefault describes a response with status code -1, with default header values.

generic error response

func NewGenerateEnvironmentDefault

func NewGenerateEnvironmentDefault(code int) *GenerateEnvironmentDefault

NewGenerateEnvironmentDefault creates a GenerateEnvironmentDefault with default headers values

func (*GenerateEnvironmentDefault) Code

func (o *GenerateEnvironmentDefault) Code() int

Code gets the status code for the generate environment default response

func (*GenerateEnvironmentDefault) Error

func (*GenerateEnvironmentDefault) GetPayload

func (o *GenerateEnvironmentDefault) GetPayload() *models.Error

type GenerateEnvironmentOK

type GenerateEnvironmentOK struct {
	Payload *models.ModelsEnvironmentResponse
}
GenerateEnvironmentOK describes a response with status code 200, with default header values.

OK

func NewGenerateEnvironmentOK

func NewGenerateEnvironmentOK() *GenerateEnvironmentOK

NewGenerateEnvironmentOK creates a GenerateEnvironmentOK with default headers values

func (*GenerateEnvironmentOK) Error

func (o *GenerateEnvironmentOK) Error() string

func (*GenerateEnvironmentOK) GetPayload

type GenerateEnvironmentParams

type GenerateEnvironmentParams struct {

	/* Body.

	   Temporary Environment Request definition
	*/
	Body *models.ModelsEnvironmentRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GenerateEnvironmentParams contains all the parameters to send to the API endpoint

for the generate environment operation.

Typically these are written to a http.Request.

func NewGenerateEnvironmentParams

func NewGenerateEnvironmentParams() *GenerateEnvironmentParams

NewGenerateEnvironmentParams creates a new GenerateEnvironmentParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGenerateEnvironmentParamsWithContext

func NewGenerateEnvironmentParamsWithContext(ctx context.Context) *GenerateEnvironmentParams

NewGenerateEnvironmentParamsWithContext creates a new GenerateEnvironmentParams object with the ability to set a context for a request.

func NewGenerateEnvironmentParamsWithHTTPClient

func NewGenerateEnvironmentParamsWithHTTPClient(client *http.Client) *GenerateEnvironmentParams

NewGenerateEnvironmentParamsWithHTTPClient creates a new GenerateEnvironmentParams object with the ability to set a custom HTTPClient for a request.

func NewGenerateEnvironmentParamsWithTimeout

func NewGenerateEnvironmentParamsWithTimeout(timeout time.Duration) *GenerateEnvironmentParams

NewGenerateEnvironmentParamsWithTimeout creates a new GenerateEnvironmentParams object with the ability to set a timeout on a request.

func (*GenerateEnvironmentParams) SetBody

SetBody adds the body to the generate environment params

func (*GenerateEnvironmentParams) SetContext

func (o *GenerateEnvironmentParams) SetContext(ctx context.Context)

SetContext adds the context to the generate environment params

func (*GenerateEnvironmentParams) SetDefaults

func (o *GenerateEnvironmentParams) SetDefaults()

SetDefaults hydrates default values in the generate environment params (not the query body).

All values with no default are reset to their zero value.

func (*GenerateEnvironmentParams) SetHTTPClient

func (o *GenerateEnvironmentParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the generate environment params

func (*GenerateEnvironmentParams) SetTimeout

func (o *GenerateEnvironmentParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the generate environment params

func (*GenerateEnvironmentParams) WithBody

WithBody adds the body to the generate environment params

func (*GenerateEnvironmentParams) WithContext

WithContext adds the context to the generate environment params

func (*GenerateEnvironmentParams) WithDefaults

WithDefaults hydrates default values in the generate environment params (not the query body).

All values with no default are reset to their zero value.

func (*GenerateEnvironmentParams) WithHTTPClient

func (o *GenerateEnvironmentParams) WithHTTPClient(client *http.Client) *GenerateEnvironmentParams

WithHTTPClient adds the HTTPClient to the generate environment params

func (*GenerateEnvironmentParams) WithTimeout

WithTimeout adds the timeout to the generate environment params

func (*GenerateEnvironmentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GenerateEnvironmentReader

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

GenerateEnvironmentReader is a Reader for the GenerateEnvironment structure.

func (*GenerateEnvironmentReader) ReadResponse

func (o *GenerateEnvironmentReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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