saml

package
v0.0.0-...-59d2d35 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 11 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 saml API

func (*Client) GetMetadata

func (a *Client) GetMetadata(opts ...ClientOption) (*GetMetadataOK, error)

GetMetadata its exposes the s p grafana s metadata for the Id p s consumption

func (*Client) GetMetadataWithParams

func (a *Client) GetMetadataWithParams(params *GetMetadataParams, opts ...ClientOption) (*GetMetadataOK, error)

func (*Client) GetSAMLLogout

func (a *Client) GetSAMLLogout(opts ...ClientOption) error

GetSAMLLogout gets logout initiates single logout process

func (*Client) GetSAMLLogoutWithParams

func (a *Client) GetSAMLLogoutWithParams(params *GetSAMLLogoutParams, opts ...ClientOption) error

func (*Client) GetSLO

func (a *Client) GetSLO(opts ...ClientOption) error

GetSLO its performs single logout s l o callback

There might be two possible requests: 1. Logout response (callback) when Grafana initiates single logout and IdP returns response to logout request. 2. Logout request when another SP initiates single logout and IdP sends logout request to the Grafana, or in case of IdP-initiated logout.

func (*Client) GetSLOWithParams

func (a *Client) GetSLOWithParams(params *GetSLOParams, opts ...ClientOption) error

func (*Client) PostACS

func (a *Client) PostACS(params *PostACSParams, opts ...ClientOption) error

func (*Client) PostSLO

func (a *Client) PostSLO(params *PostSLOParams, opts ...ClientOption) error

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

func WithAuthInfo

func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption

WithAuthInfo changes the transport on the client

type ClientService

