Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListScopesSystemForbidden
- func (o *ListScopesSystemForbidden) Code() int
- func (o *ListScopesSystemForbidden) Error() string
- func (o *ListScopesSystemForbidden) GetPayload() *models.Error
- func (o *ListScopesSystemForbidden) IsClientError() bool
- func (o *ListScopesSystemForbidden) IsCode(code int) bool
- func (o *ListScopesSystemForbidden) IsRedirect() bool
- func (o *ListScopesSystemForbidden) IsServerError() bool
- func (o *ListScopesSystemForbidden) IsSuccess() bool
- func (o *ListScopesSystemForbidden) String() string
- type ListScopesSystemNotFound
- func (o *ListScopesSystemNotFound) Code() int
- func (o *ListScopesSystemNotFound) Error() string
- func (o *ListScopesSystemNotFound) GetPayload() *models.Error
- func (o *ListScopesSystemNotFound) IsClientError() bool
- func (o *ListScopesSystemNotFound) IsCode(code int) bool
- func (o *ListScopesSystemNotFound) IsRedirect() bool
- func (o *ListScopesSystemNotFound) IsServerError() bool
- func (o *ListScopesSystemNotFound) IsSuccess() bool
- func (o *ListScopesSystemNotFound) String() string
- type ListScopesSystemOK
- func (o *ListScopesSystemOK) Code() int
- func (o *ListScopesSystemOK) Error() string
- func (o *ListScopesSystemOK) GetPayload() *models.ScopesWithServices
- func (o *ListScopesSystemOK) IsClientError() bool
- func (o *ListScopesSystemOK) IsCode(code int) bool
- func (o *ListScopesSystemOK) IsRedirect() bool
- func (o *ListScopesSystemOK) IsServerError() bool
- func (o *ListScopesSystemOK) IsSuccess() bool
- func (o *ListScopesSystemOK) String() string
- type ListScopesSystemParams
- func NewListScopesSystemParams() *ListScopesSystemParams
- func NewListScopesSystemParamsWithContext(ctx context.Context) *ListScopesSystemParams
- func NewListScopesSystemParamsWithHTTPClient(client *http.Client) *ListScopesSystemParams
- func NewListScopesSystemParamsWithTimeout(timeout time.Duration) *ListScopesSystemParams
- func (o *ListScopesSystemParams) SetContext(ctx context.Context)
- func (o *ListScopesSystemParams) SetDefaults()
- func (o *ListScopesSystemParams) SetHTTPClient(client *http.Client)
- func (o *ListScopesSystemParams) SetTimeout(timeout time.Duration)
- func (o *ListScopesSystemParams) SetWid(wid string)
- func (o *ListScopesSystemParams) WithContext(ctx context.Context) *ListScopesSystemParams
- func (o *ListScopesSystemParams) WithDefaults() *ListScopesSystemParams
- func (o *ListScopesSystemParams) WithHTTPClient(client *http.Client) *ListScopesSystemParams
- func (o *ListScopesSystemParams) WithTimeout(timeout time.Duration) *ListScopesSystemParams
- func (o *ListScopesSystemParams) WithWid(wid string) *ListScopesSystemParams
- func (o *ListScopesSystemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListScopesSystemReader
- type ListScopesSystemTooManyRequests
- func (o *ListScopesSystemTooManyRequests) Code() int
- func (o *ListScopesSystemTooManyRequests) Error() string
- func (o *ListScopesSystemTooManyRequests) GetPayload() *models.Error
- func (o *ListScopesSystemTooManyRequests) IsClientError() bool
- func (o *ListScopesSystemTooManyRequests) IsCode(code int) bool
- func (o *ListScopesSystemTooManyRequests) IsRedirect() bool
- func (o *ListScopesSystemTooManyRequests) IsServerError() bool
- func (o *ListScopesSystemTooManyRequests) IsSuccess() bool
- func (o *ListScopesSystemTooManyRequests) String() string
- type ListScopesSystemUnauthorized
- func (o *ListScopesSystemUnauthorized) Code() int
- func (o *ListScopesSystemUnauthorized) Error() string
- func (o *ListScopesSystemUnauthorized) GetPayload() *models.Error
- func (o *ListScopesSystemUnauthorized) IsClientError() bool
- func (o *ListScopesSystemUnauthorized) IsCode(code int) bool
- func (o *ListScopesSystemUnauthorized) IsRedirect() bool
- func (o *ListScopesSystemUnauthorized) IsServerError() bool
- func (o *ListScopesSystemUnauthorized) IsSuccess() bool
- func (o *ListScopesSystemUnauthorized) 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 scopes API
func (*Client) ListScopesSystem ¶
func (a *Client) ListScopesSystem(params *ListScopesSystemParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListScopesSystemOK, error)
ListScopesSystem lists scopes for authorization server
This API lists scopes for a given authorization server
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 { ListScopesSystem(params *ListScopesSystemParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListScopesSystemOK, 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 scopes API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new scopes 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 ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new scopes 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 ListScopesSystemForbidden ¶
ListScopesSystemForbidden describes a response with status code 403, with default header values.
Forbidden
func NewListScopesSystemForbidden ¶
func NewListScopesSystemForbidden() *ListScopesSystemForbidden
NewListScopesSystemForbidden creates a ListScopesSystemForbidden with default headers values
func (*ListScopesSystemForbidden) Code ¶
func (o *ListScopesSystemForbidden) Code() int
Code gets the status code for the list scopes system forbidden response
func (*ListScopesSystemForbidden) Error ¶
func (o *ListScopesSystemForbidden) Error() string
func (*ListScopesSystemForbidden) GetPayload ¶
func (o *ListScopesSystemForbidden) GetPayload() *models.Error
func (*ListScopesSystemForbidden) IsClientError ¶
func (o *ListScopesSystemForbidden) IsClientError() bool
IsClientError returns true when this list scopes system forbidden response has a 4xx status code
func (*ListScopesSystemForbidden) IsCode ¶
func (o *ListScopesSystemForbidden) IsCode(code int) bool
IsCode returns true when this list scopes system forbidden response a status code equal to that given
func (*ListScopesSystemForbidden) IsRedirect ¶
func (o *ListScopesSystemForbidden) IsRedirect() bool
IsRedirect returns true when this list scopes system forbidden response has a 3xx status code
func (*ListScopesSystemForbidden) IsServerError ¶
func (o *ListScopesSystemForbidden) IsServerError() bool
IsServerError returns true when this list scopes system forbidden response has a 5xx status code
func (*ListScopesSystemForbidden) IsSuccess ¶
func (o *ListScopesSystemForbidden) IsSuccess() bool
IsSuccess returns true when this list scopes system forbidden response has a 2xx status code
func (*ListScopesSystemForbidden) String ¶
func (o *ListScopesSystemForbidden) String() string
type ListScopesSystemNotFound ¶
ListScopesSystemNotFound describes a response with status code 404, with default header values.
Not found
func NewListScopesSystemNotFound ¶
func NewListScopesSystemNotFound() *ListScopesSystemNotFound
NewListScopesSystemNotFound creates a ListScopesSystemNotFound with default headers values
func (*ListScopesSystemNotFound) Code ¶
func (o *ListScopesSystemNotFound) Code() int
Code gets the status code for the list scopes system not found response
func (*ListScopesSystemNotFound) Error ¶
func (o *ListScopesSystemNotFound) Error() string
func (*ListScopesSystemNotFound) GetPayload ¶
func (o *ListScopesSystemNotFound) GetPayload() *models.Error
func (*ListScopesSystemNotFound) IsClientError ¶
func (o *ListScopesSystemNotFound) IsClientError() bool
IsClientError returns true when this list scopes system not found response has a 4xx status code
func (*ListScopesSystemNotFound) IsCode ¶
func (o *ListScopesSystemNotFound) IsCode(code int) bool
IsCode returns true when this list scopes system not found response a status code equal to that given
func (*ListScopesSystemNotFound) IsRedirect ¶
func (o *ListScopesSystemNotFound) IsRedirect() bool
IsRedirect returns true when this list scopes system not found response has a 3xx status code
func (*ListScopesSystemNotFound) IsServerError ¶
func (o *ListScopesSystemNotFound) IsServerError() bool
IsServerError returns true when this list scopes system not found response has a 5xx status code
func (*ListScopesSystemNotFound) IsSuccess ¶
func (o *ListScopesSystemNotFound) IsSuccess() bool
IsSuccess returns true when this list scopes system not found response has a 2xx status code
func (*ListScopesSystemNotFound) String ¶
func (o *ListScopesSystemNotFound) String() string
type ListScopesSystemOK ¶
type ListScopesSystemOK struct {
Payload *models.ScopesWithServices
}
ListScopesSystemOK describes a response with status code 200, with default header values.
ScopesWithServices
func NewListScopesSystemOK ¶
func NewListScopesSystemOK() *ListScopesSystemOK
NewListScopesSystemOK creates a ListScopesSystemOK with default headers values
func (*ListScopesSystemOK) Code ¶
func (o *ListScopesSystemOK) Code() int
Code gets the status code for the list scopes system o k response
func (*ListScopesSystemOK) Error ¶
func (o *ListScopesSystemOK) Error() string
func (*ListScopesSystemOK) GetPayload ¶
func (o *ListScopesSystemOK) GetPayload() *models.ScopesWithServices
func (*ListScopesSystemOK) IsClientError ¶
func (o *ListScopesSystemOK) IsClientError() bool
IsClientError returns true when this list scopes system o k response has a 4xx status code
func (*ListScopesSystemOK) IsCode ¶
func (o *ListScopesSystemOK) IsCode(code int) bool
IsCode returns true when this list scopes system o k response a status code equal to that given
func (*ListScopesSystemOK) IsRedirect ¶
func (o *ListScopesSystemOK) IsRedirect() bool
IsRedirect returns true when this list scopes system o k response has a 3xx status code
func (*ListScopesSystemOK) IsServerError ¶
func (o *ListScopesSystemOK) IsServerError() bool
IsServerError returns true when this list scopes system o k response has a 5xx status code
func (*ListScopesSystemOK) IsSuccess ¶
func (o *ListScopesSystemOK) IsSuccess() bool
IsSuccess returns true when this list scopes system o k response has a 2xx status code
func (*ListScopesSystemOK) String ¶
func (o *ListScopesSystemOK) String() string
type ListScopesSystemParams ¶
type ListScopesSystemParams struct { /* Wid. Workspace id Default: "default" */ Wid string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListScopesSystemParams contains all the parameters to send to the API endpoint
for the list scopes system operation. Typically these are written to a http.Request.
func NewListScopesSystemParams ¶
func NewListScopesSystemParams() *ListScopesSystemParams
NewListScopesSystemParams creates a new ListScopesSystemParams 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 NewListScopesSystemParamsWithContext ¶
func NewListScopesSystemParamsWithContext(ctx context.Context) *ListScopesSystemParams
NewListScopesSystemParamsWithContext creates a new ListScopesSystemParams object with the ability to set a context for a request.
func NewListScopesSystemParamsWithHTTPClient ¶
func NewListScopesSystemParamsWithHTTPClient(client *http.Client) *ListScopesSystemParams
NewListScopesSystemParamsWithHTTPClient creates a new ListScopesSystemParams object with the ability to set a custom HTTPClient for a request.
func NewListScopesSystemParamsWithTimeout ¶
func NewListScopesSystemParamsWithTimeout(timeout time.Duration) *ListScopesSystemParams
NewListScopesSystemParamsWithTimeout creates a new ListScopesSystemParams object with the ability to set a timeout on a request.
func (*ListScopesSystemParams) SetContext ¶
func (o *ListScopesSystemParams) SetContext(ctx context.Context)
SetContext adds the context to the list scopes system params
func (*ListScopesSystemParams) SetDefaults ¶
func (o *ListScopesSystemParams) SetDefaults()
SetDefaults hydrates default values in the list scopes system params (not the query body).
All values with no default are reset to their zero value.
func (*ListScopesSystemParams) SetHTTPClient ¶
func (o *ListScopesSystemParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list scopes system params
func (*ListScopesSystemParams) SetTimeout ¶
func (o *ListScopesSystemParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list scopes system params
func (*ListScopesSystemParams) SetWid ¶
func (o *ListScopesSystemParams) SetWid(wid string)
SetWid adds the wid to the list scopes system params
func (*ListScopesSystemParams) WithContext ¶
func (o *ListScopesSystemParams) WithContext(ctx context.Context) *ListScopesSystemParams
WithContext adds the context to the list scopes system params
func (*ListScopesSystemParams) WithDefaults ¶
func (o *ListScopesSystemParams) WithDefaults() *ListScopesSystemParams
WithDefaults hydrates default values in the list scopes system params (not the query body).
All values with no default are reset to their zero value.
func (*ListScopesSystemParams) WithHTTPClient ¶
func (o *ListScopesSystemParams) WithHTTPClient(client *http.Client) *ListScopesSystemParams
WithHTTPClient adds the HTTPClient to the list scopes system params
func (*ListScopesSystemParams) WithTimeout ¶
func (o *ListScopesSystemParams) WithTimeout(timeout time.Duration) *ListScopesSystemParams
WithTimeout adds the timeout to the list scopes system params
func (*ListScopesSystemParams) WithWid ¶
func (o *ListScopesSystemParams) WithWid(wid string) *ListScopesSystemParams
WithWid adds the wid to the list scopes system params
func (*ListScopesSystemParams) WriteToRequest ¶
func (o *ListScopesSystemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListScopesSystemReader ¶
type ListScopesSystemReader struct {
// contains filtered or unexported fields
}
ListScopesSystemReader is a Reader for the ListScopesSystem structure.
func (*ListScopesSystemReader) ReadResponse ¶
func (o *ListScopesSystemReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListScopesSystemTooManyRequests ¶
ListScopesSystemTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewListScopesSystemTooManyRequests ¶
func NewListScopesSystemTooManyRequests() *ListScopesSystemTooManyRequests
NewListScopesSystemTooManyRequests creates a ListScopesSystemTooManyRequests with default headers values
func (*ListScopesSystemTooManyRequests) Code ¶
func (o *ListScopesSystemTooManyRequests) Code() int
Code gets the status code for the list scopes system too many requests response
func (*ListScopesSystemTooManyRequests) Error ¶
func (o *ListScopesSystemTooManyRequests) Error() string
func (*ListScopesSystemTooManyRequests) GetPayload ¶
func (o *ListScopesSystemTooManyRequests) GetPayload() *models.Error
func (*ListScopesSystemTooManyRequests) IsClientError ¶
func (o *ListScopesSystemTooManyRequests) IsClientError() bool
IsClientError returns true when this list scopes system too many requests response has a 4xx status code
func (*ListScopesSystemTooManyRequests) IsCode ¶
func (o *ListScopesSystemTooManyRequests) IsCode(code int) bool
IsCode returns true when this list scopes system too many requests response a status code equal to that given
func (*ListScopesSystemTooManyRequests) IsRedirect ¶
func (o *ListScopesSystemTooManyRequests) IsRedirect() bool
IsRedirect returns true when this list scopes system too many requests response has a 3xx status code
func (*ListScopesSystemTooManyRequests) IsServerError ¶
func (o *ListScopesSystemTooManyRequests) IsServerError() bool
IsServerError returns true when this list scopes system too many requests response has a 5xx status code
func (*ListScopesSystemTooManyRequests) IsSuccess ¶
func (o *ListScopesSystemTooManyRequests) IsSuccess() bool
IsSuccess returns true when this list scopes system too many requests response has a 2xx status code
func (*ListScopesSystemTooManyRequests) String ¶
func (o *ListScopesSystemTooManyRequests) String() string
type ListScopesSystemUnauthorized ¶
type ListScopesSystemUnauthorized struct {
}ListScopesSystemUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListScopesSystemUnauthorized ¶
func NewListScopesSystemUnauthorized() *ListScopesSystemUnauthorized
NewListScopesSystemUnauthorized creates a ListScopesSystemUnauthorized with default headers values
func (*ListScopesSystemUnauthorized) Code ¶
func (o *ListScopesSystemUnauthorized) Code() int
Code gets the status code for the list scopes system unauthorized response
func (*ListScopesSystemUnauthorized) Error ¶
func (o *ListScopesSystemUnauthorized) Error() string
func (*ListScopesSystemUnauthorized) GetPayload ¶
func (o *ListScopesSystemUnauthorized) GetPayload() *models.Error
func (*ListScopesSystemUnauthorized) IsClientError ¶
func (o *ListScopesSystemUnauthorized) IsClientError() bool
IsClientError returns true when this list scopes system unauthorized response has a 4xx status code
func (*ListScopesSystemUnauthorized) IsCode ¶
func (o *ListScopesSystemUnauthorized) IsCode(code int) bool
IsCode returns true when this list scopes system unauthorized response a status code equal to that given
func (*ListScopesSystemUnauthorized) IsRedirect ¶
func (o *ListScopesSystemUnauthorized) IsRedirect() bool
IsRedirect returns true when this list scopes system unauthorized response has a 3xx status code
func (*ListScopesSystemUnauthorized) IsServerError ¶
func (o *ListScopesSystemUnauthorized) IsServerError() bool
IsServerError returns true when this list scopes system unauthorized response has a 5xx status code
func (*ListScopesSystemUnauthorized) IsSuccess ¶
func (o *ListScopesSystemUnauthorized) IsSuccess() bool
IsSuccess returns true when this list scopes system unauthorized response has a 2xx status code
func (*ListScopesSystemUnauthorized) String ¶
func (o *ListScopesSystemUnauthorized) String() string