Documentation ¶
Index ¶
- type Client
- func (a *Client) GetServerLogs(params *GetServerLogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerLogsOK, *GetServerLogsBadRequest, *GetServerLogsUnauthorized, ...)deprecated
- func (a *Client) GetServerLogsShort(params *GetServerLogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerLogsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetServerLogsBadRequest
- type GetServerLogsInternalServerError
- type GetServerLogsNotFound
- type GetServerLogsOK
- type GetServerLogsParams
- func (o *GetServerLogsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetServerLogsParams) SetContext(ctx context.Context)
- func (o *GetServerLogsParams) SetHTTPClient(client *http.Client)
- func (o *GetServerLogsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetServerLogsParams) SetLogType(logType *string)
- func (o *GetServerLogsParams) SetNamespace(namespace string)
- func (o *GetServerLogsParams) SetOffset(offset *int64)
- func (o *GetServerLogsParams) SetOrigin(origin *string)
- func (o *GetServerLogsParams) SetPodName(podName string)
- func (o *GetServerLogsParams) SetTimeout(timeout time.Duration)
- func (o *GetServerLogsParams) WithContext(ctx context.Context) *GetServerLogsParams
- func (o *GetServerLogsParams) WithHTTPClient(client *http.Client) *GetServerLogsParams
- func (o *GetServerLogsParams) WithLogType(logType *string) *GetServerLogsParams
- func (o *GetServerLogsParams) WithNamespace(namespace string) *GetServerLogsParams
- func (o *GetServerLogsParams) WithOffset(offset *int64) *GetServerLogsParams
- func (o *GetServerLogsParams) WithOrigin(origin *string) *GetServerLogsParams
- func (o *GetServerLogsParams) WithPodName(podName string) *GetServerLogsParams
- func (o *GetServerLogsParams) WithTimeout(timeout time.Duration) *GetServerLogsParams
- func (o *GetServerLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetServerLogsReader
- type GetServerLogsUnauthorized
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 admin API
func (*Client) GetServerLogs
deprecated
func (a *Client) GetServerLogs(params *GetServerLogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerLogsOK, *GetServerLogsBadRequest, *GetServerLogsUnauthorized, *GetServerLogsNotFound, *GetServerLogsInternalServerError, error)
Deprecated: 2022-08-10 - Use GetServerLogsShort instead.
GetServerLogs queries server logs Required permission: ADMIN:NAMESPACE:{namespace}:DSM:SERVER [READ]
Required scope: social
This endpoint queries a specified dedicated server's logs.
func (*Client) GetServerLogsShort ¶
func (a *Client) GetServerLogsShort(params *GetServerLogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerLogsOK, error)
GetServerLogsShort queries server logs Required permission: ADMIN:NAMESPACE:{namespace}:DSM:SERVER [READ]
Required scope: social
This endpoint queries a specified dedicated server's logs.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetServerLogs(params *GetServerLogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerLogsOK, *GetServerLogsBadRequest, *GetServerLogsUnauthorized, *GetServerLogsNotFound, *GetServerLogsInternalServerError, error) GetServerLogsShort(params *GetServerLogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetServerLogsOK, 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 admin API client.
type GetServerLogsBadRequest ¶
type GetServerLogsBadRequest struct {
Payload *dslogmanagerclientmodels.ResponseError
}
GetServerLogsBadRequest handles this case with default header values.
malformed request
func NewGetServerLogsBadRequest ¶
func NewGetServerLogsBadRequest() *GetServerLogsBadRequest
NewGetServerLogsBadRequest creates a GetServerLogsBadRequest with default headers values
func (*GetServerLogsBadRequest) Error ¶
func (o *GetServerLogsBadRequest) Error() string
func (*GetServerLogsBadRequest) GetPayload ¶
func (o *GetServerLogsBadRequest) GetPayload() *dslogmanagerclientmodels.ResponseError
func (*GetServerLogsBadRequest) ToJSONString ¶
func (o *GetServerLogsBadRequest) ToJSONString() string
type GetServerLogsInternalServerError ¶
type GetServerLogsInternalServerError struct {
Payload *dslogmanagerclientmodels.ResponseError
}
GetServerLogsInternalServerError handles this case with default header values.
Internal Server Error
func NewGetServerLogsInternalServerError ¶
func NewGetServerLogsInternalServerError() *GetServerLogsInternalServerError
NewGetServerLogsInternalServerError creates a GetServerLogsInternalServerError with default headers values
func (*GetServerLogsInternalServerError) Error ¶
func (o *GetServerLogsInternalServerError) Error() string
func (*GetServerLogsInternalServerError) GetPayload ¶
func (o *GetServerLogsInternalServerError) GetPayload() *dslogmanagerclientmodels.ResponseError
func (*GetServerLogsInternalServerError) ToJSONString ¶
func (o *GetServerLogsInternalServerError) ToJSONString() string
type GetServerLogsNotFound ¶
type GetServerLogsNotFound struct {
Payload *dslogmanagerclientmodels.ResponseError
}
GetServerLogsNotFound handles this case with default header values.
server not found
func NewGetServerLogsNotFound ¶
func NewGetServerLogsNotFound() *GetServerLogsNotFound
NewGetServerLogsNotFound creates a GetServerLogsNotFound with default headers values
func (*GetServerLogsNotFound) Error ¶
func (o *GetServerLogsNotFound) Error() string
func (*GetServerLogsNotFound) GetPayload ¶
func (o *GetServerLogsNotFound) GetPayload() *dslogmanagerclientmodels.ResponseError
func (*GetServerLogsNotFound) ToJSONString ¶
func (o *GetServerLogsNotFound) ToJSONString() string
type GetServerLogsOK ¶
type GetServerLogsOK struct {
Payload *dslogmanagerclientmodels.ModelsServerLogs
}
GetServerLogsOK handles this case with default header values.
server logs queried
func NewGetServerLogsOK ¶
func NewGetServerLogsOK() *GetServerLogsOK
NewGetServerLogsOK creates a GetServerLogsOK with default headers values
func (*GetServerLogsOK) Error ¶
func (o *GetServerLogsOK) Error() string
func (*GetServerLogsOK) GetPayload ¶
func (o *GetServerLogsOK) GetPayload() *dslogmanagerclientmodels.ModelsServerLogs
func (*GetServerLogsOK) ToJSONString ¶
func (o *GetServerLogsOK) ToJSONString() string
type GetServerLogsParams ¶
type GetServerLogsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace of the game */ Namespace string /*PodName name of the DS pod */ PodName string /*LogType The log type requested. "stderr", "stdout" or "all". Default : "all" */ LogType *string /*Offset The offset to start streaming log data at. Default : 10000 */ Offset *int64 /*Origin Either "start" or "end" and defines from where the offset is applied. Default : "end" */ Origin *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetServerLogsParams contains all the parameters to send to the API endpoint for the get server logs operation typically these are written to a http.Request
func NewGetServerLogsParams ¶
func NewGetServerLogsParams() *GetServerLogsParams
NewGetServerLogsParams creates a new GetServerLogsParams object with the default values initialized.
func NewGetServerLogsParamsWithContext ¶
func NewGetServerLogsParamsWithContext(ctx context.Context) *GetServerLogsParams
NewGetServerLogsParamsWithContext creates a new GetServerLogsParams object with the default values initialized, and the ability to set a context for a request
func NewGetServerLogsParamsWithHTTPClient ¶
func NewGetServerLogsParamsWithHTTPClient(client *http.Client) *GetServerLogsParams
NewGetServerLogsParamsWithHTTPClient creates a new GetServerLogsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetServerLogsParamsWithTimeout ¶
func NewGetServerLogsParamsWithTimeout(timeout time.Duration) *GetServerLogsParams
NewGetServerLogsParamsWithTimeout creates a new GetServerLogsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetServerLogsParams) SetAuthInfoWriter ¶
func (o *GetServerLogsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get server logs params
func (*GetServerLogsParams) SetContext ¶
func (o *GetServerLogsParams) SetContext(ctx context.Context)
SetContext adds the context to the get server logs params
func (*GetServerLogsParams) SetHTTPClient ¶
func (o *GetServerLogsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get server logs params
func (*GetServerLogsParams) SetHTTPClientTransport ¶
func (o *GetServerLogsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get server logs params
func (*GetServerLogsParams) SetLogType ¶
func (o *GetServerLogsParams) SetLogType(logType *string)
SetLogType adds the logType to the get server logs params
func (*GetServerLogsParams) SetNamespace ¶
func (o *GetServerLogsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get server logs params
func (*GetServerLogsParams) SetOffset ¶
func (o *GetServerLogsParams) SetOffset(offset *int64)
SetOffset adds the offset to the get server logs params
func (*GetServerLogsParams) SetOrigin ¶
func (o *GetServerLogsParams) SetOrigin(origin *string)
SetOrigin adds the origin to the get server logs params
func (*GetServerLogsParams) SetPodName ¶
func (o *GetServerLogsParams) SetPodName(podName string)
SetPodName adds the podName to the get server logs params
func (*GetServerLogsParams) SetTimeout ¶
func (o *GetServerLogsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get server logs params
func (*GetServerLogsParams) WithContext ¶
func (o *GetServerLogsParams) WithContext(ctx context.Context) *GetServerLogsParams
WithContext adds the context to the get server logs params
func (*GetServerLogsParams) WithHTTPClient ¶
func (o *GetServerLogsParams) WithHTTPClient(client *http.Client) *GetServerLogsParams
WithHTTPClient adds the HTTPClient to the get server logs params
func (*GetServerLogsParams) WithLogType ¶
func (o *GetServerLogsParams) WithLogType(logType *string) *GetServerLogsParams
WithLogType adds the logType to the get server logs params
func (*GetServerLogsParams) WithNamespace ¶
func (o *GetServerLogsParams) WithNamespace(namespace string) *GetServerLogsParams
WithNamespace adds the namespace to the get server logs params
func (*GetServerLogsParams) WithOffset ¶
func (o *GetServerLogsParams) WithOffset(offset *int64) *GetServerLogsParams
WithOffset adds the offset to the get server logs params
func (*GetServerLogsParams) WithOrigin ¶
func (o *GetServerLogsParams) WithOrigin(origin *string) *GetServerLogsParams
WithOrigin adds the origin to the get server logs params
func (*GetServerLogsParams) WithPodName ¶
func (o *GetServerLogsParams) WithPodName(podName string) *GetServerLogsParams
WithPodName adds the podName to the get server logs params
func (*GetServerLogsParams) WithTimeout ¶
func (o *GetServerLogsParams) WithTimeout(timeout time.Duration) *GetServerLogsParams
WithTimeout adds the timeout to the get server logs params
func (*GetServerLogsParams) WriteToRequest ¶
func (o *GetServerLogsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetServerLogsReader ¶
type GetServerLogsReader struct {
// contains filtered or unexported fields
}
GetServerLogsReader is a Reader for the GetServerLogs structure.
func (*GetServerLogsReader) ReadResponse ¶
func (o *GetServerLogsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetServerLogsUnauthorized ¶
type GetServerLogsUnauthorized struct {
}GetServerLogsUnauthorized handles this case with default header values.
Unauthorized
func NewGetServerLogsUnauthorized ¶
func NewGetServerLogsUnauthorized() *GetServerLogsUnauthorized
NewGetServerLogsUnauthorized creates a GetServerLogsUnauthorized with default headers values
func (*GetServerLogsUnauthorized) Error ¶
func (o *GetServerLogsUnauthorized) Error() string
func (*GetServerLogsUnauthorized) GetPayload ¶
func (o *GetServerLogsUnauthorized) GetPayload() *dslogmanagerclientmodels.ResponseError
func (*GetServerLogsUnauthorized) ToJSONString ¶
func (o *GetServerLogsUnauthorized) ToJSONString() string