type ClientService interface {
	GetMetadata(opts ...ClientOption) (*GetMetadataOK, error)
	GetMetadataWithParams(params *GetMetadataParams, opts ...ClientOption) (*GetMetadataOK, error)

	GetSAMLLogout(opts ...ClientOption) error
	GetSAMLLogoutWithParams(params *GetSAMLLogoutParams, opts ...ClientOption) error

	GetSLO(opts ...ClientOption) error
	GetSLOWithParams(params *GetSLOParams, opts ...ClientOption) error

	PostACS(params *PostACSParams, opts ...ClientOption) error

	PostSLO(params *PostSLOParams, opts ...ClientOption) 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 saml API client.

type GetMetadataOK

type GetMetadataOK struct {
	Payload []uint8
}

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

(empty)

func NewGetMetadataOK

func NewGetMetadataOK() *GetMetadataOK

NewGetMetadataOK creates a GetMetadataOK with default headers values

func (*GetMetadataOK) Code

func (o *GetMetadataOK) Code() int

Code gets the status code for the get metadata Ok response

func (*GetMetadataOK) Error

func (o *GetMetadataOK) Error() string

func (*GetMetadataOK) GetPayload

func (o *GetMetadataOK) GetPayload() []uint8

func (*GetMetadataOK) IsClientError

func (o *GetMetadataOK) IsClientError() bool

IsClientError returns true when this get metadata Ok response has a 4xx status code

func (*GetMetadataOK) IsCode

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

IsCode returns true when this get metadata Ok response a status code equal to that given

func (*GetMetadataOK) IsRedirect

func (o *GetMetadataOK) IsRedirect() bool

IsRedirect returns true when this get metadata Ok response has a 3xx status code

func (*GetMetadataOK) IsServerError

func (o *GetMetadataOK) IsServerError() bool

IsServerError returns true when this get metadata Ok response has a 5xx status code

func (*GetMetadataOK) IsSuccess

func (o *GetMetadataOK) IsSuccess() bool

IsSuccess returns true when this get metadata Ok response has a 2xx status code

func (*GetMetadataOK) String

func (o *GetMetadataOK) String() string

type GetMetadataParams

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

GetMetadataParams contains all the parameters to send to the API endpoint

for the get metadata operation.

Typically these are written to a http.Request.

func NewGetMetadataParams

func NewGetMetadataParams() *GetMetadataParams

NewGetMetadataParams creates a new GetMetadataParams 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 NewGetMetadataParamsWithContext

func NewGetMetadataParamsWithContext(ctx context.Context) *GetMetadataParams

NewGetMetadataParamsWithContext creates a new GetMetadataParams object with the ability to set a context for a request.

func NewGetMetadataParamsWithHTTPClient

func NewGetMetadataParamsWithHTTPClient(client *http.Client) *GetMetadataParams

NewGetMetadataParamsWithHTTPClient creates a new GetMetadataParams object with the ability to set a custom HTTPClient for a request.

func NewGetMetadataParamsWithTimeout

func NewGetMetadataParamsWithTimeout(timeout time.Duration) *GetMetadataParams

NewGetMetadataParamsWithTimeout creates a new GetMetadataParams object with the ability to set a timeout on a request.

func (*GetMetadataParams) SetContext

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

SetContext adds the context to the get metadata params

func (*GetMetadataParams) SetDefaults

func (o *GetMetadataParams) SetDefaults()

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

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

func (*GetMetadataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get metadata params

func (*GetMetadataParams) SetTimeout

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

SetTimeout adds the timeout to the get metadata params

func (*GetMetadataParams) WithContext

func (o *GetMetadataParams) WithContext(ctx context.Context) *GetMetadataParams

WithContext adds the context to the get metadata params

func (*GetMetadataParams) WithDefaults

func (o *GetMetadataParams) WithDefaults() *GetMetadataParams

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

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

func (*GetMetadataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get metadata params

func (*GetMetadataParams) WithTimeout

func (o *GetMetadataParams) WithTimeout(timeout time.Duration) *GetMetadataParams

WithTimeout adds the timeout to the get metadata params

func (*GetMetadataParams) WriteToRequest

func (o *GetMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetMetadataReader

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

GetMetadataReader is a Reader for the GetMetadata structure.

func (*GetMetadataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSAMLLogoutFound

type GetSAMLLogoutFound struct {
}

GetSAMLLogoutFound describes a response with status code 302, with default header values.

(empty)

func NewGetSAMLLogoutFound

func NewGetSAMLLogoutFound() *GetSAMLLogoutFound

NewGetSAMLLogoutFound creates a GetSAMLLogoutFound with default headers values

func (*GetSAMLLogoutFound) Code

func (o *GetSAMLLogoutFound) Code() int

Code gets the status code for the get s a m l logout found response

func (*GetSAMLLogoutFound) Error

func (o *GetSAMLLogoutFound) Error() string

func (*GetSAMLLogoutFound) IsClientError

func (o *GetSAMLLogoutFound) IsClientError() bool

IsClientError returns true when this get s a m l logout found response has a 4xx status code

func (*GetSAMLLogoutFound) IsCode

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

IsCode returns true when this get s a m l logout found response a status code equal to that given

func (*GetSAMLLogoutFound) IsRedirect

func (o *GetSAMLLogoutFound) IsRedirect() bool

IsRedirect returns true when this get s a m l logout found response has a 3xx status code

func (*GetSAMLLogoutFound) IsServerError

func (o *GetSAMLLogoutFound) IsServerError() bool

IsServerError returns true when this get s a m l logout found response has a 5xx status code

func (*GetSAMLLogoutFound) IsSuccess

func (o *GetSAMLLogoutFound) IsSuccess() bool

IsSuccess returns true when this get s a m l logout found response has a 2xx status code

func (*GetSAMLLogoutFound) String

func (o *GetSAMLLogoutFound) String() string

type GetSAMLLogoutInternalServerError

type GetSAMLLogoutInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetSAMLLogoutInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetSAMLLogoutInternalServerError

func NewGetSAMLLogoutInternalServerError() *GetSAMLLogoutInternalServerError

NewGetSAMLLogoutInternalServerError creates a GetSAMLLogoutInternalServerError with default headers values

func (*GetSAMLLogoutInternalServerError) Code

Code gets the status code for the get s a m l logout internal server error response

func (*GetSAMLLogoutInternalServerError) Error

func (*GetSAMLLogoutInternalServerError) GetPayload

func (*GetSAMLLogoutInternalServerError) IsClientError

func (o *GetSAMLLogoutInternalServerError) IsClientError() bool

IsClientError returns true when this get s a m l logout internal server error response has a 4xx status code

func (*GetSAMLLogoutInternalServerError) IsCode

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

IsCode returns true when this get s a m l logout internal server error response a status code equal to that given

func (*GetSAMLLogoutInternalServerError) IsRedirect

func (o *GetSAMLLogoutInternalServerError) IsRedirect() bool

IsRedirect returns true when this get s a m l logout internal server error response has a 3xx status code

func (*GetSAMLLogoutInternalServerError) IsServerError

func (o *GetSAMLLogoutInternalServerError) IsServerError() bool

IsServerError returns true when this get s a m l logout internal server error response has a 5xx status code

func (*GetSAMLLogoutInternalServerError) IsSuccess

func (o *GetSAMLLogoutInternalServerError) IsSuccess() bool

IsSuccess returns true when this get s a m l logout internal server error response has a 2xx status code

func (*GetSAMLLogoutInternalServerError) String

type GetSAMLLogoutNotFound

type GetSAMLLogoutNotFound struct {
	Payload *models.ErrorResponseBody
}

GetSAMLLogoutNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewGetSAMLLogoutNotFound

func NewGetSAMLLogoutNotFound() *GetSAMLLogoutNotFound

NewGetSAMLLogoutNotFound creates a GetSAMLLogoutNotFound with default headers values

func (*GetSAMLLogoutNotFound) Code

func (o *GetSAMLLogoutNotFound) Code() int

Code gets the status code for the get s a m l logout not found response

func (*GetSAMLLogoutNotFound) Error

func (o *GetSAMLLogoutNotFound) Error() string

func (*GetSAMLLogoutNotFound) GetPayload

func (*GetSAMLLogoutNotFound) IsClientError

func (o *GetSAMLLogoutNotFound) IsClientError() bool

IsClientError returns true when this get s a m l logout not found response has a 4xx status code

func (*GetSAMLLogoutNotFound) IsCode

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

IsCode returns true when this get s a m l logout not found response a status code equal to that given

func (*GetSAMLLogoutNotFound) IsRedirect

func (o *GetSAMLLogoutNotFound) IsRedirect() bool

IsRedirect returns true when this get s a m l logout not found response has a 3xx status code

func (*GetSAMLLogoutNotFound) IsServerError

func (o *GetSAMLLogoutNotFound) IsServerError() bool

IsServerError returns true when this get s a m l logout not found response has a 5xx status code

func (*GetSAMLLogoutNotFound) IsSuccess

func (o *GetSAMLLogoutNotFound) IsSuccess() bool

IsSuccess returns true when this get s a m l logout not found response has a 2xx status code

func (*GetSAMLLogoutNotFound) String

func (o *GetSAMLLogoutNotFound) String() string

type GetSAMLLogoutParams

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

GetSAMLLogoutParams contains all the parameters to send to the API endpoint

for the get s a m l logout operation.

Typically these are written to a http.Request.

func NewGetSAMLLogoutParams

func NewGetSAMLLogoutParams() *GetSAMLLogoutParams

NewGetSAMLLogoutParams creates a new GetSAMLLogoutParams 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 NewGetSAMLLogoutParamsWithContext

func NewGetSAMLLogoutParamsWithContext(ctx context.Context) *GetSAMLLogoutParams

NewGetSAMLLogoutParamsWithContext creates a new GetSAMLLogoutParams object with the ability to set a context for a request.

func NewGetSAMLLogoutParamsWithHTTPClient

func NewGetSAMLLogoutParamsWithHTTPClient(client *http.Client) *GetSAMLLogoutParams

NewGetSAMLLogoutParamsWithHTTPClient creates a new GetSAMLLogoutParams object with the ability to set a custom HTTPClient for a request.

func NewGetSAMLLogoutParamsWithTimeout

func NewGetSAMLLogoutParamsWithTimeout(timeout time.Duration) *GetSAMLLogoutParams

NewGetSAMLLogoutParamsWithTimeout creates a new GetSAMLLogoutParams object with the ability to set a timeout on a request.

func (*GetSAMLLogoutParams) SetContext

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

SetContext adds the context to the get s a m l logout params

func (*GetSAMLLogoutParams) SetDefaults

func (o *GetSAMLLogoutParams) SetDefaults()

SetDefaults hydrates default values in the get s a m l logout params (not the query body).

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

func (*GetSAMLLogoutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get s a m l logout params

func (*GetSAMLLogoutParams) SetTimeout

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

SetTimeout adds the timeout to the get s a m l logout params

func (*GetSAMLLogoutParams) WithContext

WithContext adds the context to the get s a m l logout params

func (*GetSAMLLogoutParams) WithDefaults

func (o *GetSAMLLogoutParams) WithDefaults() *GetSAMLLogoutParams

WithDefaults hydrates default values in the get s a m l logout params (not the query body).

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

func (*GetSAMLLogoutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get s a m l logout params

func (*GetSAMLLogoutParams) WithTimeout

func (o *GetSAMLLogoutParams) WithTimeout(timeout time.Duration) *GetSAMLLogoutParams

WithTimeout adds the timeout to the get s a m l logout params

func (*GetSAMLLogoutParams) WriteToRequest

func (o *GetSAMLLogoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetSAMLLogoutReader

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

GetSAMLLogoutReader is a Reader for the GetSAMLLogout structure.

func (*GetSAMLLogoutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetSLOBadRequest

type GetSLOBadRequest struct {
	Payload *models.ErrorResponseBody
}

GetSLOBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewGetSLOBadRequest

func NewGetSLOBadRequest() *GetSLOBadRequest

NewGetSLOBadRequest creates a GetSLOBadRequest with default headers values

func (*GetSLOBadRequest) Code

func (o *GetSLOBadRequest) Code() int

Code gets the status code for the get s l o bad request response

func (*GetSLOBadRequest) Error

func (o *GetSLOBadRequest) Error() string

func (*GetSLOBadRequest) GetPayload

func (o *GetSLOBadRequest) GetPayload() *models.ErrorResponseBody

func (*GetSLOBadRequest) IsClientError

func (o *GetSLOBadRequest) IsClientError() bool

IsClientError returns true when this get s l o bad request response has a 4xx status code

func (*GetSLOBadRequest) IsCode

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

IsCode returns true when this get s l o bad request response a status code equal to that given

func (*GetSLOBadRequest) IsRedirect

func (o *GetSLOBadRequest) IsRedirect() bool

IsRedirect returns true when this get s l o bad request response has a 3xx status code

func (*GetSLOBadRequest) IsServerError

func (o *GetSLOBadRequest) IsServerError() bool

IsServerError returns true when this get s l o bad request response has a 5xx status code

func (*GetSLOBadRequest) IsSuccess

func (o *GetSLOBadRequest) IsSuccess() bool

IsSuccess returns true when this get s l o bad request response has a 2xx status code

func (*GetSLOBadRequest) String

func (o *GetSLOBadRequest) String() string

type GetSLOForbidden

type GetSLOForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewGetSLOForbidden

func NewGetSLOForbidden() *GetSLOForbidden

NewGetSLOForbidden creates a GetSLOForbidden with default headers values

func (*GetSLOForbidden) Code

func (o *GetSLOForbidden) Code() int

Code gets the status code for the get s l o forbidden response

func (*GetSLOForbidden) Error

func (o *GetSLOForbidden) Error() string

func (*GetSLOForbidden) GetPayload

func (o *GetSLOForbidden) GetPayload() *models.ErrorResponseBody

func (*GetSLOForbidden) IsClientError

func (o *GetSLOForbidden) IsClientError() bool

IsClientError returns true when this get s l o forbidden response has a 4xx status code

func (*GetSLOForbidden) IsCode

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

IsCode returns true when this get s l o forbidden response a status code equal to that given

func (*GetSLOForbidden) IsRedirect

func (o *GetSLOForbidden) IsRedirect() bool

IsRedirect returns true when this get s l o forbidden response has a 3xx status code

func (*GetSLOForbidden) IsServerError

func (o *GetSLOForbidden) IsServerError() bool

IsServerError returns true when this get s l o forbidden response has a 5xx status code

func (*GetSLOForbidden) IsSuccess

func (o *GetSLOForbidden) IsSuccess() bool

IsSuccess returns true when this get s l o forbidden response has a 2xx status code

func (*GetSLOForbidden) String

func (o *GetSLOForbidden) String() string

type GetSLOFound

type GetSLOFound struct {
}

GetSLOFound describes a response with status code 302, with default header values.

(empty)

func NewGetSLOFound

func NewGetSLOFound() *GetSLOFound

NewGetSLOFound creates a GetSLOFound with default headers values

func (*GetSLOFound) Code

func (o *GetSLOFound) Code() int

Code gets the status code for the get s l o found response

func (*GetSLOFound) Error

func (o *GetSLOFound) Error() string

func (*GetSLOFound) IsClientError

func (o *GetSLOFound) IsClientError() bool

IsClientError returns true when this get s l o found response has a 4xx status code

func (*GetSLOFound) IsCode

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

IsCode returns true when this get s l o found response a status code equal to that given

func (*GetSLOFound) IsRedirect

func (o *GetSLOFound) IsRedirect() bool

IsRedirect returns true when this get s l o found response has a 3xx status code

func (*GetSLOFound) IsServerError

func (o *GetSLOFound) IsServerError() bool

IsServerError returns true when this get s l o found response has a 5xx status code

func (*GetSLOFound) IsSuccess

func (o *GetSLOFound) IsSuccess() bool

IsSuccess returns true when this get s l o found response has a 2xx status code

func (*GetSLOFound) String

func (o *GetSLOFound) String() string

type GetSLOInternalServerError

type GetSLOInternalServerError struct {
	Payload *models.ErrorResponseBody
}

GetSLOInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewGetSLOInternalServerError

func NewGetSLOInternalServerError() *GetSLOInternalServerError

NewGetSLOInternalServerError creates a GetSLOInternalServerError with default headers values

func (*GetSLOInternalServerError) Code

func (o *GetSLOInternalServerError) Code() int

Code gets the status code for the get s l o internal server error response

func (*GetSLOInternalServerError) Error

func (o *GetSLOInternalServerError) Error() string

func (*GetSLOInternalServerError) GetPayload

func (*GetSLOInternalServerError) IsClientError

func (o *GetSLOInternalServerError) IsClientError() bool

IsClientError returns true when this get s l o internal server error response has a 4xx status code

func (*GetSLOInternalServerError) IsCode

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

IsCode returns true when this get s l o internal server error response a status code equal to that given

func (*GetSLOInternalServerError) IsRedirect

func (o *GetSLOInternalServerError) IsRedirect() bool

IsRedirect returns true when this get s l o internal server error response has a 3xx status code

func (*GetSLOInternalServerError) IsServerError

func (o *GetSLOInternalServerError) IsServerError() bool

IsServerError returns true when this get s l o internal server error response has a 5xx status code

func (*GetSLOInternalServerError) IsSuccess

func (o *GetSLOInternalServerError) IsSuccess() bool

IsSuccess returns true when this get s l o internal server error response has a 2xx status code

func (*GetSLOInternalServerError) String

func (o *GetSLOInternalServerError) String() string

type GetSLOParams

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

GetSLOParams contains all the parameters to send to the API endpoint

for the get s l o operation.

Typically these are written to a http.Request.

func NewGetSLOParams

func NewGetSLOParams() *GetSLOParams

NewGetSLOParams creates a new GetSLOParams 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 NewGetSLOParamsWithContext

func NewGetSLOParamsWithContext(ctx context.Context) *GetSLOParams

NewGetSLOParamsWithContext creates a new GetSLOParams object with the ability to set a context for a request.

func NewGetSLOParamsWithHTTPClient

func NewGetSLOParamsWithHTTPClient(client *http.Client) *GetSLOParams

NewGetSLOParamsWithHTTPClient creates a new GetSLOParams object with the ability to set a custom HTTPClient for a request.

func NewGetSLOParamsWithTimeout

func NewGetSLOParamsWithTimeout(timeout time.Duration) *GetSLOParams

NewGetSLOParamsWithTimeout creates a new GetSLOParams object with the ability to set a timeout on a request.

func (*GetSLOParams) SetContext

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

SetContext adds the context to the get s l o params

func (*GetSLOParams) SetDefaults

func (o *GetSLOParams) SetDefaults()

SetDefaults hydrates default values in the get s l o params (not the query body).

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

func (*GetSLOParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get s l o params

func (*GetSLOParams) SetTimeout

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

SetTimeout adds the timeout to the get s l o params

func (*GetSLOParams) WithContext

func (o *GetSLOParams) WithContext(ctx context.Context) *GetSLOParams

WithContext adds the context to the get s l o params

func (*GetSLOParams) WithDefaults

func (o *GetSLOParams) WithDefaults() *GetSLOParams

WithDefaults hydrates default values in the get s l o params (not the query body).

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

func (*GetSLOParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get s l o params

func (*GetSLOParams) WithTimeout

func (o *GetSLOParams) WithTimeout(timeout time.Duration) *GetSLOParams

WithTimeout adds the timeout to the get s l o params

func (*GetSLOParams) WriteToRequest

func (o *GetSLOParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetSLOReader

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

GetSLOReader is a Reader for the GetSLO structure.

func (*GetSLOReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostACSForbidden

type PostACSForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewPostACSForbidden

func NewPostACSForbidden() *PostACSForbidden

NewPostACSForbidden creates a PostACSForbidden with default headers values

func (*PostACSForbidden) Code

func (o *PostACSForbidden) Code() int

Code gets the status code for the post a c s forbidden response

func (*PostACSForbidden) Error

func (o *PostACSForbidden) Error() string

func (*PostACSForbidden) GetPayload

func (o *PostACSForbidden) GetPayload() *models.ErrorResponseBody

func (*PostACSForbidden) IsClientError

func (o *PostACSForbidden) IsClientError() bool

IsClientError returns true when this post a c s forbidden response has a 4xx status code

func (*PostACSForbidden) IsCode

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

IsCode returns true when this post a c s forbidden response a status code equal to that given

func (*PostACSForbidden) IsRedirect

func (o *PostACSForbidden) IsRedirect() bool

IsRedirect returns true when this post a c s forbidden response has a 3xx status code

func (*PostACSForbidden) IsServerError

func (o *PostACSForbidden) IsServerError() bool

IsServerError returns true when this post a c s forbidden response has a 5xx status code

func (*PostACSForbidden) IsSuccess

func (o *PostACSForbidden) IsSuccess() bool

IsSuccess returns true when this post a c s forbidden response has a 2xx status code

func (*PostACSForbidden) String

func (o *PostACSForbidden) String() string

type PostACSFound

type PostACSFound struct {
}

PostACSFound describes a response with status code 302, with default header values.

(empty)

func NewPostACSFound

func NewPostACSFound() *PostACSFound

NewPostACSFound creates a PostACSFound with default headers values

func (*PostACSFound) Code

func (o *PostACSFound) Code() int

Code gets the status code for the post a c s found response

func (*PostACSFound) Error

func (o *PostACSFound) Error() string

func (*PostACSFound) IsClientError

func (o *PostACSFound) IsClientError() bool

IsClientError returns true when this post a c s found response has a 4xx status code

func (*PostACSFound) IsCode

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

IsCode returns true when this post a c s found response a status code equal to that given

func (*PostACSFound) IsRedirect

func (o *PostACSFound) IsRedirect() bool

IsRedirect returns true when this post a c s found response has a 3xx status code

func (*PostACSFound) IsServerError

func (o *PostACSFound) IsServerError() bool

IsServerError returns true when this post a c s found response has a 5xx status code

func (*PostACSFound) IsSuccess

func (o *PostACSFound) IsSuccess() bool

IsSuccess returns true when this post a c s found response has a 2xx status code

func (*PostACSFound) String

func (o *PostACSFound) String() string

type PostACSInternalServerError

type PostACSInternalServerError struct {
	Payload *models.ErrorResponseBody
}

PostACSInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewPostACSInternalServerError

func NewPostACSInternalServerError() *PostACSInternalServerError

NewPostACSInternalServerError creates a PostACSInternalServerError with default headers values

func (*PostACSInternalServerError) Code

func (o *PostACSInternalServerError) Code() int

Code gets the status code for the post a c s internal server error response

func (*PostACSInternalServerError) Error

func (*PostACSInternalServerError) GetPayload

func (*PostACSInternalServerError) IsClientError

func (o *PostACSInternalServerError) IsClientError() bool

IsClientError returns true when this post a c s internal server error response has a 4xx status code

func (*PostACSInternalServerError) IsCode

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

IsCode returns true when this post a c s internal server error response a status code equal to that given

func (*PostACSInternalServerError) IsRedirect

func (o *PostACSInternalServerError) IsRedirect() bool

IsRedirect returns true when this post a c s internal server error response has a 3xx status code

func (*PostACSInternalServerError) IsServerError

func (o *PostACSInternalServerError) IsServerError() bool

IsServerError returns true when this post a c s internal server error response has a 5xx status code

func (*PostACSInternalServerError) IsSuccess

func (o *PostACSInternalServerError) IsSuccess() bool

IsSuccess returns true when this post a c s internal server error response has a 2xx status code

func (*PostACSInternalServerError) String

func (o *PostACSInternalServerError) String() string

type PostACSParams

type PostACSParams struct {

	// RelayState.
	RelayState *string

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

PostACSParams contains all the parameters to send to the API endpoint

for the post a c s operation.

Typically these are written to a http.Request.

func NewPostACSParams

func NewPostACSParams() *PostACSParams

NewPostACSParams creates a new PostACSParams 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 NewPostACSParamsWithContext

func NewPostACSParamsWithContext(ctx context.Context) *PostACSParams

NewPostACSParamsWithContext creates a new PostACSParams object with the ability to set a context for a request.

func NewPostACSParamsWithHTTPClient

func NewPostACSParamsWithHTTPClient(client *http.Client) *PostACSParams

NewPostACSParamsWithHTTPClient creates a new PostACSParams object with the ability to set a custom HTTPClient for a request.

func NewPostACSParamsWithTimeout

func NewPostACSParamsWithTimeout(timeout time.Duration) *PostACSParams

NewPostACSParamsWithTimeout creates a new PostACSParams object with the ability to set a timeout on a request.

func (*PostACSParams) SetContext

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

SetContext adds the context to the post a c s params

func (*PostACSParams) SetDefaults

func (o *PostACSParams) SetDefaults()

SetDefaults hydrates default values in the post a c s params (not the query body).

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

func (*PostACSParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post a c s params

func (*PostACSParams) SetRelayState

func (o *PostACSParams) SetRelayState(relayState *string)

SetRelayState adds the relayState to the post a c s params

func (*PostACSParams) SetTimeout

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

SetTimeout adds the timeout to the post a c s params

func (*PostACSParams) WithContext

func (o *PostACSParams) WithContext(ctx context.Context) *PostACSParams

WithContext adds the context to the post a c s params

func (*PostACSParams) WithDefaults

func (o *PostACSParams) WithDefaults() *PostACSParams

WithDefaults hydrates default values in the post a c s params (not the query body).

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

func (*PostACSParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post a c s params

func (*PostACSParams) WithRelayState

func (o *PostACSParams) WithRelayState(relayState *string) *PostACSParams

WithRelayState adds the relayState to the post a c s params

func (*PostACSParams) WithTimeout

func (o *PostACSParams) WithTimeout(timeout time.Duration) *PostACSParams

WithTimeout adds the timeout to the post a c s params

func (*PostACSParams) WriteToRequest

func (o *PostACSParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostACSReader

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

PostACSReader is a Reader for the PostACS structure.

func (*PostACSReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostSLOBadRequest

type PostSLOBadRequest struct {
	Payload *models.ErrorResponseBody
}

PostSLOBadRequest describes a response with status code 400, with default header values.

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewPostSLOBadRequest

func NewPostSLOBadRequest() *PostSLOBadRequest

NewPostSLOBadRequest creates a PostSLOBadRequest with default headers values

func (*PostSLOBadRequest) Code

func (o *PostSLOBadRequest) Code() int

Code gets the status code for the post s l o bad request response

func (*PostSLOBadRequest) Error

func (o *PostSLOBadRequest) Error() string

func (*PostSLOBadRequest) GetPayload

func (o *PostSLOBadRequest) GetPayload() *models.ErrorResponseBody

func (*PostSLOBadRequest) IsClientError

func (o *PostSLOBadRequest) IsClientError() bool

IsClientError returns true when this post s l o bad request response has a 4xx status code

func (*PostSLOBadRequest) IsCode

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

IsCode returns true when this post s l o bad request response a status code equal to that given

func (*PostSLOBadRequest) IsRedirect

func (o *PostSLOBadRequest) IsRedirect() bool

IsRedirect returns true when this post s l o bad request response has a 3xx status code

func (*PostSLOBadRequest) IsServerError

func (o *PostSLOBadRequest) IsServerError() bool

IsServerError returns true when this post s l o bad request response has a 5xx status code

func (*PostSLOBadRequest) IsSuccess

func (o *PostSLOBadRequest) IsSuccess() bool

IsSuccess returns true when this post s l o bad request response has a 2xx status code

func (*PostSLOBadRequest) String

func (o *PostSLOBadRequest) String() string

type PostSLOForbidden

type PostSLOForbidden struct {
	Payload *models.ErrorResponseBody
}

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

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewPostSLOForbidden

func NewPostSLOForbidden() *PostSLOForbidden

NewPostSLOForbidden creates a PostSLOForbidden with default headers values

func (*PostSLOForbidden) Code

func (o *PostSLOForbidden) Code() int

Code gets the status code for the post s l o forbidden response

func (*PostSLOForbidden) Error

func (o *PostSLOForbidden) Error() string

func (*PostSLOForbidden) GetPayload

func (o *PostSLOForbidden) GetPayload() *models.ErrorResponseBody

func (*PostSLOForbidden) IsClientError

func (o *PostSLOForbidden) IsClientError() bool

IsClientError returns true when this post s l o forbidden response has a 4xx status code

func (*PostSLOForbidden) IsCode

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

IsCode returns true when this post s l o forbidden response a status code equal to that given

func (*PostSLOForbidden) IsRedirect

func (o *PostSLOForbidden) IsRedirect() bool

IsRedirect returns true when this post s l o forbidden response has a 3xx status code

func (*PostSLOForbidden) IsServerError

func (o *PostSLOForbidden) IsServerError() bool

IsServerError returns true when this post s l o forbidden response has a 5xx status code

func (*PostSLOForbidden) IsSuccess

func (o *PostSLOForbidden) IsSuccess() bool

IsSuccess returns true when this post s l o forbidden response has a 2xx status code

func (*PostSLOForbidden) String

func (o *PostSLOForbidden) String() string

type PostSLOFound

type PostSLOFound struct {
}

PostSLOFound describes a response with status code 302, with default header values.

(empty)

func NewPostSLOFound

func NewPostSLOFound() *PostSLOFound

NewPostSLOFound creates a PostSLOFound with default headers values

func (*PostSLOFound) Code

func (o *PostSLOFound) Code() int

Code gets the status code for the post s l o found response

func (*PostSLOFound) Error

func (o *PostSLOFound) Error() string

func (*PostSLOFound) IsClientError

func (o *PostSLOFound) IsClientError() bool

IsClientError returns true when this post s l o found response has a 4xx status code

func (*PostSLOFound) IsCode

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

IsCode returns true when this post s l o found response a status code equal to that given

func (*PostSLOFound) IsRedirect

func (o *PostSLOFound) IsRedirect() bool

IsRedirect returns true when this post s l o found response has a 3xx status code

func (*PostSLOFound) IsServerError

func (o *PostSLOFound) IsServerError() bool

IsServerError returns true when this post s l o found response has a 5xx status code

func (*PostSLOFound) IsSuccess

func (o *PostSLOFound) IsSuccess() bool

IsSuccess returns true when this post s l o found response has a 2xx status code

func (*PostSLOFound) String

func (o *PostSLOFound) String() string

type PostSLOInternalServerError

type PostSLOInternalServerError struct {
	Payload *models.ErrorResponseBody
}

PostSLOInternalServerError describes a response with status code 500, with default header values.

InternalServerError is a general error indicating something went wrong internally.

func NewPostSLOInternalServerError

func NewPostSLOInternalServerError() *PostSLOInternalServerError

NewPostSLOInternalServerError creates a PostSLOInternalServerError with default headers values

func (*PostSLOInternalServerError) Code

func (o *PostSLOInternalServerError) Code() int

Code gets the status code for the post s l o internal server error response

func (*PostSLOInternalServerError) Error

func (*PostSLOInternalServerError) GetPayload

func (*PostSLOInternalServerError) IsClientError

func (o *PostSLOInternalServerError) IsClientError() bool

IsClientError returns true when this post s l o internal server error response has a 4xx status code

func (*PostSLOInternalServerError) IsCode

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

IsCode returns true when this post s l o internal server error response a status code equal to that given

func (*PostSLOInternalServerError) IsRedirect

func (o *PostSLOInternalServerError) IsRedirect() bool

IsRedirect returns true when this post s l o internal server error response has a 3xx status code

func (*PostSLOInternalServerError) IsServerError

func (o *PostSLOInternalServerError) IsServerError() bool

IsServerError returns true when this post s l o internal server error response has a 5xx status code

func (*PostSLOInternalServerError) IsSuccess

func (o *PostSLOInternalServerError) IsSuccess() bool

IsSuccess returns true when this post s l o internal server error response has a 2xx status code

func (*PostSLOInternalServerError) String

func (o *PostSLOInternalServerError) String() string

type PostSLOParams

type PostSLOParams struct {

	// SAMLRequest.
	SAMLRequest *string

	// SAMLResponse.
	SAMLResponse *string

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

PostSLOParams contains all the parameters to send to the API endpoint

for the post s l o operation.

Typically these are written to a http.Request.

func NewPostSLOParams

func NewPostSLOParams() *PostSLOParams

NewPostSLOParams creates a new PostSLOParams 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 NewPostSLOParamsWithContext

func NewPostSLOParamsWithContext(ctx context.Context) *PostSLOParams

NewPostSLOParamsWithContext creates a new PostSLOParams object with the ability to set a context for a request.

func NewPostSLOParamsWithHTTPClient

func NewPostSLOParamsWithHTTPClient(client *http.Client) *PostSLOParams

NewPostSLOParamsWithHTTPClient creates a new PostSLOParams object with the ability to set a custom HTTPClient for a request.

func NewPostSLOParamsWithTimeout

func NewPostSLOParamsWithTimeout(timeout time.Duration) *PostSLOParams

NewPostSLOParamsWithTimeout creates a new PostSLOParams object with the ability to set a timeout on a request.

func (*PostSLOParams) SetContext

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

SetContext adds the context to the post s l o params

func (*PostSLOParams) SetDefaults

func (o *PostSLOParams) SetDefaults()

SetDefaults hydrates default values in the post s l o params (not the query body).

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

func (*PostSLOParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post s l o params

func (*PostSLOParams) SetSAMLRequest

func (o *PostSLOParams) SetSAMLRequest(sAMLRequest *string)

SetSAMLRequest adds the sAMLRequest to the post s l o params

func (*PostSLOParams) SetSAMLResponse

func (o *PostSLOParams) SetSAMLResponse(sAMLResponse *string)

SetSAMLResponse adds the sAMLResponse to the post s l o params

func (*PostSLOParams) SetTimeout

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

SetTimeout adds the timeout to the post s l o params

func (*PostSLOParams) WithContext

func (o *PostSLOParams) WithContext(ctx context.Context) *PostSLOParams

WithContext adds the context to the post s l o params

func (*PostSLOParams) WithDefaults

func (o *PostSLOParams) WithDefaults() *PostSLOParams

WithDefaults hydrates default values in the post s l o params (not the query body).

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

func (*PostSLOParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post s l o params

func (*PostSLOParams) WithSAMLRequest

func (o *PostSLOParams) WithSAMLRequest(sAMLRequest *string) *PostSLOParams

WithSAMLRequest adds the sAMLRequest to the post s l o params

func (*PostSLOParams) WithSAMLResponse

func (o *PostSLOParams) WithSAMLResponse(sAMLResponse *string) *PostSLOParams

WithSAMLResponse adds the sAMLResponse to the post s l o params

func (*PostSLOParams) WithTimeout

func (o *PostSLOParams) WithTimeout(timeout time.Duration) *PostSLOParams

WithTimeout adds the timeout to the post s l o params

func (*PostSLOParams) WriteToRequest

func (o *PostSLOParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostSLOReader

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

PostSLOReader is a Reader for the PostSLO structure.

func (*PostSLOReader) ReadResponse

func (o *PostSLOReader) 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