Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type DisableInternalServerError
- func (o *DisableInternalServerError) Error() string
- func (o *DisableInternalServerError) IsClientError() bool
- func (o *DisableInternalServerError) IsCode(code int) bool
- func (o *DisableInternalServerError) IsRedirect() bool
- func (o *DisableInternalServerError) IsServerError() bool
- func (o *DisableInternalServerError) IsSuccess() bool
- func (o *DisableInternalServerError) String() string
- type DisableOK
- type DisableParams
- func (o *DisableParams) SetBody(body *rest_model_zrok.DisableRequest)
- func (o *DisableParams) SetContext(ctx context.Context)
- func (o *DisableParams) SetDefaults()
- func (o *DisableParams) SetHTTPClient(client *http.Client)
- func (o *DisableParams) SetTimeout(timeout time.Duration)
- func (o *DisableParams) WithBody(body *rest_model_zrok.DisableRequest) *DisableParams
- func (o *DisableParams) WithContext(ctx context.Context) *DisableParams
- func (o *DisableParams) WithDefaults() *DisableParams
- func (o *DisableParams) WithHTTPClient(client *http.Client) *DisableParams
- func (o *DisableParams) WithTimeout(timeout time.Duration) *DisableParams
- func (o *DisableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DisableReader
- type DisableUnauthorized
- func (o *DisableUnauthorized) Error() string
- func (o *DisableUnauthorized) IsClientError() bool
- func (o *DisableUnauthorized) IsCode(code int) bool
- func (o *DisableUnauthorized) IsRedirect() bool
- func (o *DisableUnauthorized) IsServerError() bool
- func (o *DisableUnauthorized) IsSuccess() bool
- func (o *DisableUnauthorized) String() string
- type EnableCreated
- func (o *EnableCreated) Error() string
- func (o *EnableCreated) GetPayload() *rest_model_zrok.EnableResponse
- func (o *EnableCreated) IsClientError() bool
- func (o *EnableCreated) IsCode(code int) bool
- func (o *EnableCreated) IsRedirect() bool
- func (o *EnableCreated) IsServerError() bool
- func (o *EnableCreated) IsSuccess() bool
- func (o *EnableCreated) String() string
- type EnableInternalServerError
- func (o *EnableInternalServerError) Error() string
- func (o *EnableInternalServerError) IsClientError() bool
- func (o *EnableInternalServerError) IsCode(code int) bool
- func (o *EnableInternalServerError) IsRedirect() bool
- func (o *EnableInternalServerError) IsServerError() bool
- func (o *EnableInternalServerError) IsSuccess() bool
- func (o *EnableInternalServerError) String() string
- type EnableNotFound
- func (o *EnableNotFound) Error() string
- func (o *EnableNotFound) IsClientError() bool
- func (o *EnableNotFound) IsCode(code int) bool
- func (o *EnableNotFound) IsRedirect() bool
- func (o *EnableNotFound) IsServerError() bool
- func (o *EnableNotFound) IsSuccess() bool
- func (o *EnableNotFound) String() string
- type EnableParams
- func (o *EnableParams) SetBody(body *rest_model_zrok.EnableRequest)
- func (o *EnableParams) SetContext(ctx context.Context)
- func (o *EnableParams) SetDefaults()
- func (o *EnableParams) SetHTTPClient(client *http.Client)
- func (o *EnableParams) SetTimeout(timeout time.Duration)
- func (o *EnableParams) WithBody(body *rest_model_zrok.EnableRequest) *EnableParams
- func (o *EnableParams) WithContext(ctx context.Context) *EnableParams
- func (o *EnableParams) WithDefaults() *EnableParams
- func (o *EnableParams) WithHTTPClient(client *http.Client) *EnableParams
- func (o *EnableParams) WithTimeout(timeout time.Duration) *EnableParams
- func (o *EnableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EnableReader
- type EnableUnauthorized
- func (o *EnableUnauthorized) Error() string
- func (o *EnableUnauthorized) IsClientError() bool
- func (o *EnableUnauthorized) IsCode(code int) bool
- func (o *EnableUnauthorized) IsRedirect() bool
- func (o *EnableUnauthorized) IsServerError() bool
- func (o *EnableUnauthorized) IsSuccess() bool
- func (o *EnableUnauthorized) String() string
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) Disable ¶
func (a *Client) Disable(params *DisableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DisableOK, error)
Disable disable API
func (*Client) Enable ¶
func (a *Client) Enable(params *EnableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EnableCreated, error)
Enable enable API
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 { Disable(params *DisableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DisableOK, error) Enable(params *EnableParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EnableCreated, 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 DisableInternalServerError ¶
type DisableInternalServerError struct { }
DisableInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewDisableInternalServerError ¶
func NewDisableInternalServerError() *DisableInternalServerError
NewDisableInternalServerError creates a DisableInternalServerError with default headers values
func (*DisableInternalServerError) Error ¶
func (o *DisableInternalServerError) Error() string
func (*DisableInternalServerError) IsClientError ¶
func (o *DisableInternalServerError) IsClientError() bool
IsClientError returns true when this disable internal server error response has a 4xx status code
func (*DisableInternalServerError) IsCode ¶
func (o *DisableInternalServerError) IsCode(code int) bool
IsCode returns true when this disable internal server error response a status code equal to that given
func (*DisableInternalServerError) IsRedirect ¶
func (o *DisableInternalServerError) IsRedirect() bool
IsRedirect returns true when this disable internal server error response has a 3xx status code
func (*DisableInternalServerError) IsServerError ¶
func (o *DisableInternalServerError) IsServerError() bool
IsServerError returns true when this disable internal server error response has a 5xx status code
func (*DisableInternalServerError) IsSuccess ¶
func (o *DisableInternalServerError) IsSuccess() bool
IsSuccess returns true when this disable internal server error response has a 2xx status code
func (*DisableInternalServerError) String ¶
func (o *DisableInternalServerError) String() string
type DisableOK ¶
type DisableOK struct { }
DisableOK describes a response with status code 200, with default header values.
environment disabled
func NewDisableOK ¶
func NewDisableOK() *DisableOK
NewDisableOK creates a DisableOK with default headers values
func (*DisableOK) IsClientError ¶
IsClientError returns true when this disable o k response has a 4xx status code
func (*DisableOK) IsCode ¶
IsCode returns true when this disable o k response a status code equal to that given
func (*DisableOK) IsRedirect ¶
IsRedirect returns true when this disable o k response has a 3xx status code
func (*DisableOK) IsServerError ¶
IsServerError returns true when this disable o k response has a 5xx status code
type DisableParams ¶
type DisableParams struct { // Body. Body *rest_model_zrok.DisableRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DisableParams contains all the parameters to send to the API endpoint
for the disable operation. Typically these are written to a http.Request.
func NewDisableParams ¶
func NewDisableParams() *DisableParams
NewDisableParams creates a new DisableParams 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 NewDisableParamsWithContext ¶
func NewDisableParamsWithContext(ctx context.Context) *DisableParams
NewDisableParamsWithContext creates a new DisableParams object with the ability to set a context for a request.
func NewDisableParamsWithHTTPClient ¶
func NewDisableParamsWithHTTPClient(client *http.Client) *DisableParams
NewDisableParamsWithHTTPClient creates a new DisableParams object with the ability to set a custom HTTPClient for a request.
func NewDisableParamsWithTimeout ¶
func NewDisableParamsWithTimeout(timeout time.Duration) *DisableParams
NewDisableParamsWithTimeout creates a new DisableParams object with the ability to set a timeout on a request.
func (*DisableParams) SetBody ¶
func (o *DisableParams) SetBody(body *rest_model_zrok.DisableRequest)
SetBody adds the body to the disable params
func (*DisableParams) SetContext ¶
func (o *DisableParams) SetContext(ctx context.Context)
SetContext adds the context to the disable params
func (*DisableParams) SetDefaults ¶
func (o *DisableParams) SetDefaults()
SetDefaults hydrates default values in the disable params (not the query body).
All values with no default are reset to their zero value.
func (*DisableParams) SetHTTPClient ¶
func (o *DisableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the disable params
func (*DisableParams) SetTimeout ¶
func (o *DisableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the disable params
func (*DisableParams) WithBody ¶
func (o *DisableParams) WithBody(body *rest_model_zrok.DisableRequest) *DisableParams
WithBody adds the body to the disable params
func (*DisableParams) WithContext ¶
func (o *DisableParams) WithContext(ctx context.Context) *DisableParams
WithContext adds the context to the disable params
func (*DisableParams) WithDefaults ¶
func (o *DisableParams) WithDefaults() *DisableParams
WithDefaults hydrates default values in the disable params (not the query body).
All values with no default are reset to their zero value.
func (*DisableParams) WithHTTPClient ¶
func (o *DisableParams) WithHTTPClient(client *http.Client) *DisableParams
WithHTTPClient adds the HTTPClient to the disable params
func (*DisableParams) WithTimeout ¶
func (o *DisableParams) WithTimeout(timeout time.Duration) *DisableParams
WithTimeout adds the timeout to the disable params
func (*DisableParams) WriteToRequest ¶
func (o *DisableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DisableReader ¶
type DisableReader struct {
// contains filtered or unexported fields
}
DisableReader is a Reader for the Disable structure.
func (*DisableReader) ReadResponse ¶
func (o *DisableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DisableUnauthorized ¶
type DisableUnauthorized struct { }
DisableUnauthorized describes a response with status code 401, with default header values.
invalid environment
func NewDisableUnauthorized ¶
func NewDisableUnauthorized() *DisableUnauthorized
NewDisableUnauthorized creates a DisableUnauthorized with default headers values
func (*DisableUnauthorized) Error ¶
func (o *DisableUnauthorized) Error() string
func (*DisableUnauthorized) IsClientError ¶
func (o *DisableUnauthorized) IsClientError() bool
IsClientError returns true when this disable unauthorized response has a 4xx status code
func (*DisableUnauthorized) IsCode ¶
func (o *DisableUnauthorized) IsCode(code int) bool
IsCode returns true when this disable unauthorized response a status code equal to that given
func (*DisableUnauthorized) IsRedirect ¶
func (o *DisableUnauthorized) IsRedirect() bool
IsRedirect returns true when this disable unauthorized response has a 3xx status code
func (*DisableUnauthorized) IsServerError ¶
func (o *DisableUnauthorized) IsServerError() bool
IsServerError returns true when this disable unauthorized response has a 5xx status code
func (*DisableUnauthorized) IsSuccess ¶
func (o *DisableUnauthorized) IsSuccess() bool
IsSuccess returns true when this disable unauthorized response has a 2xx status code
func (*DisableUnauthorized) String ¶
func (o *DisableUnauthorized) String() string
type EnableCreated ¶
type EnableCreated struct {
Payload *rest_model_zrok.EnableResponse
}
EnableCreated describes a response with status code 201, with default header values.
environment enabled
func NewEnableCreated ¶
func NewEnableCreated() *EnableCreated
NewEnableCreated creates a EnableCreated with default headers values
func (*EnableCreated) Error ¶
func (o *EnableCreated) Error() string
func (*EnableCreated) GetPayload ¶
func (o *EnableCreated) GetPayload() *rest_model_zrok.EnableResponse
func (*EnableCreated) IsClientError ¶
func (o *EnableCreated) IsClientError() bool
IsClientError returns true when this enable created response has a 4xx status code
func (*EnableCreated) IsCode ¶
func (o *EnableCreated) IsCode(code int) bool
IsCode returns true when this enable created response a status code equal to that given
func (*EnableCreated) IsRedirect ¶
func (o *EnableCreated) IsRedirect() bool
IsRedirect returns true when this enable created response has a 3xx status code
func (*EnableCreated) IsServerError ¶
func (o *EnableCreated) IsServerError() bool
IsServerError returns true when this enable created response has a 5xx status code
func (*EnableCreated) IsSuccess ¶
func (o *EnableCreated) IsSuccess() bool
IsSuccess returns true when this enable created response has a 2xx status code
func (*EnableCreated) String ¶
func (o *EnableCreated) String() string
type EnableInternalServerError ¶
type EnableInternalServerError struct { }
EnableInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewEnableInternalServerError ¶
func NewEnableInternalServerError() *EnableInternalServerError
NewEnableInternalServerError creates a EnableInternalServerError with default headers values
func (*EnableInternalServerError) Error ¶
func (o *EnableInternalServerError) Error() string
func (*EnableInternalServerError) IsClientError ¶
func (o *EnableInternalServerError) IsClientError() bool
IsClientError returns true when this enable internal server error response has a 4xx status code
func (*EnableInternalServerError) IsCode ¶
func (o *EnableInternalServerError) IsCode(code int) bool
IsCode returns true when this enable internal server error response a status code equal to that given
func (*EnableInternalServerError) IsRedirect ¶
func (o *EnableInternalServerError) IsRedirect() bool
IsRedirect returns true when this enable internal server error response has a 3xx status code
func (*EnableInternalServerError) IsServerError ¶
func (o *EnableInternalServerError) IsServerError() bool
IsServerError returns true when this enable internal server error response has a 5xx status code
func (*EnableInternalServerError) IsSuccess ¶
func (o *EnableInternalServerError) IsSuccess() bool
IsSuccess returns true when this enable internal server error response has a 2xx status code
func (*EnableInternalServerError) String ¶
func (o *EnableInternalServerError) String() string
type EnableNotFound ¶
type EnableNotFound struct { }
EnableNotFound describes a response with status code 404, with default header values.
account not found
func NewEnableNotFound ¶
func NewEnableNotFound() *EnableNotFound
NewEnableNotFound creates a EnableNotFound with default headers values
func (*EnableNotFound) Error ¶
func (o *EnableNotFound) Error() string
func (*EnableNotFound) IsClientError ¶
func (o *EnableNotFound) IsClientError() bool
IsClientError returns true when this enable not found response has a 4xx status code
func (*EnableNotFound) IsCode ¶
func (o *EnableNotFound) IsCode(code int) bool
IsCode returns true when this enable not found response a status code equal to that given
func (*EnableNotFound) IsRedirect ¶
func (o *EnableNotFound) IsRedirect() bool
IsRedirect returns true when this enable not found response has a 3xx status code
func (*EnableNotFound) IsServerError ¶
func (o *EnableNotFound) IsServerError() bool
IsServerError returns true when this enable not found response has a 5xx status code
func (*EnableNotFound) IsSuccess ¶
func (o *EnableNotFound) IsSuccess() bool
IsSuccess returns true when this enable not found response has a 2xx status code
func (*EnableNotFound) String ¶
func (o *EnableNotFound) String() string
type EnableParams ¶
type EnableParams struct { // Body. Body *rest_model_zrok.EnableRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EnableParams contains all the parameters to send to the API endpoint
for the enable operation. Typically these are written to a http.Request.
func NewEnableParams ¶
func NewEnableParams() *EnableParams
NewEnableParams creates a new EnableParams 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 NewEnableParamsWithContext ¶
func NewEnableParamsWithContext(ctx context.Context) *EnableParams
NewEnableParamsWithContext creates a new EnableParams object with the ability to set a context for a request.
func NewEnableParamsWithHTTPClient ¶
func NewEnableParamsWithHTTPClient(client *http.Client) *EnableParams
NewEnableParamsWithHTTPClient creates a new EnableParams object with the ability to set a custom HTTPClient for a request.
func NewEnableParamsWithTimeout ¶
func NewEnableParamsWithTimeout(timeout time.Duration) *EnableParams
NewEnableParamsWithTimeout creates a new EnableParams object with the ability to set a timeout on a request.
func (*EnableParams) SetBody ¶
func (o *EnableParams) SetBody(body *rest_model_zrok.EnableRequest)
SetBody adds the body to the enable params
func (*EnableParams) SetContext ¶
func (o *EnableParams) SetContext(ctx context.Context)
SetContext adds the context to the enable params
func (*EnableParams) SetDefaults ¶
func (o *EnableParams) SetDefaults()
SetDefaults hydrates default values in the enable params (not the query body).
All values with no default are reset to their zero value.
func (*EnableParams) SetHTTPClient ¶
func (o *EnableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the enable params
func (*EnableParams) SetTimeout ¶
func (o *EnableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the enable params
func (*EnableParams) WithBody ¶
func (o *EnableParams) WithBody(body *rest_model_zrok.EnableRequest) *EnableParams
WithBody adds the body to the enable params
func (*EnableParams) WithContext ¶
func (o *EnableParams) WithContext(ctx context.Context) *EnableParams
WithContext adds the context to the enable params
func (*EnableParams) WithDefaults ¶
func (o *EnableParams) WithDefaults() *EnableParams
WithDefaults hydrates default values in the enable params (not the query body).
All values with no default are reset to their zero value.
func (*EnableParams) WithHTTPClient ¶
func (o *EnableParams) WithHTTPClient(client *http.Client) *EnableParams
WithHTTPClient adds the HTTPClient to the enable params
func (*EnableParams) WithTimeout ¶
func (o *EnableParams) WithTimeout(timeout time.Duration) *EnableParams
WithTimeout adds the timeout to the enable params
func (*EnableParams) WriteToRequest ¶
func (o *EnableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EnableReader ¶
type EnableReader struct {
// contains filtered or unexported fields
}
EnableReader is a Reader for the Enable structure.
func (*EnableReader) ReadResponse ¶
func (o *EnableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EnableUnauthorized ¶
type EnableUnauthorized struct { }
EnableUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewEnableUnauthorized ¶
func NewEnableUnauthorized() *EnableUnauthorized
NewEnableUnauthorized creates a EnableUnauthorized with default headers values
func (*EnableUnauthorized) Error ¶
func (o *EnableUnauthorized) Error() string
func (*EnableUnauthorized) IsClientError ¶
func (o *EnableUnauthorized) IsClientError() bool
IsClientError returns true when this enable unauthorized response has a 4xx status code
func (*EnableUnauthorized) IsCode ¶
func (o *EnableUnauthorized) IsCode(code int) bool
IsCode returns true when this enable unauthorized response a status code equal to that given
func (*EnableUnauthorized) IsRedirect ¶
func (o *EnableUnauthorized) IsRedirect() bool
IsRedirect returns true when this enable unauthorized response has a 3xx status code
func (*EnableUnauthorized) IsServerError ¶
func (o *EnableUnauthorized) IsServerError() bool
IsServerError returns true when this enable unauthorized response has a 5xx status code
func (*EnableUnauthorized) IsSuccess ¶
func (o *EnableUnauthorized) IsSuccess() bool
IsSuccess returns true when this enable unauthorized response has a 2xx status code
func (*EnableUnauthorized) String ¶
func (o *EnableUnauthorized) String() string