environment

package
v0.0.0-...-7b99a6d Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 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) GetPublicEnvironment

func (a *Client) GetPublicEnvironment(params *GetPublicEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPublicEnvironmentOK, error)
GetPublicEnvironment gets environment

Get environment settings.

NOTE: this API may change any time, and it's meant for internal use only.

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 {
	GetPublicEnvironment(params *GetPublicEnvironmentParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPublicEnvironmentOK, 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 GetPublicEnvironmentForbidden

type GetPublicEnvironmentForbidden struct {
	Payload *models.Error
}

GetPublicEnvironmentForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetPublicEnvironmentForbidden

func NewGetPublicEnvironmentForbidden() *GetPublicEnvironmentForbidden

NewGetPublicEnvironmentForbidden creates a GetPublicEnvironmentForbidden with default headers values

func (*GetPublicEnvironmentForbidden) Code

Code gets the status code for the get public environment forbidden response

func (*GetPublicEnvironmentForbidden) Error

func (*GetPublicEnvironmentForbidden) GetPayload

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

func (*GetPublicEnvironmentForbidden) IsClientError

func (o *GetPublicEnvironmentForbidden) IsClientError() bool

IsClientError returns true when this get public environment forbidden response has a 4xx status code

func (*GetPublicEnvironmentForbidden) IsCode

func (o *GetPublicEnvironmentForbidden) IsCode(code int) bool

IsCode returns true when this get public environment forbidden response a status code equal to that given

func (*GetPublicEnvironmentForbidden) IsRedirect

func (o *GetPublicEnvironmentForbidden) IsRedirect() bool

IsRedirect returns true when this get public environment forbidden response has a 3xx status code

func (*GetPublicEnvironmentForbidden) IsServerError

func (o *GetPublicEnvironmentForbidden) IsServerError() bool

IsServerError returns true when this get public environment forbidden response has a 5xx status code

func (*GetPublicEnvironmentForbidden) IsSuccess

func (o *GetPublicEnvironmentForbidden) IsSuccess() bool

IsSuccess returns true when this get public environment forbidden response has a 2xx status code

func (*GetPublicEnvironmentForbidden) String

type GetPublicEnvironmentOK

type GetPublicEnvironmentOK struct {
	Payload *models.PublicEnvironment
}

GetPublicEnvironmentOK describes a response with status code 200, with default header values.

Public environment

func NewGetPublicEnvironmentOK

func NewGetPublicEnvironmentOK() *GetPublicEnvironmentOK

NewGetPublicEnvironmentOK creates a GetPublicEnvironmentOK with default headers values

func (*GetPublicEnvironmentOK) Code

func (o *GetPublicEnvironmentOK) Code() int

Code gets the status code for the get public environment o k response

func (*GetPublicEnvironmentOK) Error

func (o *GetPublicEnvironmentOK) Error() string

func (*GetPublicEnvironmentOK) GetPayload

func (*GetPublicEnvironmentOK) IsClientError

func (o *GetPublicEnvironmentOK) IsClientError() bool

IsClientError returns true when this get public environment o k response has a 4xx status code

func (*GetPublicEnvironmentOK) IsCode

func (o *GetPublicEnvironmentOK) IsCode(code int) bool

IsCode returns true when this get public environment o k response a status code equal to that given

func (*GetPublicEnvironmentOK) IsRedirect

func (o *GetPublicEnvironmentOK) IsRedirect() bool

IsRedirect returns true when this get public environment o k response has a 3xx status code

func (*GetPublicEnvironmentOK) IsServerError

func (o *GetPublicEnvironmentOK) IsServerError() bool

IsServerError returns true when this get public environment o k response has a 5xx status code

func (*GetPublicEnvironmentOK) IsSuccess

func (o *GetPublicEnvironmentOK) IsSuccess() bool

IsSuccess returns true when this get public environment o k response has a 2xx status code

func (*GetPublicEnvironmentOK) String

func (o *GetPublicEnvironmentOK) String() string

type GetPublicEnvironmentParams

type GetPublicEnvironmentParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPublicEnvironmentParams contains all the parameters to send to the API endpoint

for the get public environment operation.

Typically these are written to a http.Request.

func NewGetPublicEnvironmentParams

func NewGetPublicEnvironmentParams() *GetPublicEnvironmentParams

NewGetPublicEnvironmentParams creates a new GetPublicEnvironmentParams 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 NewGetPublicEnvironmentParamsWithContext

func NewGetPublicEnvironmentParamsWithContext(ctx context.Context) *GetPublicEnvironmentParams

NewGetPublicEnvironmentParamsWithContext creates a new GetPublicEnvironmentParams object with the ability to set a context for a request.

func NewGetPublicEnvironmentParamsWithHTTPClient

func NewGetPublicEnvironmentParamsWithHTTPClient(client *http.Client) *GetPublicEnvironmentParams

NewGetPublicEnvironmentParamsWithHTTPClient creates a new GetPublicEnvironmentParams object with the ability to set a custom HTTPClient for a request.

func NewGetPublicEnvironmentParamsWithTimeout

func NewGetPublicEnvironmentParamsWithTimeout(timeout time.Duration) *GetPublicEnvironmentParams

NewGetPublicEnvironmentParamsWithTimeout creates a new GetPublicEnvironmentParams object with the ability to set a timeout on a request.

func (*GetPublicEnvironmentParams) SetContext

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

SetContext adds the context to the get public environment params

func (*GetPublicEnvironmentParams) SetDefaults

func (o *GetPublicEnvironmentParams) SetDefaults()

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

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

func (*GetPublicEnvironmentParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get public environment params

func (*GetPublicEnvironmentParams) SetTimeout

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

SetTimeout adds the timeout to the get public environment params

func (*GetPublicEnvironmentParams) WithContext

WithContext adds the context to the get public environment params

func (*GetPublicEnvironmentParams) WithDefaults

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

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

func (*GetPublicEnvironmentParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get public environment params

func (*GetPublicEnvironmentParams) WithTimeout

WithTimeout adds the timeout to the get public environment params

func (*GetPublicEnvironmentParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicEnvironmentReader

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

GetPublicEnvironmentReader is a Reader for the GetPublicEnvironment structure.

func (*GetPublicEnvironmentReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublicEnvironmentTooManyRequests

type GetPublicEnvironmentTooManyRequests struct {
	Payload *models.Error
}

GetPublicEnvironmentTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetPublicEnvironmentTooManyRequests

func NewGetPublicEnvironmentTooManyRequests() *GetPublicEnvironmentTooManyRequests

NewGetPublicEnvironmentTooManyRequests creates a GetPublicEnvironmentTooManyRequests with default headers values

func (*GetPublicEnvironmentTooManyRequests) Code

Code gets the status code for the get public environment too many requests response

func (*GetPublicEnvironmentTooManyRequests) Error

func (*GetPublicEnvironmentTooManyRequests) GetPayload

func (*GetPublicEnvironmentTooManyRequests) IsClientError

func (o *GetPublicEnvironmentTooManyRequests) IsClientError() bool

IsClientError returns true when this get public environment too many requests response has a 4xx status code

func (*GetPublicEnvironmentTooManyRequests) IsCode

IsCode returns true when this get public environment too many requests response a status code equal to that given

func (*GetPublicEnvironmentTooManyRequests) IsRedirect

func (o *GetPublicEnvironmentTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get public environment too many requests response has a 3xx status code

func (*GetPublicEnvironmentTooManyRequests) IsServerError

func (o *GetPublicEnvironmentTooManyRequests) IsServerError() bool

IsServerError returns true when this get public environment too many requests response has a 5xx status code

func (*GetPublicEnvironmentTooManyRequests) IsSuccess

IsSuccess returns true when this get public environment too many requests response has a 2xx status code

func (*GetPublicEnvironmentTooManyRequests) String

type GetPublicEnvironmentUnauthorized

type GetPublicEnvironmentUnauthorized struct {
	Payload *models.Error
}

GetPublicEnvironmentUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetPublicEnvironmentUnauthorized

func NewGetPublicEnvironmentUnauthorized() *GetPublicEnvironmentUnauthorized

NewGetPublicEnvironmentUnauthorized creates a GetPublicEnvironmentUnauthorized with default headers values

func (*GetPublicEnvironmentUnauthorized) Code

Code gets the status code for the get public environment unauthorized response

func (*GetPublicEnvironmentUnauthorized) Error

func (*GetPublicEnvironmentUnauthorized) GetPayload

func (*GetPublicEnvironmentUnauthorized) IsClientError

func (o *GetPublicEnvironmentUnauthorized) IsClientError() bool

IsClientError returns true when this get public environment unauthorized response has a 4xx status code

func (*GetPublicEnvironmentUnauthorized) IsCode

func (o *GetPublicEnvironmentUnauthorized) IsCode(code int) bool

IsCode returns true when this get public environment unauthorized response a status code equal to that given

func (*GetPublicEnvironmentUnauthorized) IsRedirect

func (o *GetPublicEnvironmentUnauthorized) IsRedirect() bool

IsRedirect returns true when this get public environment unauthorized response has a 3xx status code

func (*GetPublicEnvironmentUnauthorized) IsServerError

func (o *GetPublicEnvironmentUnauthorized) IsServerError() bool

IsServerError returns true when this get public environment unauthorized response has a 5xx status code

func (*GetPublicEnvironmentUnauthorized) IsSuccess

func (o *GetPublicEnvironmentUnauthorized) IsSuccess() bool

IsSuccess returns true when this get public environment unauthorized response has a 2xx status code

func (*GetPublicEnvironmentUnauthorized) String

Jump to

Keyboard shortcuts

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