oidc

package
v5.0.0-...-5bc921f Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT 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 oidc API

func (*Client) PingOIDC

func (a *Client) PingOIDC(params *PingOIDCParams, authInfo runtime.ClientAuthInfoWriter) (*PingOIDCOK, error)

PingOIDC tests the OIDC endpoint

Test the OIDC endpoint, the setting of the endpoint is provided in the request. This API can only be called by system admin.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	PingOIDC(params *PingOIDCParams, authInfo runtime.ClientAuthInfoWriter) (*PingOIDCOK, 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 oidc API client.

type PingOIDCBadRequest

type PingOIDCBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingOIDCBadRequest handles this case with default header values.

Bad request

func NewPingOIDCBadRequest

func NewPingOIDCBadRequest() *PingOIDCBadRequest

NewPingOIDCBadRequest creates a PingOIDCBadRequest with default headers values

func (*PingOIDCBadRequest) Error

func (o *PingOIDCBadRequest) Error() string

func (*PingOIDCBadRequest) GetPayload

func (o *PingOIDCBadRequest) GetPayload() *model.Errors

type PingOIDCBody

type PingOIDCBody struct {

	// The URL of OIDC endpoint to be tested.
	URL string `json:"url,omitempty"`

	// Whether the certificate should be verified
	VerifyCert bool `json:"verify_cert,omitempty"`
}

PingOIDCBody ping OIDC body swagger:model PingOIDCBody

func (*PingOIDCBody) MarshalBinary

func (o *PingOIDCBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PingOIDCBody) UnmarshalBinary

func (o *PingOIDCBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PingOIDCBody) Validate

func (o *PingOIDCBody) Validate(formats strfmt.Registry) error

Validate validates this ping OIDC body

type PingOIDCForbidden

type PingOIDCForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingOIDCForbidden handles this case with default header values.

Forbidden

func NewPingOIDCForbidden

func NewPingOIDCForbidden() *PingOIDCForbidden

NewPingOIDCForbidden creates a PingOIDCForbidden with default headers values

func (*PingOIDCForbidden) Error

func (o *PingOIDCForbidden) Error() string

func (*PingOIDCForbidden) GetPayload

func (o *PingOIDCForbidden) GetPayload() *model.Errors

type PingOIDCOK

type PingOIDCOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

PingOIDCOK handles this case with default header values.

Success

func NewPingOIDCOK

func NewPingOIDCOK() *PingOIDCOK

NewPingOIDCOK creates a PingOIDCOK with default headers values

func (*PingOIDCOK) Error

func (o *PingOIDCOK) Error() string

type PingOIDCParams

type PingOIDCParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Endpoint
	  Request body for OIDC endpoint to be tested.

	*/
	Endpoint PingOIDCBody

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

PingOIDCParams contains all the parameters to send to the API endpoint for the ping OIDC operation typically these are written to a http.Request

func NewPingOIDCParams

func NewPingOIDCParams() *PingOIDCParams

NewPingOIDCParams creates a new PingOIDCParams object with the default values initialized.

func NewPingOIDCParamsWithContext

func NewPingOIDCParamsWithContext(ctx context.Context) *PingOIDCParams

NewPingOIDCParamsWithContext creates a new PingOIDCParams object with the default values initialized, and the ability to set a context for a request

func NewPingOIDCParamsWithHTTPClient

func NewPingOIDCParamsWithHTTPClient(client *http.Client) *PingOIDCParams

NewPingOIDCParamsWithHTTPClient creates a new PingOIDCParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPingOIDCParamsWithTimeout

func NewPingOIDCParamsWithTimeout(timeout time.Duration) *PingOIDCParams

NewPingOIDCParamsWithTimeout creates a new PingOIDCParams object with the default values initialized, and the ability to set a timeout on a request

func (*PingOIDCParams) SetContext

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

SetContext adds the context to the ping OIDC params

func (*PingOIDCParams) SetEndpoint

func (o *PingOIDCParams) SetEndpoint(endpoint PingOIDCBody)

SetEndpoint adds the endpoint to the ping OIDC params

func (*PingOIDCParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the ping OIDC params

func (*PingOIDCParams) SetTimeout

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

SetTimeout adds the timeout to the ping OIDC params

func (*PingOIDCParams) SetXRequestID

func (o *PingOIDCParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the ping OIDC params

func (*PingOIDCParams) WithContext

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

WithContext adds the context to the ping OIDC params

func (*PingOIDCParams) WithEndpoint

func (o *PingOIDCParams) WithEndpoint(endpoint PingOIDCBody) *PingOIDCParams

WithEndpoint adds the endpoint to the ping OIDC params

func (*PingOIDCParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the ping OIDC params

func (*PingOIDCParams) WithTimeout

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

WithTimeout adds the timeout to the ping OIDC params

func (*PingOIDCParams) WithXRequestID

func (o *PingOIDCParams) WithXRequestID(xRequestID *string) *PingOIDCParams

WithXRequestID adds the xRequestID to the ping OIDC params

func (*PingOIDCParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PingOIDCReader

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

PingOIDCReader is a Reader for the PingOIDC structure.

func (*PingOIDCReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PingOIDCUnauthorized

type PingOIDCUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingOIDCUnauthorized handles this case with default header values.

Unauthorized

func NewPingOIDCUnauthorized

func NewPingOIDCUnauthorized() *PingOIDCUnauthorized

NewPingOIDCUnauthorized creates a PingOIDCUnauthorized with default headers values

func (*PingOIDCUnauthorized) Error

func (o *PingOIDCUnauthorized) Error() string

func (*PingOIDCUnauthorized) GetPayload

func (o *PingOIDCUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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