global_statistic

package
v0.0.0-...-f573b6e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 13 Imported by: 1

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 global statistic API

func (*Client) GetGlobalStatItems

func (a *Client) GetGlobalStatItems(params *GetGlobalStatItemsParams, authInfo runtime.ClientAuthInfoWriter) (*GetGlobalStatItemsOK, error)

GetGlobalStatItems lists global stat items

List global statItems by pagination.<br>Other detail info:<ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:STATITEM", action=2 (READ)</li><li><i>Returns</i>: stat items</li>ul

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetGlobalStatItems(params *GetGlobalStatItemsParams, authInfo runtime.ClientAuthInfoWriter) (*GetGlobalStatItemsOK, 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 global statistic API client.

type GetGlobalStatItemsOK

type GetGlobalStatItemsOK struct {
	Payload *socialclientmodels.GlobalStatItemPagingSlicedResult
}

GetGlobalStatItemsOK handles this case with default header values.

successful operation

func NewGetGlobalStatItemsOK

func NewGetGlobalStatItemsOK() *GetGlobalStatItemsOK

NewGetGlobalStatItemsOK creates a GetGlobalStatItemsOK with default headers values

func (*GetGlobalStatItemsOK) Error

func (o *GetGlobalStatItemsOK) Error() string

func (*GetGlobalStatItemsOK) GetPayload

type GetGlobalStatItemsParams

type GetGlobalStatItemsParams struct {

	/*Limit*/
	Limit *int32
	/*Namespace
	  namespace

	*/
	Namespace string
	/*Offset*/
	Offset *int32

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

GetGlobalStatItemsParams contains all the parameters to send to the API endpoint for the get global stat items operation typically these are written to a http.Request

func NewGetGlobalStatItemsParams

func NewGetGlobalStatItemsParams() *GetGlobalStatItemsParams

NewGetGlobalStatItemsParams creates a new GetGlobalStatItemsParams object with the default values initialized.

func NewGetGlobalStatItemsParamsWithContext

func NewGetGlobalStatItemsParamsWithContext(ctx context.Context) *GetGlobalStatItemsParams

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

func NewGetGlobalStatItemsParamsWithHTTPClient

func NewGetGlobalStatItemsParamsWithHTTPClient(client *http.Client) *GetGlobalStatItemsParams

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

func NewGetGlobalStatItemsParamsWithTimeout

func NewGetGlobalStatItemsParamsWithTimeout(timeout time.Duration) *GetGlobalStatItemsParams

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

func (*GetGlobalStatItemsParams) SetContext

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

SetContext adds the context to the get global stat items params

func (*GetGlobalStatItemsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get global stat items params

func (*GetGlobalStatItemsParams) SetLimit

func (o *GetGlobalStatItemsParams) SetLimit(limit *int32)

SetLimit adds the limit to the get global stat items params

func (*GetGlobalStatItemsParams) SetNamespace

func (o *GetGlobalStatItemsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get global stat items params

func (*GetGlobalStatItemsParams) SetOffset

func (o *GetGlobalStatItemsParams) SetOffset(offset *int32)

SetOffset adds the offset to the get global stat items params

func (*GetGlobalStatItemsParams) SetTimeout

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

SetTimeout adds the timeout to the get global stat items params

func (*GetGlobalStatItemsParams) WithContext

WithContext adds the context to the get global stat items params

func (*GetGlobalStatItemsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get global stat items params

func (*GetGlobalStatItemsParams) WithLimit

WithLimit adds the limit to the get global stat items params

func (*GetGlobalStatItemsParams) WithNamespace

func (o *GetGlobalStatItemsParams) WithNamespace(namespace string) *GetGlobalStatItemsParams

WithNamespace adds the namespace to the get global stat items params

func (*GetGlobalStatItemsParams) WithOffset

WithOffset adds the offset to the get global stat items params

func (*GetGlobalStatItemsParams) WithTimeout

WithTimeout adds the timeout to the get global stat items params

func (*GetGlobalStatItemsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetGlobalStatItemsReader

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

GetGlobalStatItemsReader is a Reader for the GetGlobalStatItems structure.

func (*GetGlobalStatItemsReader) ReadResponse

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