Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListNetworkJWTsBadRequest
- func (o *ListNetworkJWTsBadRequest) Code() int
- func (o *ListNetworkJWTsBadRequest) Error() string
- func (o *ListNetworkJWTsBadRequest) GetPayload() *rest_model.APIErrorEnvelope
- func (o *ListNetworkJWTsBadRequest) IsClientError() bool
- func (o *ListNetworkJWTsBadRequest) IsCode(code int) bool
- func (o *ListNetworkJWTsBadRequest) IsRedirect() bool
- func (o *ListNetworkJWTsBadRequest) IsServerError() bool
- func (o *ListNetworkJWTsBadRequest) IsSuccess() bool
- func (o *ListNetworkJWTsBadRequest) String() string
- type ListNetworkJWTsOK
- func (o *ListNetworkJWTsOK) Code() int
- func (o *ListNetworkJWTsOK) Error() string
- func (o *ListNetworkJWTsOK) GetPayload() *rest_model.ListNetworkJWTsEnvelope
- func (o *ListNetworkJWTsOK) IsClientError() bool
- func (o *ListNetworkJWTsOK) IsCode(code int) bool
- func (o *ListNetworkJWTsOK) IsRedirect() bool
- func (o *ListNetworkJWTsOK) IsServerError() bool
- func (o *ListNetworkJWTsOK) IsSuccess() bool
- func (o *ListNetworkJWTsOK) String() string
- type ListNetworkJWTsParams
- func NewListNetworkJWTsParams() *ListNetworkJWTsParams
- func NewListNetworkJWTsParamsWithContext(ctx context.Context) *ListNetworkJWTsParams
- func NewListNetworkJWTsParamsWithHTTPClient(client *http.Client) *ListNetworkJWTsParams
- func NewListNetworkJWTsParamsWithTimeout(timeout time.Duration) *ListNetworkJWTsParams
- func (o *ListNetworkJWTsParams) SetContext(ctx context.Context)
- func (o *ListNetworkJWTsParams) SetDefaults()
- func (o *ListNetworkJWTsParams) SetHTTPClient(client *http.Client)
- func (o *ListNetworkJWTsParams) SetTimeout(timeout time.Duration)
- func (o *ListNetworkJWTsParams) WithContext(ctx context.Context) *ListNetworkJWTsParams
- func (o *ListNetworkJWTsParams) WithDefaults() *ListNetworkJWTsParams
- func (o *ListNetworkJWTsParams) WithHTTPClient(client *http.Client) *ListNetworkJWTsParams
- func (o *ListNetworkJWTsParams) WithTimeout(timeout time.Duration) *ListNetworkJWTsParams
- func (o *ListNetworkJWTsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListNetworkJWTsReader
- type ListNetworkJWTsTooManyRequests
- func (o *ListNetworkJWTsTooManyRequests) Code() int
- func (o *ListNetworkJWTsTooManyRequests) Error() string
- func (o *ListNetworkJWTsTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
- func (o *ListNetworkJWTsTooManyRequests) IsClientError() bool
- func (o *ListNetworkJWTsTooManyRequests) IsCode(code int) bool
- func (o *ListNetworkJWTsTooManyRequests) IsRedirect() bool
- func (o *ListNetworkJWTsTooManyRequests) IsServerError() bool
- func (o *ListNetworkJWTsTooManyRequests) IsSuccess() bool
- func (o *ListNetworkJWTsTooManyRequests) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for enrollment API
func (*Client) ListNetworkJWTs ¶
func (a *Client) ListNetworkJWTs(params *ListNetworkJWTsParams, opts ...ClientOption) (*ListNetworkJWTsOK, error)
ListNetworkJWTs returns a list of j w ts suitable for bootstrapping network trust
Returns a list of JWTs for trusting a network
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
ListNetworkJWTs(params *ListNetworkJWTsParams, opts ...ClientOption) (*ListNetworkJWTsOK, 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 enrollment API client.
func NewClientWithBasicAuth ¶ added in v0.26.53
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new enrollment API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.26.53
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new enrollment API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type ListNetworkJWTsBadRequest ¶
type ListNetworkJWTsBadRequest struct {
/* Denotes different type of security token related information
*/
WWWAuthenticate []string
Payload *rest_model.APIErrorEnvelope
}
ListNetworkJWTsBadRequest describes a response with status code 400, with default header values.
The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
func NewListNetworkJWTsBadRequest ¶
func NewListNetworkJWTsBadRequest() *ListNetworkJWTsBadRequest
NewListNetworkJWTsBadRequest creates a ListNetworkJWTsBadRequest with default headers values
func (*ListNetworkJWTsBadRequest) Code ¶ added in v0.26.53
func (o *ListNetworkJWTsBadRequest) Code() int
Code gets the status code for the list network j w ts bad request response
func (*ListNetworkJWTsBadRequest) Error ¶
func (o *ListNetworkJWTsBadRequest) Error() string
func (*ListNetworkJWTsBadRequest) GetPayload ¶
func (o *ListNetworkJWTsBadRequest) GetPayload() *rest_model.APIErrorEnvelope
func (*ListNetworkJWTsBadRequest) IsClientError ¶ added in v0.26.53
func (o *ListNetworkJWTsBadRequest) IsClientError() bool
IsClientError returns true when this list network j w ts bad request response has a 4xx status code
func (*ListNetworkJWTsBadRequest) IsCode ¶ added in v0.26.53
func (o *ListNetworkJWTsBadRequest) IsCode(code int) bool
IsCode returns true when this list network j w ts bad request response a status code equal to that given
func (*ListNetworkJWTsBadRequest) IsRedirect ¶ added in v0.26.53
func (o *ListNetworkJWTsBadRequest) IsRedirect() bool
IsRedirect returns true when this list network j w ts bad request response has a 3xx status code
func (*ListNetworkJWTsBadRequest) IsServerError ¶ added in v0.26.53
func (o *ListNetworkJWTsBadRequest) IsServerError() bool
IsServerError returns true when this list network j w ts bad request response has a 5xx status code
func (*ListNetworkJWTsBadRequest) IsSuccess ¶ added in v0.26.53
func (o *ListNetworkJWTsBadRequest) IsSuccess() bool
IsSuccess returns true when this list network j w ts bad request response has a 2xx status code
func (*ListNetworkJWTsBadRequest) String ¶ added in v0.26.53
func (o *ListNetworkJWTsBadRequest) String() string
type ListNetworkJWTsOK ¶
type ListNetworkJWTsOK struct {
/* Denotes different type of security token related information
*/
WWWAuthenticate []string
Payload *rest_model.ListNetworkJWTsEnvelope
}
ListNetworkJWTsOK describes a response with status code 200, with default header values.
A list of network JWTs
func NewListNetworkJWTsOK ¶
func NewListNetworkJWTsOK() *ListNetworkJWTsOK
NewListNetworkJWTsOK creates a ListNetworkJWTsOK with default headers values
func (*ListNetworkJWTsOK) Code ¶ added in v0.26.53
func (o *ListNetworkJWTsOK) Code() int
Code gets the status code for the list network j w ts o k response
func (*ListNetworkJWTsOK) Error ¶
func (o *ListNetworkJWTsOK) Error() string
func (*ListNetworkJWTsOK) GetPayload ¶
func (o *ListNetworkJWTsOK) GetPayload() *rest_model.ListNetworkJWTsEnvelope
func (*ListNetworkJWTsOK) IsClientError ¶ added in v0.26.53
func (o *ListNetworkJWTsOK) IsClientError() bool
IsClientError returns true when this list network j w ts o k response has a 4xx status code
func (*ListNetworkJWTsOK) IsCode ¶ added in v0.26.53
func (o *ListNetworkJWTsOK) IsCode(code int) bool
IsCode returns true when this list network j w ts o k response a status code equal to that given
func (*ListNetworkJWTsOK) IsRedirect ¶ added in v0.26.53
func (o *ListNetworkJWTsOK) IsRedirect() bool
IsRedirect returns true when this list network j w ts o k response has a 3xx status code
func (*ListNetworkJWTsOK) IsServerError ¶ added in v0.26.53
func (o *ListNetworkJWTsOK) IsServerError() bool
IsServerError returns true when this list network j w ts o k response has a 5xx status code
func (*ListNetworkJWTsOK) IsSuccess ¶ added in v0.26.53
func (o *ListNetworkJWTsOK) IsSuccess() bool
IsSuccess returns true when this list network j w ts o k response has a 2xx status code
func (*ListNetworkJWTsOK) String ¶ added in v0.26.53
func (o *ListNetworkJWTsOK) String() string
type ListNetworkJWTsParams ¶
type ListNetworkJWTsParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListNetworkJWTsParams contains all the parameters to send to the API endpoint
for the list network j w ts operation. Typically these are written to a http.Request.
func NewListNetworkJWTsParams ¶
func NewListNetworkJWTsParams() *ListNetworkJWTsParams
NewListNetworkJWTsParams creates a new ListNetworkJWTsParams 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 NewListNetworkJWTsParamsWithContext ¶
func NewListNetworkJWTsParamsWithContext(ctx context.Context) *ListNetworkJWTsParams
NewListNetworkJWTsParamsWithContext creates a new ListNetworkJWTsParams object with the ability to set a context for a request.
func NewListNetworkJWTsParamsWithHTTPClient ¶
func NewListNetworkJWTsParamsWithHTTPClient(client *http.Client) *ListNetworkJWTsParams
NewListNetworkJWTsParamsWithHTTPClient creates a new ListNetworkJWTsParams object with the ability to set a custom HTTPClient for a request.
func NewListNetworkJWTsParamsWithTimeout ¶
func NewListNetworkJWTsParamsWithTimeout(timeout time.Duration) *ListNetworkJWTsParams
NewListNetworkJWTsParamsWithTimeout creates a new ListNetworkJWTsParams object with the ability to set a timeout on a request.
func (*ListNetworkJWTsParams) SetContext ¶
func (o *ListNetworkJWTsParams) SetContext(ctx context.Context)
SetContext adds the context to the list network j w ts params
func (*ListNetworkJWTsParams) SetDefaults ¶
func (o *ListNetworkJWTsParams) SetDefaults()
SetDefaults hydrates default values in the list network j w ts params (not the query body).
All values with no default are reset to their zero value.
func (*ListNetworkJWTsParams) SetHTTPClient ¶
func (o *ListNetworkJWTsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list network j w ts params
func (*ListNetworkJWTsParams) SetTimeout ¶
func (o *ListNetworkJWTsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list network j w ts params
func (*ListNetworkJWTsParams) WithContext ¶
func (o *ListNetworkJWTsParams) WithContext(ctx context.Context) *ListNetworkJWTsParams
WithContext adds the context to the list network j w ts params
func (*ListNetworkJWTsParams) WithDefaults ¶
func (o *ListNetworkJWTsParams) WithDefaults() *ListNetworkJWTsParams
WithDefaults hydrates default values in the list network j w ts params (not the query body).
All values with no default are reset to their zero value.
func (*ListNetworkJWTsParams) WithHTTPClient ¶
func (o *ListNetworkJWTsParams) WithHTTPClient(client *http.Client) *ListNetworkJWTsParams
WithHTTPClient adds the HTTPClient to the list network j w ts params
func (*ListNetworkJWTsParams) WithTimeout ¶
func (o *ListNetworkJWTsParams) WithTimeout(timeout time.Duration) *ListNetworkJWTsParams
WithTimeout adds the timeout to the list network j w ts params
func (*ListNetworkJWTsParams) WriteToRequest ¶
func (o *ListNetworkJWTsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListNetworkJWTsReader ¶
type ListNetworkJWTsReader struct {
// contains filtered or unexported fields
}
ListNetworkJWTsReader is a Reader for the ListNetworkJWTs structure.
func (*ListNetworkJWTsReader) ReadResponse ¶
func (o *ListNetworkJWTsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type ListNetworkJWTsTooManyRequests ¶
type ListNetworkJWTsTooManyRequests struct {
/* Denotes different type of security token related information
*/
WWWAuthenticate []string
Payload *rest_model.APIErrorEnvelope
}
ListNetworkJWTsTooManyRequests describes a response with status code 429, with default header values.
The resource requested is rate limited and the rate limit has been exceeded
func NewListNetworkJWTsTooManyRequests ¶
func NewListNetworkJWTsTooManyRequests() *ListNetworkJWTsTooManyRequests
NewListNetworkJWTsTooManyRequests creates a ListNetworkJWTsTooManyRequests with default headers values
func (*ListNetworkJWTsTooManyRequests) Code ¶ added in v0.26.53
func (o *ListNetworkJWTsTooManyRequests) Code() int
Code gets the status code for the list network j w ts too many requests response
func (*ListNetworkJWTsTooManyRequests) Error ¶
func (o *ListNetworkJWTsTooManyRequests) Error() string
func (*ListNetworkJWTsTooManyRequests) GetPayload ¶
func (o *ListNetworkJWTsTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
func (*ListNetworkJWTsTooManyRequests) IsClientError ¶ added in v0.26.53
func (o *ListNetworkJWTsTooManyRequests) IsClientError() bool
IsClientError returns true when this list network j w ts too many requests response has a 4xx status code
func (*ListNetworkJWTsTooManyRequests) IsCode ¶ added in v0.26.53
func (o *ListNetworkJWTsTooManyRequests) IsCode(code int) bool
IsCode returns true when this list network j w ts too many requests response a status code equal to that given
func (*ListNetworkJWTsTooManyRequests) IsRedirect ¶ added in v0.26.53
func (o *ListNetworkJWTsTooManyRequests) IsRedirect() bool
IsRedirect returns true when this list network j w ts too many requests response has a 3xx status code
func (*ListNetworkJWTsTooManyRequests) IsServerError ¶ added in v0.26.53
func (o *ListNetworkJWTsTooManyRequests) IsServerError() bool
IsServerError returns true when this list network j w ts too many requests response has a 5xx status code
func (*ListNetworkJWTsTooManyRequests) IsSuccess ¶ added in v0.26.53
func (o *ListNetworkJWTsTooManyRequests) IsSuccess() bool
IsSuccess returns true when this list network j w ts too many requests response has a 2xx status code
func (*ListNetworkJWTsTooManyRequests) String ¶ added in v0.26.53
func (o *ListNetworkJWTsTooManyRequests) String() string