admin

package
v0.69.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 16 Imported by: 0

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 admin API

func (*Client) GetServerLogs deprecated

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

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 (*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 (*GetServerLogsInternalServerError) GetPayload

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 (*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 (*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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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) SetFlightId added in v0.63.0

func (o *GetServerLogsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

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

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 {
	Payload *dslogmanagerclientmodels.ResponseError
}

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 (*GetServerLogsUnauthorized) ToJSONString

func (o *GetServerLogsUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL