Documentation ¶
Index ¶
- type ApplyRequestBadRequest
- func (o *ApplyRequestBadRequest) Error() string
- func (o *ApplyRequestBadRequest) GetPayload() *models.HTTPError
- func (o *ApplyRequestBadRequest) IsClientError() bool
- func (o *ApplyRequestBadRequest) IsCode(code int) bool
- func (o *ApplyRequestBadRequest) IsRedirect() bool
- func (o *ApplyRequestBadRequest) IsServerError() bool
- func (o *ApplyRequestBadRequest) IsSuccess() bool
- func (o *ApplyRequestBadRequest) String() string
- type ApplyRequestCreated
- func (o *ApplyRequestCreated) Error() string
- func (o *ApplyRequestCreated) GetPayload() *models.ApplyResponse
- func (o *ApplyRequestCreated) IsClientError() bool
- func (o *ApplyRequestCreated) IsCode(code int) bool
- func (o *ApplyRequestCreated) IsRedirect() bool
- func (o *ApplyRequestCreated) IsServerError() bool
- func (o *ApplyRequestCreated) IsSuccess() bool
- func (o *ApplyRequestCreated) String() string
- type ApplyRequestForbidden
- func (o *ApplyRequestForbidden) Error() string
- func (o *ApplyRequestForbidden) GetPayload() *models.HTTPError
- func (o *ApplyRequestForbidden) IsClientError() bool
- func (o *ApplyRequestForbidden) IsCode(code int) bool
- func (o *ApplyRequestForbidden) IsRedirect() bool
- func (o *ApplyRequestForbidden) IsServerError() bool
- func (o *ApplyRequestForbidden) IsSuccess() bool
- func (o *ApplyRequestForbidden) String() string
- type ApplyRequestInternalServerError
- func (o *ApplyRequestInternalServerError) Error() string
- func (o *ApplyRequestInternalServerError) GetPayload() *models.HTTPError
- func (o *ApplyRequestInternalServerError) IsClientError() bool
- func (o *ApplyRequestInternalServerError) IsCode(code int) bool
- func (o *ApplyRequestInternalServerError) IsRedirect() bool
- func (o *ApplyRequestInternalServerError) IsServerError() bool
- func (o *ApplyRequestInternalServerError) IsSuccess() bool
- func (o *ApplyRequestInternalServerError) String() string
- type ApplyRequestParams
- func (o *ApplyRequestParams) SetContext(ctx context.Context)
- func (o *ApplyRequestParams) SetDefaults()
- func (o *ApplyRequestParams) SetHTTPClient(client *http.Client)
- func (o *ApplyRequestParams) SetShares(shares []string)
- func (o *ApplyRequestParams) SetTimeout(timeout time.Duration)
- func (o *ApplyRequestParams) WithContext(ctx context.Context) *ApplyRequestParams
- func (o *ApplyRequestParams) WithDefaults() *ApplyRequestParams
- func (o *ApplyRequestParams) WithHTTPClient(client *http.Client) *ApplyRequestParams
- func (o *ApplyRequestParams) WithShares(shares []string) *ApplyRequestParams
- func (o *ApplyRequestParams) WithTimeout(timeout time.Duration) *ApplyRequestParams
- func (o *ApplyRequestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ApplyRequestReader
- type ApplyRequestUnauthorized
- func (o *ApplyRequestUnauthorized) Error() string
- func (o *ApplyRequestUnauthorized) GetPayload() *models.HTTPError
- func (o *ApplyRequestUnauthorized) IsClientError() bool
- func (o *ApplyRequestUnauthorized) IsCode(code int) bool
- func (o *ApplyRequestUnauthorized) IsRedirect() bool
- func (o *ApplyRequestUnauthorized) IsServerError() bool
- func (o *ApplyRequestUnauthorized) IsSuccess() bool
- func (o *ApplyRequestUnauthorized) String() string
- type Client
- func (a *Client) ApplyRequest(params *ApplyRequestParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ApplyRequestCreated, error)
- func (a *Client) GenerateRequest(params *GenerateRequestParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GenerateRequestCreated, error)
- func (a *Client) GetStatus(params *GetStatusParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetStatusOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GenerateRequestBadRequest
- func (o *GenerateRequestBadRequest) Error() string
- func (o *GenerateRequestBadRequest) GetPayload() *models.HTTPError
- func (o *GenerateRequestBadRequest) IsClientError() bool
- func (o *GenerateRequestBadRequest) IsCode(code int) bool
- func (o *GenerateRequestBadRequest) IsRedirect() bool
- func (o *GenerateRequestBadRequest) IsServerError() bool
- func (o *GenerateRequestBadRequest) IsSuccess() bool
- func (o *GenerateRequestBadRequest) String() string
- type GenerateRequestCreated
- func (o *GenerateRequestCreated) Error() string
- func (o *GenerateRequestCreated) GetPayload() *models.GenerateResponse
- func (o *GenerateRequestCreated) IsClientError() bool
- func (o *GenerateRequestCreated) IsCode(code int) bool
- func (o *GenerateRequestCreated) IsRedirect() bool
- func (o *GenerateRequestCreated) IsServerError() bool
- func (o *GenerateRequestCreated) IsSuccess() bool
- func (o *GenerateRequestCreated) String() string
- type GenerateRequestForbidden
- func (o *GenerateRequestForbidden) Error() string
- func (o *GenerateRequestForbidden) GetPayload() *models.HTTPError
- func (o *GenerateRequestForbidden) IsClientError() bool
- func (o *GenerateRequestForbidden) IsCode(code int) bool
- func (o *GenerateRequestForbidden) IsRedirect() bool
- func (o *GenerateRequestForbidden) IsServerError() bool
- func (o *GenerateRequestForbidden) IsSuccess() bool
- func (o *GenerateRequestForbidden) String() string
- type GenerateRequestInternalServerError
- func (o *GenerateRequestInternalServerError) Error() string
- func (o *GenerateRequestInternalServerError) GetPayload() *models.HTTPError
- func (o *GenerateRequestInternalServerError) IsClientError() bool
- func (o *GenerateRequestInternalServerError) IsCode(code int) bool
- func (o *GenerateRequestInternalServerError) IsRedirect() bool
- func (o *GenerateRequestInternalServerError) IsServerError() bool
- func (o *GenerateRequestInternalServerError) IsSuccess() bool
- func (o *GenerateRequestInternalServerError) String() string
- type GenerateRequestParams
- func NewGenerateRequestParams() *GenerateRequestParams
- func NewGenerateRequestParamsWithContext(ctx context.Context) *GenerateRequestParams
- func NewGenerateRequestParamsWithHTTPClient(client *http.Client) *GenerateRequestParams
- func NewGenerateRequestParamsWithTimeout(timeout time.Duration) *GenerateRequestParams
- func (o *GenerateRequestParams) SetContext(ctx context.Context)
- func (o *GenerateRequestParams) SetDefaults()
- func (o *GenerateRequestParams) SetHTTPClient(client *http.Client)
- func (o *GenerateRequestParams) SetMinNumberOfShares(minNumberOfShares int64)
- func (o *GenerateRequestParams) SetNewAdmins(newAdmins []string)
- func (o *GenerateRequestParams) SetTimeout(timeout time.Duration)
- func (o *GenerateRequestParams) WithContext(ctx context.Context) *GenerateRequestParams
- func (o *GenerateRequestParams) WithDefaults() *GenerateRequestParams
- func (o *GenerateRequestParams) WithHTTPClient(client *http.Client) *GenerateRequestParams
- func (o *GenerateRequestParams) WithMinNumberOfShares(minNumberOfShares int64) *GenerateRequestParams
- func (o *GenerateRequestParams) WithNewAdmins(newAdmins []string) *GenerateRequestParams
- func (o *GenerateRequestParams) WithTimeout(timeout time.Duration) *GenerateRequestParams
- func (o *GenerateRequestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GenerateRequestReader
- type GenerateRequestUnauthorized
- func (o *GenerateRequestUnauthorized) Error() string
- func (o *GenerateRequestUnauthorized) GetPayload() *models.HTTPError
- func (o *GenerateRequestUnauthorized) IsClientError() bool
- func (o *GenerateRequestUnauthorized) IsCode(code int) bool
- func (o *GenerateRequestUnauthorized) IsRedirect() bool
- func (o *GenerateRequestUnauthorized) IsServerError() bool
- func (o *GenerateRequestUnauthorized) IsSuccess() bool
- func (o *GenerateRequestUnauthorized) String() string
- type GetStatusBadRequest
- func (o *GetStatusBadRequest) Error() string
- func (o *GetStatusBadRequest) GetPayload() *models.HTTPError
- func (o *GetStatusBadRequest) IsClientError() bool
- func (o *GetStatusBadRequest) IsCode(code int) bool
- func (o *GetStatusBadRequest) IsRedirect() bool
- func (o *GetStatusBadRequest) IsServerError() bool
- func (o *GetStatusBadRequest) IsSuccess() bool
- func (o *GetStatusBadRequest) String() string
- type GetStatusForbidden
- func (o *GetStatusForbidden) Error() string
- func (o *GetStatusForbidden) GetPayload() *models.HTTPError
- func (o *GetStatusForbidden) IsClientError() bool
- func (o *GetStatusForbidden) IsCode(code int) bool
- func (o *GetStatusForbidden) IsRedirect() bool
- func (o *GetStatusForbidden) IsServerError() bool
- func (o *GetStatusForbidden) IsSuccess() bool
- func (o *GetStatusForbidden) String() string
- type GetStatusOK
- func (o *GetStatusOK) Error() string
- func (o *GetStatusOK) GetPayload() *models.StatusResponse
- func (o *GetStatusOK) IsClientError() bool
- func (o *GetStatusOK) IsCode(code int) bool
- func (o *GetStatusOK) IsRedirect() bool
- func (o *GetStatusOK) IsServerError() bool
- func (o *GetStatusOK) IsSuccess() bool
- func (o *GetStatusOK) String() string
- type GetStatusParams
- func (o *GetStatusParams) SetContext(ctx context.Context)
- func (o *GetStatusParams) SetDefaults()
- func (o *GetStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetStatusParams) WithContext(ctx context.Context) *GetStatusParams
- func (o *GetStatusParams) WithDefaults() *GetStatusParams
- func (o *GetStatusParams) WithHTTPClient(client *http.Client) *GetStatusParams
- func (o *GetStatusParams) WithTimeout(timeout time.Duration) *GetStatusParams
- func (o *GetStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetStatusReader
- type GetStatusUnauthorized
- func (o *GetStatusUnauthorized) Error() string
- func (o *GetStatusUnauthorized) GetPayload() *models.HTTPError
- func (o *GetStatusUnauthorized) IsClientError() bool
- func (o *GetStatusUnauthorized) IsCode(code int) bool
- func (o *GetStatusUnauthorized) IsRedirect() bool
- func (o *GetStatusUnauthorized) IsServerError() bool
- func (o *GetStatusUnauthorized) IsSuccess() bool
- func (o *GetStatusUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyRequestBadRequest ¶
ApplyRequestBadRequest describes a response with status code 400, with default header values.
bad request
func NewApplyRequestBadRequest ¶
func NewApplyRequestBadRequest() *ApplyRequestBadRequest
NewApplyRequestBadRequest creates a ApplyRequestBadRequest with default headers values
func (*ApplyRequestBadRequest) Error ¶
func (o *ApplyRequestBadRequest) Error() string
func (*ApplyRequestBadRequest) GetPayload ¶
func (o *ApplyRequestBadRequest) GetPayload() *models.HTTPError
func (*ApplyRequestBadRequest) IsClientError ¶
func (o *ApplyRequestBadRequest) IsClientError() bool
IsClientError returns true when this apply request bad request response has a 4xx status code
func (*ApplyRequestBadRequest) IsCode ¶
func (o *ApplyRequestBadRequest) IsCode(code int) bool
IsCode returns true when this apply request bad request response a status code equal to that given
func (*ApplyRequestBadRequest) IsRedirect ¶
func (o *ApplyRequestBadRequest) IsRedirect() bool
IsRedirect returns true when this apply request bad request response has a 3xx status code
func (*ApplyRequestBadRequest) IsServerError ¶
func (o *ApplyRequestBadRequest) IsServerError() bool
IsServerError returns true when this apply request bad request response has a 5xx status code
func (*ApplyRequestBadRequest) IsSuccess ¶
func (o *ApplyRequestBadRequest) IsSuccess() bool
IsSuccess returns true when this apply request bad request response has a 2xx status code
func (*ApplyRequestBadRequest) String ¶
func (o *ApplyRequestBadRequest) String() string
type ApplyRequestCreated ¶
type ApplyRequestCreated struct {
Payload *models.ApplyResponse
}
ApplyRequestCreated describes a response with status code 201, with default header values.
no error
func NewApplyRequestCreated ¶
func NewApplyRequestCreated() *ApplyRequestCreated
NewApplyRequestCreated creates a ApplyRequestCreated with default headers values
func (*ApplyRequestCreated) Error ¶
func (o *ApplyRequestCreated) Error() string
func (*ApplyRequestCreated) GetPayload ¶
func (o *ApplyRequestCreated) GetPayload() *models.ApplyResponse
func (*ApplyRequestCreated) IsClientError ¶
func (o *ApplyRequestCreated) IsClientError() bool
IsClientError returns true when this apply request created response has a 4xx status code
func (*ApplyRequestCreated) IsCode ¶
func (o *ApplyRequestCreated) IsCode(code int) bool
IsCode returns true when this apply request created response a status code equal to that given
func (*ApplyRequestCreated) IsRedirect ¶
func (o *ApplyRequestCreated) IsRedirect() bool
IsRedirect returns true when this apply request created response has a 3xx status code
func (*ApplyRequestCreated) IsServerError ¶
func (o *ApplyRequestCreated) IsServerError() bool
IsServerError returns true when this apply request created response has a 5xx status code
func (*ApplyRequestCreated) IsSuccess ¶
func (o *ApplyRequestCreated) IsSuccess() bool
IsSuccess returns true when this apply request created response has a 2xx status code
func (*ApplyRequestCreated) String ¶
func (o *ApplyRequestCreated) String() string
type ApplyRequestForbidden ¶
ApplyRequestForbidden describes a response with status code 403, with default header values.
forbidden
func NewApplyRequestForbidden ¶
func NewApplyRequestForbidden() *ApplyRequestForbidden
NewApplyRequestForbidden creates a ApplyRequestForbidden with default headers values
func (*ApplyRequestForbidden) Error ¶
func (o *ApplyRequestForbidden) Error() string
func (*ApplyRequestForbidden) GetPayload ¶
func (o *ApplyRequestForbidden) GetPayload() *models.HTTPError
func (*ApplyRequestForbidden) IsClientError ¶
func (o *ApplyRequestForbidden) IsClientError() bool
IsClientError returns true when this apply request forbidden response has a 4xx status code
func (*ApplyRequestForbidden) IsCode ¶
func (o *ApplyRequestForbidden) IsCode(code int) bool
IsCode returns true when this apply request forbidden response a status code equal to that given
func (*ApplyRequestForbidden) IsRedirect ¶
func (o *ApplyRequestForbidden) IsRedirect() bool
IsRedirect returns true when this apply request forbidden response has a 3xx status code
func (*ApplyRequestForbidden) IsServerError ¶
func (o *ApplyRequestForbidden) IsServerError() bool
IsServerError returns true when this apply request forbidden response has a 5xx status code
func (*ApplyRequestForbidden) IsSuccess ¶
func (o *ApplyRequestForbidden) IsSuccess() bool
IsSuccess returns true when this apply request forbidden response has a 2xx status code
func (*ApplyRequestForbidden) String ¶
func (o *ApplyRequestForbidden) String() string
type ApplyRequestInternalServerError ¶
ApplyRequestInternalServerError describes a response with status code 500, with default header values.
server error
func NewApplyRequestInternalServerError ¶
func NewApplyRequestInternalServerError() *ApplyRequestInternalServerError
NewApplyRequestInternalServerError creates a ApplyRequestInternalServerError with default headers values
func (*ApplyRequestInternalServerError) Error ¶
func (o *ApplyRequestInternalServerError) Error() string
func (*ApplyRequestInternalServerError) GetPayload ¶
func (o *ApplyRequestInternalServerError) GetPayload() *models.HTTPError
func (*ApplyRequestInternalServerError) IsClientError ¶
func (o *ApplyRequestInternalServerError) IsClientError() bool
IsClientError returns true when this apply request internal server error response has a 4xx status code
func (*ApplyRequestInternalServerError) IsCode ¶
func (o *ApplyRequestInternalServerError) IsCode(code int) bool
IsCode returns true when this apply request internal server error response a status code equal to that given
func (*ApplyRequestInternalServerError) IsRedirect ¶
func (o *ApplyRequestInternalServerError) IsRedirect() bool
IsRedirect returns true when this apply request internal server error response has a 3xx status code
func (*ApplyRequestInternalServerError) IsServerError ¶
func (o *ApplyRequestInternalServerError) IsServerError() bool
IsServerError returns true when this apply request internal server error response has a 5xx status code
func (*ApplyRequestInternalServerError) IsSuccess ¶
func (o *ApplyRequestInternalServerError) IsSuccess() bool
IsSuccess returns true when this apply request internal server error response has a 2xx status code
func (*ApplyRequestInternalServerError) String ¶
func (o *ApplyRequestInternalServerError) String() string
type ApplyRequestParams ¶
type ApplyRequestParams struct { string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }Shares []
ApplyRequestParams contains all the parameters to send to the API endpoint
for the apply request operation. Typically these are written to a http.Request.
func NewApplyRequestParams ¶
func NewApplyRequestParams() *ApplyRequestParams
NewApplyRequestParams creates a new ApplyRequestParams 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 NewApplyRequestParamsWithContext ¶
func NewApplyRequestParamsWithContext(ctx context.Context) *ApplyRequestParams
NewApplyRequestParamsWithContext creates a new ApplyRequestParams object with the ability to set a context for a request.
func NewApplyRequestParamsWithHTTPClient ¶
func NewApplyRequestParamsWithHTTPClient(client *http.Client) *ApplyRequestParams
NewApplyRequestParamsWithHTTPClient creates a new ApplyRequestParams object with the ability to set a custom HTTPClient for a request.
func NewApplyRequestParamsWithTimeout ¶
func NewApplyRequestParamsWithTimeout(timeout time.Duration) *ApplyRequestParams
NewApplyRequestParamsWithTimeout creates a new ApplyRequestParams object with the ability to set a timeout on a request.
func (*ApplyRequestParams) SetContext ¶
func (o *ApplyRequestParams) SetContext(ctx context.Context)
SetContext adds the context to the apply request params
func (*ApplyRequestParams) SetDefaults ¶
func (o *ApplyRequestParams) SetDefaults()
SetDefaults hydrates default values in the apply request params (not the query body).
All values with no default are reset to their zero value.
func (*ApplyRequestParams) SetHTTPClient ¶
func (o *ApplyRequestParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the apply request params
func (*ApplyRequestParams) SetShares ¶
func (o *ApplyRequestParams) SetShares(shares []string)
SetShares adds the shares to the apply request params
func (*ApplyRequestParams) SetTimeout ¶
func (o *ApplyRequestParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the apply request params
func (*ApplyRequestParams) WithContext ¶
func (o *ApplyRequestParams) WithContext(ctx context.Context) *ApplyRequestParams
WithContext adds the context to the apply request params
func (*ApplyRequestParams) WithDefaults ¶
func (o *ApplyRequestParams) WithDefaults() *ApplyRequestParams
WithDefaults hydrates default values in the apply request params (not the query body).
All values with no default are reset to their zero value.
func (*ApplyRequestParams) WithHTTPClient ¶
func (o *ApplyRequestParams) WithHTTPClient(client *http.Client) *ApplyRequestParams
WithHTTPClient adds the HTTPClient to the apply request params
func (*ApplyRequestParams) WithShares ¶
func (o *ApplyRequestParams) WithShares(shares []string) *ApplyRequestParams
WithShares adds the shares to the apply request params
func (*ApplyRequestParams) WithTimeout ¶
func (o *ApplyRequestParams) WithTimeout(timeout time.Duration) *ApplyRequestParams
WithTimeout adds the timeout to the apply request params
func (*ApplyRequestParams) WriteToRequest ¶
func (o *ApplyRequestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ApplyRequestReader ¶
type ApplyRequestReader struct {
// contains filtered or unexported fields
}
ApplyRequestReader is a Reader for the ApplyRequest structure.
func (*ApplyRequestReader) ReadResponse ¶
func (o *ApplyRequestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ApplyRequestUnauthorized ¶
type ApplyRequestUnauthorized struct {
}ApplyRequestUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewApplyRequestUnauthorized ¶
func NewApplyRequestUnauthorized() *ApplyRequestUnauthorized
NewApplyRequestUnauthorized creates a ApplyRequestUnauthorized with default headers values
func (*ApplyRequestUnauthorized) Error ¶
func (o *ApplyRequestUnauthorized) Error() string
func (*ApplyRequestUnauthorized) GetPayload ¶
func (o *ApplyRequestUnauthorized) GetPayload() *models.HTTPError
func (*ApplyRequestUnauthorized) IsClientError ¶
func (o *ApplyRequestUnauthorized) IsClientError() bool
IsClientError returns true when this apply request unauthorized response has a 4xx status code
func (*ApplyRequestUnauthorized) IsCode ¶
func (o *ApplyRequestUnauthorized) IsCode(code int) bool
IsCode returns true when this apply request unauthorized response a status code equal to that given
func (*ApplyRequestUnauthorized) IsRedirect ¶
func (o *ApplyRequestUnauthorized) IsRedirect() bool
IsRedirect returns true when this apply request unauthorized response has a 3xx status code
func (*ApplyRequestUnauthorized) IsServerError ¶
func (o *ApplyRequestUnauthorized) IsServerError() bool
IsServerError returns true when this apply request unauthorized response has a 5xx status code
func (*ApplyRequestUnauthorized) IsSuccess ¶
func (o *ApplyRequestUnauthorized) IsSuccess() bool
IsSuccess returns true when this apply request unauthorized response has a 2xx status code
func (*ApplyRequestUnauthorized) String ¶
func (o *ApplyRequestUnauthorized) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for break glass API
func (*Client) ApplyRequest ¶
func (a *Client) ApplyRequest(params *ApplyRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplyRequestCreated, error)
ApplyRequest applies
Apply secret shares to break glass and give users admin rights
func (*Client) GenerateRequest ¶
func (a *Client) GenerateRequest(params *GenerateRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenerateRequestCreated, error)
GenerateRequest generates
Generate a new break glass secret and shares
func (*Client) GetStatus ¶
func (a *Client) GetStatus(params *GetStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetStatusOK, error)
GetStatus gets status
Get break glass status
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 { ApplyRequest(params *ApplyRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ApplyRequestCreated, error) GenerateRequest(params *GenerateRequestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GenerateRequestCreated, error) GetStatus(params *GetStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetStatusOK, 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 break glass API client.
type GenerateRequestBadRequest ¶
GenerateRequestBadRequest describes a response with status code 400, with default header values.
bad request
func NewGenerateRequestBadRequest ¶
func NewGenerateRequestBadRequest() *GenerateRequestBadRequest
NewGenerateRequestBadRequest creates a GenerateRequestBadRequest with default headers values
func (*GenerateRequestBadRequest) Error ¶
func (o *GenerateRequestBadRequest) Error() string
func (*GenerateRequestBadRequest) GetPayload ¶
func (o *GenerateRequestBadRequest) GetPayload() *models.HTTPError
func (*GenerateRequestBadRequest) IsClientError ¶
func (o *GenerateRequestBadRequest) IsClientError() bool
IsClientError returns true when this generate request bad request response has a 4xx status code
func (*GenerateRequestBadRequest) IsCode ¶
func (o *GenerateRequestBadRequest) IsCode(code int) bool
IsCode returns true when this generate request bad request response a status code equal to that given
func (*GenerateRequestBadRequest) IsRedirect ¶
func (o *GenerateRequestBadRequest) IsRedirect() bool
IsRedirect returns true when this generate request bad request response has a 3xx status code
func (*GenerateRequestBadRequest) IsServerError ¶
func (o *GenerateRequestBadRequest) IsServerError() bool
IsServerError returns true when this generate request bad request response has a 5xx status code
func (*GenerateRequestBadRequest) IsSuccess ¶
func (o *GenerateRequestBadRequest) IsSuccess() bool
IsSuccess returns true when this generate request bad request response has a 2xx status code
func (*GenerateRequestBadRequest) String ¶
func (o *GenerateRequestBadRequest) String() string
type GenerateRequestCreated ¶
type GenerateRequestCreated struct {
Payload *models.GenerateResponse
}
GenerateRequestCreated describes a response with status code 201, with default header values.
no error
func NewGenerateRequestCreated ¶
func NewGenerateRequestCreated() *GenerateRequestCreated
NewGenerateRequestCreated creates a GenerateRequestCreated with default headers values
func (*GenerateRequestCreated) Error ¶
func (o *GenerateRequestCreated) Error() string
func (*GenerateRequestCreated) GetPayload ¶
func (o *GenerateRequestCreated) GetPayload() *models.GenerateResponse
func (*GenerateRequestCreated) IsClientError ¶
func (o *GenerateRequestCreated) IsClientError() bool
IsClientError returns true when this generate request created response has a 4xx status code
func (*GenerateRequestCreated) IsCode ¶
func (o *GenerateRequestCreated) IsCode(code int) bool
IsCode returns true when this generate request created response a status code equal to that given
func (*GenerateRequestCreated) IsRedirect ¶
func (o *GenerateRequestCreated) IsRedirect() bool
IsRedirect returns true when this generate request created response has a 3xx status code
func (*GenerateRequestCreated) IsServerError ¶
func (o *GenerateRequestCreated) IsServerError() bool
IsServerError returns true when this generate request created response has a 5xx status code
func (*GenerateRequestCreated) IsSuccess ¶
func (o *GenerateRequestCreated) IsSuccess() bool
IsSuccess returns true when this generate request created response has a 2xx status code
func (*GenerateRequestCreated) String ¶
func (o *GenerateRequestCreated) String() string
type GenerateRequestForbidden ¶
GenerateRequestForbidden describes a response with status code 403, with default header values.
forbidden
func NewGenerateRequestForbidden ¶
func NewGenerateRequestForbidden() *GenerateRequestForbidden
NewGenerateRequestForbidden creates a GenerateRequestForbidden with default headers values
func (*GenerateRequestForbidden) Error ¶
func (o *GenerateRequestForbidden) Error() string
func (*GenerateRequestForbidden) GetPayload ¶
func (o *GenerateRequestForbidden) GetPayload() *models.HTTPError
func (*GenerateRequestForbidden) IsClientError ¶
func (o *GenerateRequestForbidden) IsClientError() bool
IsClientError returns true when this generate request forbidden response has a 4xx status code
func (*GenerateRequestForbidden) IsCode ¶
func (o *GenerateRequestForbidden) IsCode(code int) bool
IsCode returns true when this generate request forbidden response a status code equal to that given
func (*GenerateRequestForbidden) IsRedirect ¶
func (o *GenerateRequestForbidden) IsRedirect() bool
IsRedirect returns true when this generate request forbidden response has a 3xx status code
func (*GenerateRequestForbidden) IsServerError ¶
func (o *GenerateRequestForbidden) IsServerError() bool
IsServerError returns true when this generate request forbidden response has a 5xx status code
func (*GenerateRequestForbidden) IsSuccess ¶
func (o *GenerateRequestForbidden) IsSuccess() bool
IsSuccess returns true when this generate request forbidden response has a 2xx status code
func (*GenerateRequestForbidden) String ¶
func (o *GenerateRequestForbidden) String() string
type GenerateRequestInternalServerError ¶
GenerateRequestInternalServerError describes a response with status code 500, with default header values.
server error
func NewGenerateRequestInternalServerError ¶
func NewGenerateRequestInternalServerError() *GenerateRequestInternalServerError
NewGenerateRequestInternalServerError creates a GenerateRequestInternalServerError with default headers values
func (*GenerateRequestInternalServerError) Error ¶
func (o *GenerateRequestInternalServerError) Error() string
func (*GenerateRequestInternalServerError) GetPayload ¶
func (o *GenerateRequestInternalServerError) GetPayload() *models.HTTPError
func (*GenerateRequestInternalServerError) IsClientError ¶
func (o *GenerateRequestInternalServerError) IsClientError() bool
IsClientError returns true when this generate request internal server error response has a 4xx status code
func (*GenerateRequestInternalServerError) IsCode ¶
func (o *GenerateRequestInternalServerError) IsCode(code int) bool
IsCode returns true when this generate request internal server error response a status code equal to that given
func (*GenerateRequestInternalServerError) IsRedirect ¶
func (o *GenerateRequestInternalServerError) IsRedirect() bool
IsRedirect returns true when this generate request internal server error response has a 3xx status code
func (*GenerateRequestInternalServerError) IsServerError ¶
func (o *GenerateRequestInternalServerError) IsServerError() bool
IsServerError returns true when this generate request internal server error response has a 5xx status code
func (*GenerateRequestInternalServerError) IsSuccess ¶
func (o *GenerateRequestInternalServerError) IsSuccess() bool
IsSuccess returns true when this generate request internal server error response has a 2xx status code
func (*GenerateRequestInternalServerError) String ¶
func (o *GenerateRequestInternalServerError) String() string
type GenerateRequestParams ¶
type GenerateRequestParams struct { // // Format: int64 MinNumberOfShares int64 // NewAdmins. NewAdmins []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GenerateRequestParams contains all the parameters to send to the API endpoint
for the generate request operation. Typically these are written to a http.Request.
func NewGenerateRequestParams ¶
func NewGenerateRequestParams() *GenerateRequestParams
NewGenerateRequestParams creates a new GenerateRequestParams 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 NewGenerateRequestParamsWithContext ¶
func NewGenerateRequestParamsWithContext(ctx context.Context) *GenerateRequestParams
NewGenerateRequestParamsWithContext creates a new GenerateRequestParams object with the ability to set a context for a request.
func NewGenerateRequestParamsWithHTTPClient ¶
func NewGenerateRequestParamsWithHTTPClient(client *http.Client) *GenerateRequestParams
NewGenerateRequestParamsWithHTTPClient creates a new GenerateRequestParams object with the ability to set a custom HTTPClient for a request.
func NewGenerateRequestParamsWithTimeout ¶
func NewGenerateRequestParamsWithTimeout(timeout time.Duration) *GenerateRequestParams
NewGenerateRequestParamsWithTimeout creates a new GenerateRequestParams object with the ability to set a timeout on a request.
func (*GenerateRequestParams) SetContext ¶
func (o *GenerateRequestParams) SetContext(ctx context.Context)
SetContext adds the context to the generate request params
func (*GenerateRequestParams) SetDefaults ¶
func (o *GenerateRequestParams) SetDefaults()
SetDefaults hydrates default values in the generate request params (not the query body).
All values with no default are reset to their zero value.
func (*GenerateRequestParams) SetHTTPClient ¶
func (o *GenerateRequestParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the generate request params
func (*GenerateRequestParams) SetMinNumberOfShares ¶
func (o *GenerateRequestParams) SetMinNumberOfShares(minNumberOfShares int64)
SetMinNumberOfShares adds the minNumberOfShares to the generate request params
func (*GenerateRequestParams) SetNewAdmins ¶
func (o *GenerateRequestParams) SetNewAdmins(newAdmins []string)
SetNewAdmins adds the newAdmins to the generate request params
func (*GenerateRequestParams) SetTimeout ¶
func (o *GenerateRequestParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the generate request params
func (*GenerateRequestParams) WithContext ¶
func (o *GenerateRequestParams) WithContext(ctx context.Context) *GenerateRequestParams
WithContext adds the context to the generate request params
func (*GenerateRequestParams) WithDefaults ¶
func (o *GenerateRequestParams) WithDefaults() *GenerateRequestParams
WithDefaults hydrates default values in the generate request params (not the query body).
All values with no default are reset to their zero value.
func (*GenerateRequestParams) WithHTTPClient ¶
func (o *GenerateRequestParams) WithHTTPClient(client *http.Client) *GenerateRequestParams
WithHTTPClient adds the HTTPClient to the generate request params
func (*GenerateRequestParams) WithMinNumberOfShares ¶
func (o *GenerateRequestParams) WithMinNumberOfShares(minNumberOfShares int64) *GenerateRequestParams
WithMinNumberOfShares adds the minNumberOfShares to the generate request params
func (*GenerateRequestParams) WithNewAdmins ¶
func (o *GenerateRequestParams) WithNewAdmins(newAdmins []string) *GenerateRequestParams
WithNewAdmins adds the newAdmins to the generate request params
func (*GenerateRequestParams) WithTimeout ¶
func (o *GenerateRequestParams) WithTimeout(timeout time.Duration) *GenerateRequestParams
WithTimeout adds the timeout to the generate request params
func (*GenerateRequestParams) WriteToRequest ¶
func (o *GenerateRequestParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GenerateRequestReader ¶
type GenerateRequestReader struct {
// contains filtered or unexported fields
}
GenerateRequestReader is a Reader for the GenerateRequest structure.
func (*GenerateRequestReader) ReadResponse ¶
func (o *GenerateRequestReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GenerateRequestUnauthorized ¶
type GenerateRequestUnauthorized struct {
}GenerateRequestUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewGenerateRequestUnauthorized ¶
func NewGenerateRequestUnauthorized() *GenerateRequestUnauthorized
NewGenerateRequestUnauthorized creates a GenerateRequestUnauthorized with default headers values
func (*GenerateRequestUnauthorized) Error ¶
func (o *GenerateRequestUnauthorized) Error() string
func (*GenerateRequestUnauthorized) GetPayload ¶
func (o *GenerateRequestUnauthorized) GetPayload() *models.HTTPError
func (*GenerateRequestUnauthorized) IsClientError ¶
func (o *GenerateRequestUnauthorized) IsClientError() bool
IsClientError returns true when this generate request unauthorized response has a 4xx status code
func (*GenerateRequestUnauthorized) IsCode ¶
func (o *GenerateRequestUnauthorized) IsCode(code int) bool
IsCode returns true when this generate request unauthorized response a status code equal to that given
func (*GenerateRequestUnauthorized) IsRedirect ¶
func (o *GenerateRequestUnauthorized) IsRedirect() bool
IsRedirect returns true when this generate request unauthorized response has a 3xx status code
func (*GenerateRequestUnauthorized) IsServerError ¶
func (o *GenerateRequestUnauthorized) IsServerError() bool
IsServerError returns true when this generate request unauthorized response has a 5xx status code
func (*GenerateRequestUnauthorized) IsSuccess ¶
func (o *GenerateRequestUnauthorized) IsSuccess() bool
IsSuccess returns true when this generate request unauthorized response has a 2xx status code
func (*GenerateRequestUnauthorized) String ¶
func (o *GenerateRequestUnauthorized) String() string
type GetStatusBadRequest ¶
GetStatusBadRequest describes a response with status code 400, with default header values.
bad request
func NewGetStatusBadRequest ¶
func NewGetStatusBadRequest() *GetStatusBadRequest
NewGetStatusBadRequest creates a GetStatusBadRequest with default headers values
func (*GetStatusBadRequest) Error ¶
func (o *GetStatusBadRequest) Error() string
func (*GetStatusBadRequest) GetPayload ¶
func (o *GetStatusBadRequest) GetPayload() *models.HTTPError
func (*GetStatusBadRequest) IsClientError ¶
func (o *GetStatusBadRequest) IsClientError() bool
IsClientError returns true when this get status bad request response has a 4xx status code
func (*GetStatusBadRequest) IsCode ¶
func (o *GetStatusBadRequest) IsCode(code int) bool
IsCode returns true when this get status bad request response a status code equal to that given
func (*GetStatusBadRequest) IsRedirect ¶
func (o *GetStatusBadRequest) IsRedirect() bool
IsRedirect returns true when this get status bad request response has a 3xx status code
func (*GetStatusBadRequest) IsServerError ¶
func (o *GetStatusBadRequest) IsServerError() bool
IsServerError returns true when this get status bad request response has a 5xx status code
func (*GetStatusBadRequest) IsSuccess ¶
func (o *GetStatusBadRequest) IsSuccess() bool
IsSuccess returns true when this get status bad request response has a 2xx status code
func (*GetStatusBadRequest) String ¶
func (o *GetStatusBadRequest) String() string
type GetStatusForbidden ¶
GetStatusForbidden describes a response with status code 403, with default header values.
forbidden
func NewGetStatusForbidden ¶
func NewGetStatusForbidden() *GetStatusForbidden
NewGetStatusForbidden creates a GetStatusForbidden with default headers values
func (*GetStatusForbidden) Error ¶
func (o *GetStatusForbidden) Error() string
func (*GetStatusForbidden) GetPayload ¶
func (o *GetStatusForbidden) GetPayload() *models.HTTPError
func (*GetStatusForbidden) IsClientError ¶
func (o *GetStatusForbidden) IsClientError() bool
IsClientError returns true when this get status forbidden response has a 4xx status code
func (*GetStatusForbidden) IsCode ¶
func (o *GetStatusForbidden) IsCode(code int) bool
IsCode returns true when this get status forbidden response a status code equal to that given
func (*GetStatusForbidden) IsRedirect ¶
func (o *GetStatusForbidden) IsRedirect() bool
IsRedirect returns true when this get status forbidden response has a 3xx status code
func (*GetStatusForbidden) IsServerError ¶
func (o *GetStatusForbidden) IsServerError() bool
IsServerError returns true when this get status forbidden response has a 5xx status code
func (*GetStatusForbidden) IsSuccess ¶
func (o *GetStatusForbidden) IsSuccess() bool
IsSuccess returns true when this get status forbidden response has a 2xx status code
func (*GetStatusForbidden) String ¶
func (o *GetStatusForbidden) String() string
type GetStatusOK ¶
type GetStatusOK struct {
Payload *models.StatusResponse
}
GetStatusOK describes a response with status code 200, with default header values.
no error
func NewGetStatusOK ¶
func NewGetStatusOK() *GetStatusOK
NewGetStatusOK creates a GetStatusOK with default headers values
func (*GetStatusOK) Error ¶
func (o *GetStatusOK) Error() string
func (*GetStatusOK) GetPayload ¶
func (o *GetStatusOK) GetPayload() *models.StatusResponse
func (*GetStatusOK) IsClientError ¶
func (o *GetStatusOK) IsClientError() bool
IsClientError returns true when this get status o k response has a 4xx status code
func (*GetStatusOK) IsCode ¶
func (o *GetStatusOK) IsCode(code int) bool
IsCode returns true when this get status o k response a status code equal to that given
func (*GetStatusOK) IsRedirect ¶
func (o *GetStatusOK) IsRedirect() bool
IsRedirect returns true when this get status o k response has a 3xx status code
func (*GetStatusOK) IsServerError ¶
func (o *GetStatusOK) IsServerError() bool
IsServerError returns true when this get status o k response has a 5xx status code
func (*GetStatusOK) IsSuccess ¶
func (o *GetStatusOK) IsSuccess() bool
IsSuccess returns true when this get status o k response has a 2xx status code
func (*GetStatusOK) String ¶
func (o *GetStatusOK) String() string
type GetStatusParams ¶
type GetStatusParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetStatusParams contains all the parameters to send to the API endpoint
for the get status operation. Typically these are written to a http.Request.
func NewGetStatusParams ¶
func NewGetStatusParams() *GetStatusParams
NewGetStatusParams creates a new GetStatusParams 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 NewGetStatusParamsWithContext ¶
func NewGetStatusParamsWithContext(ctx context.Context) *GetStatusParams
NewGetStatusParamsWithContext creates a new GetStatusParams object with the ability to set a context for a request.
func NewGetStatusParamsWithHTTPClient ¶
func NewGetStatusParamsWithHTTPClient(client *http.Client) *GetStatusParams
NewGetStatusParamsWithHTTPClient creates a new GetStatusParams object with the ability to set a custom HTTPClient for a request.
func NewGetStatusParamsWithTimeout ¶
func NewGetStatusParamsWithTimeout(timeout time.Duration) *GetStatusParams
NewGetStatusParamsWithTimeout creates a new GetStatusParams object with the ability to set a timeout on a request.
func (*GetStatusParams) SetContext ¶
func (o *GetStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get status params
func (*GetStatusParams) SetDefaults ¶
func (o *GetStatusParams) SetDefaults()
SetDefaults hydrates default values in the get status params (not the query body).
All values with no default are reset to their zero value.
func (*GetStatusParams) SetHTTPClient ¶
func (o *GetStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get status params
func (*GetStatusParams) SetTimeout ¶
func (o *GetStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get status params
func (*GetStatusParams) WithContext ¶
func (o *GetStatusParams) WithContext(ctx context.Context) *GetStatusParams
WithContext adds the context to the get status params
func (*GetStatusParams) WithDefaults ¶
func (o *GetStatusParams) WithDefaults() *GetStatusParams
WithDefaults hydrates default values in the get status params (not the query body).
All values with no default are reset to their zero value.
func (*GetStatusParams) WithHTTPClient ¶
func (o *GetStatusParams) WithHTTPClient(client *http.Client) *GetStatusParams
WithHTTPClient adds the HTTPClient to the get status params
func (*GetStatusParams) WithTimeout ¶
func (o *GetStatusParams) WithTimeout(timeout time.Duration) *GetStatusParams
WithTimeout adds the timeout to the get status params
func (*GetStatusParams) WriteToRequest ¶
func (o *GetStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetStatusReader ¶
type GetStatusReader struct {
// contains filtered or unexported fields
}
GetStatusReader is a Reader for the GetStatus structure.
func (*GetStatusReader) ReadResponse ¶
func (o *GetStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetStatusUnauthorized ¶
type GetStatusUnauthorized struct {
}GetStatusUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewGetStatusUnauthorized ¶
func NewGetStatusUnauthorized() *GetStatusUnauthorized
NewGetStatusUnauthorized creates a GetStatusUnauthorized with default headers values
func (*GetStatusUnauthorized) Error ¶
func (o *GetStatusUnauthorized) Error() string
func (*GetStatusUnauthorized) GetPayload ¶
func (o *GetStatusUnauthorized) GetPayload() *models.HTTPError
func (*GetStatusUnauthorized) IsClientError ¶
func (o *GetStatusUnauthorized) IsClientError() bool
IsClientError returns true when this get status unauthorized response has a 4xx status code
func (*GetStatusUnauthorized) IsCode ¶
func (o *GetStatusUnauthorized) IsCode(code int) bool
IsCode returns true when this get status unauthorized response a status code equal to that given
func (*GetStatusUnauthorized) IsRedirect ¶
func (o *GetStatusUnauthorized) IsRedirect() bool
IsRedirect returns true when this get status unauthorized response has a 3xx status code
func (*GetStatusUnauthorized) IsServerError ¶
func (o *GetStatusUnauthorized) IsServerError() bool
IsServerError returns true when this get status unauthorized response has a 5xx status code
func (*GetStatusUnauthorized) IsSuccess ¶
func (o *GetStatusUnauthorized) IsSuccess() bool
IsSuccess returns true when this get status unauthorized response has a 2xx status code
func (*GetStatusUnauthorized) String ¶
func (o *GetStatusUnauthorized) String() string