system_loggers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: BSD-3-Clause Imports: 8 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 system loggers API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new system loggers API client.

func (*Client) Override

func (a *Client) Override(params *OverrideParams, authInfo runtime.ClientAuthInfoWriter) (*OverrideOK, error)

Override overrides load balancer status of this graylog server node next lifecycle change will override it again to its default set to a l i v e d e a d or t h r o TTL e d

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Status

func (a *Client) Status(params *StatusParams, authInfo runtime.ClientAuthInfoWriter) (*StatusOK, error)

Status gets status of this graylog server node for load balancers returns a l i v e with HTTP 200 d e a d with HTTP 503 or t h r o TTL e d with HTTP 429

type OverrideOK

type OverrideOK struct {
}

OverrideOK handles this case with default header values.

No response was specified

func NewOverrideOK

func NewOverrideOK() *OverrideOK

NewOverrideOK creates a OverrideOK with default headers values

func (*OverrideOK) Error

func (o *OverrideOK) Error() string

type OverrideParams

type OverrideParams struct {

	/*Status*/
	Status string

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

OverrideParams contains all the parameters to send to the API endpoint for the override operation typically these are written to a http.Request

func NewOverrideParams

func NewOverrideParams() *OverrideParams

NewOverrideParams creates a new OverrideParams object with the default values initialized.

func NewOverrideParamsWithContext

func NewOverrideParamsWithContext(ctx context.Context) *OverrideParams

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

func NewOverrideParamsWithHTTPClient

func NewOverrideParamsWithHTTPClient(client *http.Client) *OverrideParams

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

func NewOverrideParamsWithTimeout

func NewOverrideParamsWithTimeout(timeout time.Duration) *OverrideParams

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

func (*OverrideParams) SetContext

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

SetContext adds the context to the override params

func (*OverrideParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the override params

func (*OverrideParams) SetStatus

func (o *OverrideParams) SetStatus(status string)

SetStatus adds the status to the override params

func (*OverrideParams) SetTimeout

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

SetTimeout adds the timeout to the override params

func (*OverrideParams) WithContext

func (o *OverrideParams) WithContext(ctx context.Context) *OverrideParams

WithContext adds the context to the override params

func (*OverrideParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the override params

func (*OverrideParams) WithStatus

func (o *OverrideParams) WithStatus(status string) *OverrideParams

WithStatus adds the status to the override params

func (*OverrideParams) WithTimeout

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

WithTimeout adds the timeout to the override params

func (*OverrideParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type OverrideReader

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

OverrideReader is a Reader for the Override structure.

func (*OverrideReader) ReadResponse

func (o *OverrideReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type StatusOK

type StatusOK struct {
}

StatusOK handles this case with default header values.

No response was specified

func NewStatusOK

func NewStatusOK() *StatusOK

NewStatusOK creates a StatusOK with default headers values

func (*StatusOK) Error

func (o *StatusOK) Error() string

type StatusParams

type StatusParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StatusParams contains all the parameters to send to the API endpoint for the status operation typically these are written to a http.Request

func NewStatusParams

func NewStatusParams() *StatusParams

NewStatusParams creates a new StatusParams object with the default values initialized.

func NewStatusParamsWithContext

func NewStatusParamsWithContext(ctx context.Context) *StatusParams

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

func NewStatusParamsWithHTTPClient

func NewStatusParamsWithHTTPClient(client *http.Client) *StatusParams

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

func NewStatusParamsWithTimeout

func NewStatusParamsWithTimeout(timeout time.Duration) *StatusParams

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

func (*StatusParams) SetContext

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

SetContext adds the context to the status params

func (*StatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the status params

func (*StatusParams) SetTimeout

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

SetTimeout adds the timeout to the status params

func (*StatusParams) WithContext

func (o *StatusParams) WithContext(ctx context.Context) *StatusParams

WithContext adds the context to the status params

func (*StatusParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the status params

func (*StatusParams) WithTimeout

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

WithTimeout adds the timeout to the status params

func (*StatusParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StatusReader

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

StatusReader is a Reader for the Status structure.

func (*StatusReader) ReadResponse

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