watchdogs

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 12 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 watchdogs API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) WatchdogConnect deprecated

func (a *Client) WatchdogConnect(params *WatchdogConnectParams, authInfo runtime.ClientAuthInfoWriter) (*WatchdogConnectOK, error)

Deprecated: 2022-08-10 - Use WatchdogConnectShort instead.

WatchdogConnect connect a watchdog Required Permission: NAMESPACE:{namespace}:ARMADA:WATCHDOG [CREATE]

func (*Client) WatchdogConnectShort

func (a *Client) WatchdogConnectShort(params *WatchdogConnectParams, authInfo runtime.ClientAuthInfoWriter) (*WatchdogConnectOK, error)

WatchdogConnectShort connect a watchdog Required Permission: NAMESPACE:{namespace}:ARMADA:WATCHDOG [CREATE]

type ClientService

type ClientService interface {
	WatchdogConnect(params *WatchdogConnectParams, authInfo runtime.ClientAuthInfoWriter) (*WatchdogConnectOK, error)
	WatchdogConnectShort(params *WatchdogConnectParams, authInfo runtime.ClientAuthInfoWriter) (*WatchdogConnectOK, 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 watchdogs API client.

type WatchdogConnectOK

type WatchdogConnectOK struct {
}

WatchdogConnectOK handles this case with default header values.

OK

func NewWatchdogConnectOK

func NewWatchdogConnectOK() *WatchdogConnectOK

NewWatchdogConnectOK creates a WatchdogConnectOK with default headers values

func (*WatchdogConnectOK) Error

func (o *WatchdogConnectOK) Error() string

type WatchdogConnectParams

type WatchdogConnectParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*WatchdogID
	  the id of the watchdog

	*/
	WatchdogID string

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

WatchdogConnectParams contains all the parameters to send to the API endpoint for the watchdog connect operation typically these are written to a http.Request

func NewWatchdogConnectParams

func NewWatchdogConnectParams() *WatchdogConnectParams

NewWatchdogConnectParams creates a new WatchdogConnectParams object with the default values initialized.

func NewWatchdogConnectParamsWithContext

func NewWatchdogConnectParamsWithContext(ctx context.Context) *WatchdogConnectParams

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

func NewWatchdogConnectParamsWithHTTPClient

func NewWatchdogConnectParamsWithHTTPClient(client *http.Client) *WatchdogConnectParams

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

func NewWatchdogConnectParamsWithTimeout

func NewWatchdogConnectParamsWithTimeout(timeout time.Duration) *WatchdogConnectParams

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

func (*WatchdogConnectParams) SetAuthInfoWriter

func (o *WatchdogConnectParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the watchdog connect params

func (*WatchdogConnectParams) SetContext

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

SetContext adds the context to the watchdog connect params

func (*WatchdogConnectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the watchdog connect params

func (*WatchdogConnectParams) SetHTTPClientTransport

func (o *WatchdogConnectParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the watchdog connect params

func (*WatchdogConnectParams) SetNamespace

func (o *WatchdogConnectParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the watchdog connect params

func (*WatchdogConnectParams) SetTimeout

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

SetTimeout adds the timeout to the watchdog connect params

func (*WatchdogConnectParams) SetWatchdogID

func (o *WatchdogConnectParams) SetWatchdogID(watchdogID string)

SetWatchdogID adds the watchdogId to the watchdog connect params

func (*WatchdogConnectParams) WithContext

WithContext adds the context to the watchdog connect params

func (*WatchdogConnectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the watchdog connect params

func (*WatchdogConnectParams) WithNamespace

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

WithNamespace adds the namespace to the watchdog connect params

func (*WatchdogConnectParams) WithTimeout

func (o *WatchdogConnectParams) WithTimeout(timeout time.Duration) *WatchdogConnectParams

WithTimeout adds the timeout to the watchdog connect params

func (*WatchdogConnectParams) WithWatchdogID

func (o *WatchdogConnectParams) WithWatchdogID(watchdogID string) *WatchdogConnectParams

WithWatchdogID adds the watchdogID to the watchdog connect params

func (*WatchdogConnectParams) WriteToRequest

func (o *WatchdogConnectParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type WatchdogConnectReader

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

WatchdogConnectReader is a Reader for the WatchdogConnect structure.

func (*WatchdogConnectReader) ReadResponse

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