Documentation
¶
Index ¶
- type Client
- func (a *Client) ListFeature(params *ListFeatureParams, authInfo runtime.ClientAuthInfoWriter) (*ListFeatureOK, error)
- func (a *Client) ReadFeature(params *ReadFeatureParams, authInfo runtime.ClientAuthInfoWriter) (*ReadFeatureOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type ListFeatureBadRequest
- type ListFeatureConflict
- type ListFeatureForbidden
- type ListFeatureInternalServerError
- type ListFeatureNotFound
- type ListFeatureOK
- type ListFeatureParams
- func (o *ListFeatureParams) SetContext(ctx context.Context)
- func (o *ListFeatureParams) SetFields(fields *string)
- func (o *ListFeatureParams) SetHTTPClient(client *http.Client)
- func (o *ListFeatureParams) SetLimit(limit *int32)
- func (o *ListFeatureParams) SetOrderby(orderby *string)
- func (o *ListFeatureParams) SetQ(q *string)
- func (o *ListFeatureParams) SetStart(start *int32)
- func (o *ListFeatureParams) SetTimeout(timeout time.Duration)
- func (o *ListFeatureParams) SetUseStableAPI(useStableAPI *bool)
- func (o *ListFeatureParams) WithContext(ctx context.Context) *ListFeatureParams
- func (o *ListFeatureParams) WithFields(fields *string) *ListFeatureParams
- func (o *ListFeatureParams) WithHTTPClient(client *http.Client) *ListFeatureParams
- func (o *ListFeatureParams) WithLimit(limit *int32) *ListFeatureParams
- func (o *ListFeatureParams) WithOrderby(orderby *string) *ListFeatureParams
- func (o *ListFeatureParams) WithQ(q *string) *ListFeatureParams
- func (o *ListFeatureParams) WithStart(start *int32) *ListFeatureParams
- func (o *ListFeatureParams) WithTimeout(timeout time.Duration) *ListFeatureParams
- func (o *ListFeatureParams) WithUseStableAPI(useStableAPI *bool) *ListFeatureParams
- func (o *ListFeatureParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListFeatureReader
- type ListFeatureUnauthorized
- type ReadFeatureBadRequest
- type ReadFeatureConflict
- type ReadFeatureForbidden
- type ReadFeatureInternalServerError
- type ReadFeatureNotFound
- type ReadFeatureOK
- type ReadFeatureParams
- func (o *ReadFeatureParams) SetContext(ctx context.Context)
- func (o *ReadFeatureParams) SetFields(fields *string)
- func (o *ReadFeatureParams) SetHTTPClient(client *http.Client)
- func (o *ReadFeatureParams) SetID(id string)
- func (o *ReadFeatureParams) SetTimeout(timeout time.Duration)
- func (o *ReadFeatureParams) WithContext(ctx context.Context) *ReadFeatureParams
- func (o *ReadFeatureParams) WithFields(fields *string) *ReadFeatureParams
- func (o *ReadFeatureParams) WithHTTPClient(client *http.Client) *ReadFeatureParams
- func (o *ReadFeatureParams) WithID(id string) *ReadFeatureParams
- func (o *ReadFeatureParams) WithTimeout(timeout time.Duration) *ReadFeatureParams
- func (o *ReadFeatureParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadFeatureReader
- type ReadFeatureUnauthorized
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 feature controller API
func (*Client) ListFeature ¶
func (a *Client) ListFeature(params *ListFeatureParams, authInfo runtime.ClientAuthInfoWriter) (*ListFeatureOK, error)
ListFeature lists
func (*Client) ReadFeature ¶
func (a *Client) ReadFeature(params *ReadFeatureParams, authInfo runtime.ClientAuthInfoWriter) (*ReadFeatureOK, error)
ReadFeature reads
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { ListFeature(params *ListFeatureParams, authInfo runtime.ClientAuthInfoWriter) (*ListFeatureOK, error) ReadFeature(params *ReadFeatureParams, authInfo runtime.ClientAuthInfoWriter) (*ReadFeatureOK, 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 feature controller API client.
type ListFeatureBadRequest ¶
ListFeatureBadRequest handles this case with default header values.
Bad Request
func NewListFeatureBadRequest ¶
func NewListFeatureBadRequest() *ListFeatureBadRequest
NewListFeatureBadRequest creates a ListFeatureBadRequest with default headers values
func (*ListFeatureBadRequest) Error ¶
func (o *ListFeatureBadRequest) Error() string
func (*ListFeatureBadRequest) GetPayload ¶
func (o *ListFeatureBadRequest) GetPayload() *models.APIResult
type ListFeatureConflict ¶
ListFeatureConflict handles this case with default header values.
Conflict
func NewListFeatureConflict ¶
func NewListFeatureConflict() *ListFeatureConflict
NewListFeatureConflict creates a ListFeatureConflict with default headers values
func (*ListFeatureConflict) Error ¶
func (o *ListFeatureConflict) Error() string
func (*ListFeatureConflict) GetPayload ¶
func (o *ListFeatureConflict) GetPayload() *models.APIResult
type ListFeatureForbidden ¶
ListFeatureForbidden handles this case with default header values.
Forbidden
func NewListFeatureForbidden ¶
func NewListFeatureForbidden() *ListFeatureForbidden
NewListFeatureForbidden creates a ListFeatureForbidden with default headers values
func (*ListFeatureForbidden) Error ¶
func (o *ListFeatureForbidden) Error() string
func (*ListFeatureForbidden) GetPayload ¶
func (o *ListFeatureForbidden) GetPayload() *models.APIResult
type ListFeatureInternalServerError ¶
ListFeatureInternalServerError handles this case with default header values.
Internal Server Error
func NewListFeatureInternalServerError ¶
func NewListFeatureInternalServerError() *ListFeatureInternalServerError
NewListFeatureInternalServerError creates a ListFeatureInternalServerError with default headers values
func (*ListFeatureInternalServerError) Error ¶
func (o *ListFeatureInternalServerError) Error() string
func (*ListFeatureInternalServerError) GetPayload ¶
func (o *ListFeatureInternalServerError) GetPayload() *models.APIResult
type ListFeatureNotFound ¶
ListFeatureNotFound handles this case with default header values.
Not Found
func NewListFeatureNotFound ¶
func NewListFeatureNotFound() *ListFeatureNotFound
NewListFeatureNotFound creates a ListFeatureNotFound with default headers values
func (*ListFeatureNotFound) Error ¶
func (o *ListFeatureNotFound) Error() string
func (*ListFeatureNotFound) GetPayload ¶
func (o *ListFeatureNotFound) GetPayload() *models.APIResult
type ListFeatureOK ¶
type ListFeatureOK struct {
Payload *models.APIResultListFeature
}
ListFeatureOK handles this case with default header values.
OK
func NewListFeatureOK ¶
func NewListFeatureOK() *ListFeatureOK
NewListFeatureOK creates a ListFeatureOK with default headers values
func (*ListFeatureOK) Error ¶
func (o *ListFeatureOK) Error() string
func (*ListFeatureOK) GetPayload ¶
func (o *ListFeatureOK) GetPayload() *models.APIResultListFeature
type ListFeatureParams ¶
type ListFeatureParams struct { /*Fields Output fields */ Fields *string /*Limit A maximum number of returned objects in listing, if '-1' or '0' no limit is applied */ Limit *int32 /*Orderby Fields to order by */ Orderby *string /*Q A search query */ Q *string /*Start A start offset in object listing */ Start *int32 /*UseStableAPI use_stable_api */ UseStableAPI *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListFeatureParams contains all the parameters to send to the API endpoint for the list feature operation typically these are written to a http.Request
func NewListFeatureParams ¶
func NewListFeatureParams() *ListFeatureParams
NewListFeatureParams creates a new ListFeatureParams object with the default values initialized.
func NewListFeatureParamsWithContext ¶
func NewListFeatureParamsWithContext(ctx context.Context) *ListFeatureParams
NewListFeatureParamsWithContext creates a new ListFeatureParams object with the default values initialized, and the ability to set a context for a request
func NewListFeatureParamsWithHTTPClient ¶
func NewListFeatureParamsWithHTTPClient(client *http.Client) *ListFeatureParams
NewListFeatureParamsWithHTTPClient creates a new ListFeatureParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListFeatureParamsWithTimeout ¶
func NewListFeatureParamsWithTimeout(timeout time.Duration) *ListFeatureParams
NewListFeatureParamsWithTimeout creates a new ListFeatureParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListFeatureParams) SetContext ¶
func (o *ListFeatureParams) SetContext(ctx context.Context)
SetContext adds the context to the list feature params
func (*ListFeatureParams) SetFields ¶
func (o *ListFeatureParams) SetFields(fields *string)
SetFields adds the fields to the list feature params
func (*ListFeatureParams) SetHTTPClient ¶
func (o *ListFeatureParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list feature params
func (*ListFeatureParams) SetLimit ¶
func (o *ListFeatureParams) SetLimit(limit *int32)
SetLimit adds the limit to the list feature params
func (*ListFeatureParams) SetOrderby ¶
func (o *ListFeatureParams) SetOrderby(orderby *string)
SetOrderby adds the orderby to the list feature params
func (*ListFeatureParams) SetQ ¶
func (o *ListFeatureParams) SetQ(q *string)
SetQ adds the q to the list feature params
func (*ListFeatureParams) SetStart ¶
func (o *ListFeatureParams) SetStart(start *int32)
SetStart adds the start to the list feature params
func (*ListFeatureParams) SetTimeout ¶
func (o *ListFeatureParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list feature params
func (*ListFeatureParams) SetUseStableAPI ¶
func (o *ListFeatureParams) SetUseStableAPI(useStableAPI *bool)
SetUseStableAPI adds the useStableApi to the list feature params
func (*ListFeatureParams) WithContext ¶
func (o *ListFeatureParams) WithContext(ctx context.Context) *ListFeatureParams
WithContext adds the context to the list feature params
func (*ListFeatureParams) WithFields ¶
func (o *ListFeatureParams) WithFields(fields *string) *ListFeatureParams
WithFields adds the fields to the list feature params
func (*ListFeatureParams) WithHTTPClient ¶
func (o *ListFeatureParams) WithHTTPClient(client *http.Client) *ListFeatureParams
WithHTTPClient adds the HTTPClient to the list feature params
func (*ListFeatureParams) WithLimit ¶
func (o *ListFeatureParams) WithLimit(limit *int32) *ListFeatureParams
WithLimit adds the limit to the list feature params
func (*ListFeatureParams) WithOrderby ¶
func (o *ListFeatureParams) WithOrderby(orderby *string) *ListFeatureParams
WithOrderby adds the orderby to the list feature params
func (*ListFeatureParams) WithQ ¶
func (o *ListFeatureParams) WithQ(q *string) *ListFeatureParams
WithQ adds the q to the list feature params
func (*ListFeatureParams) WithStart ¶
func (o *ListFeatureParams) WithStart(start *int32) *ListFeatureParams
WithStart adds the start to the list feature params
func (*ListFeatureParams) WithTimeout ¶
func (o *ListFeatureParams) WithTimeout(timeout time.Duration) *ListFeatureParams
WithTimeout adds the timeout to the list feature params
func (*ListFeatureParams) WithUseStableAPI ¶
func (o *ListFeatureParams) WithUseStableAPI(useStableAPI *bool) *ListFeatureParams
WithUseStableAPI adds the useStableAPI to the list feature params
func (*ListFeatureParams) WriteToRequest ¶
func (o *ListFeatureParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListFeatureReader ¶
type ListFeatureReader struct {
// contains filtered or unexported fields
}
ListFeatureReader is a Reader for the ListFeature structure.
func (*ListFeatureReader) ReadResponse ¶
func (o *ListFeatureReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListFeatureUnauthorized ¶
type ListFeatureUnauthorized struct {
}ListFeatureUnauthorized handles this case with default header values.
Unauthorized
func NewListFeatureUnauthorized ¶
func NewListFeatureUnauthorized() *ListFeatureUnauthorized
NewListFeatureUnauthorized creates a ListFeatureUnauthorized with default headers values
func (*ListFeatureUnauthorized) Error ¶
func (o *ListFeatureUnauthorized) Error() string
func (*ListFeatureUnauthorized) GetPayload ¶
func (o *ListFeatureUnauthorized) GetPayload() *models.APIResult
type ReadFeatureBadRequest ¶
ReadFeatureBadRequest handles this case with default header values.
Bad Request
func NewReadFeatureBadRequest ¶
func NewReadFeatureBadRequest() *ReadFeatureBadRequest
NewReadFeatureBadRequest creates a ReadFeatureBadRequest with default headers values
func (*ReadFeatureBadRequest) Error ¶
func (o *ReadFeatureBadRequest) Error() string
func (*ReadFeatureBadRequest) GetPayload ¶
func (o *ReadFeatureBadRequest) GetPayload() *models.APIResult
type ReadFeatureConflict ¶
ReadFeatureConflict handles this case with default header values.
Conflict
func NewReadFeatureConflict ¶
func NewReadFeatureConflict() *ReadFeatureConflict
NewReadFeatureConflict creates a ReadFeatureConflict with default headers values
func (*ReadFeatureConflict) Error ¶
func (o *ReadFeatureConflict) Error() string
func (*ReadFeatureConflict) GetPayload ¶
func (o *ReadFeatureConflict) GetPayload() *models.APIResult
type ReadFeatureForbidden ¶
ReadFeatureForbidden handles this case with default header values.
Forbidden
func NewReadFeatureForbidden ¶
func NewReadFeatureForbidden() *ReadFeatureForbidden
NewReadFeatureForbidden creates a ReadFeatureForbidden with default headers values
func (*ReadFeatureForbidden) Error ¶
func (o *ReadFeatureForbidden) Error() string
func (*ReadFeatureForbidden) GetPayload ¶
func (o *ReadFeatureForbidden) GetPayload() *models.APIResult
type ReadFeatureInternalServerError ¶
ReadFeatureInternalServerError handles this case with default header values.
Internal Server Error
func NewReadFeatureInternalServerError ¶
func NewReadFeatureInternalServerError() *ReadFeatureInternalServerError
NewReadFeatureInternalServerError creates a ReadFeatureInternalServerError with default headers values
func (*ReadFeatureInternalServerError) Error ¶
func (o *ReadFeatureInternalServerError) Error() string
func (*ReadFeatureInternalServerError) GetPayload ¶
func (o *ReadFeatureInternalServerError) GetPayload() *models.APIResult
type ReadFeatureNotFound ¶
ReadFeatureNotFound handles this case with default header values.
Not Found
func NewReadFeatureNotFound ¶
func NewReadFeatureNotFound() *ReadFeatureNotFound
NewReadFeatureNotFound creates a ReadFeatureNotFound with default headers values
func (*ReadFeatureNotFound) Error ¶
func (o *ReadFeatureNotFound) Error() string
func (*ReadFeatureNotFound) GetPayload ¶
func (o *ReadFeatureNotFound) GetPayload() *models.APIResult
type ReadFeatureOK ¶
type ReadFeatureOK struct {
Payload *models.APIResultFeature
}
ReadFeatureOK handles this case with default header values.
OK
func NewReadFeatureOK ¶
func NewReadFeatureOK() *ReadFeatureOK
NewReadFeatureOK creates a ReadFeatureOK with default headers values
func (*ReadFeatureOK) Error ¶
func (o *ReadFeatureOK) Error() string
func (*ReadFeatureOK) GetPayload ¶
func (o *ReadFeatureOK) GetPayload() *models.APIResultFeature
type ReadFeatureParams ¶
type ReadFeatureParams struct { /*Fields Output fields */ Fields *string /*ID id */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReadFeatureParams contains all the parameters to send to the API endpoint for the read feature operation typically these are written to a http.Request
func NewReadFeatureParams ¶
func NewReadFeatureParams() *ReadFeatureParams
NewReadFeatureParams creates a new ReadFeatureParams object with the default values initialized.
func NewReadFeatureParamsWithContext ¶
func NewReadFeatureParamsWithContext(ctx context.Context) *ReadFeatureParams
NewReadFeatureParamsWithContext creates a new ReadFeatureParams object with the default values initialized, and the ability to set a context for a request
func NewReadFeatureParamsWithHTTPClient ¶
func NewReadFeatureParamsWithHTTPClient(client *http.Client) *ReadFeatureParams
NewReadFeatureParamsWithHTTPClient creates a new ReadFeatureParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewReadFeatureParamsWithTimeout ¶
func NewReadFeatureParamsWithTimeout(timeout time.Duration) *ReadFeatureParams
NewReadFeatureParamsWithTimeout creates a new ReadFeatureParams object with the default values initialized, and the ability to set a timeout on a request
func (*ReadFeatureParams) SetContext ¶
func (o *ReadFeatureParams) SetContext(ctx context.Context)
SetContext adds the context to the read feature params
func (*ReadFeatureParams) SetFields ¶
func (o *ReadFeatureParams) SetFields(fields *string)
SetFields adds the fields to the read feature params
func (*ReadFeatureParams) SetHTTPClient ¶
func (o *ReadFeatureParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the read feature params
func (*ReadFeatureParams) SetID ¶
func (o *ReadFeatureParams) SetID(id string)
SetID adds the id to the read feature params
func (*ReadFeatureParams) SetTimeout ¶
func (o *ReadFeatureParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the read feature params
func (*ReadFeatureParams) WithContext ¶
func (o *ReadFeatureParams) WithContext(ctx context.Context) *ReadFeatureParams
WithContext adds the context to the read feature params
func (*ReadFeatureParams) WithFields ¶
func (o *ReadFeatureParams) WithFields(fields *string) *ReadFeatureParams
WithFields adds the fields to the read feature params
func (*ReadFeatureParams) WithHTTPClient ¶
func (o *ReadFeatureParams) WithHTTPClient(client *http.Client) *ReadFeatureParams
WithHTTPClient adds the HTTPClient to the read feature params
func (*ReadFeatureParams) WithID ¶
func (o *ReadFeatureParams) WithID(id string) *ReadFeatureParams
WithID adds the id to the read feature params
func (*ReadFeatureParams) WithTimeout ¶
func (o *ReadFeatureParams) WithTimeout(timeout time.Duration) *ReadFeatureParams
WithTimeout adds the timeout to the read feature params
func (*ReadFeatureParams) WriteToRequest ¶
func (o *ReadFeatureParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReadFeatureReader ¶
type ReadFeatureReader struct {
// contains filtered or unexported fields
}
ReadFeatureReader is a Reader for the ReadFeature structure.
func (*ReadFeatureReader) ReadResponse ¶
func (o *ReadFeatureReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReadFeatureUnauthorized ¶
type ReadFeatureUnauthorized struct {
}ReadFeatureUnauthorized handles this case with default header values.
Unauthorized
func NewReadFeatureUnauthorized ¶
func NewReadFeatureUnauthorized() *ReadFeatureUnauthorized
NewReadFeatureUnauthorized creates a ReadFeatureUnauthorized with default headers values
func (*ReadFeatureUnauthorized) Error ¶
func (o *ReadFeatureUnauthorized) Error() string
func (*ReadFeatureUnauthorized) GetPayload ¶
func (o *ReadFeatureUnauthorized) GetPayload() *models.APIResult