snapshots

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 10 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 snapshots API

func New

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

New creates a new snapshots API client.

func (*Client) GetRollSnapshot

func (a *Client) GetRollSnapshot(params *GetRollSnapshotParams) (*GetRollSnapshotOK, error)

GetRollSnapshot get roll snapshot API

func (*Client) GetRolls

func (a *Client) GetRolls(params *GetRollsParams) (*GetRollsOK, error)

GetRolls get rolls API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetRollSnapshotInternalServerError

type GetRollSnapshotInternalServerError struct {
}

GetRollSnapshotInternalServerError handles this case with default header values.

Internal error

func NewGetRollSnapshotInternalServerError

func NewGetRollSnapshotInternalServerError() *GetRollSnapshotInternalServerError

NewGetRollSnapshotInternalServerError creates a GetRollSnapshotInternalServerError with default headers values

func (*GetRollSnapshotInternalServerError) Error

type GetRollSnapshotOK

type GetRollSnapshotOK struct {
	Payload int64
}

GetRollSnapshotOK handles this case with default header values.

Endpoint for snapshot number

func NewGetRollSnapshotOK

func NewGetRollSnapshotOK() *GetRollSnapshotOK

NewGetRollSnapshotOK creates a GetRollSnapshotOK with default headers values

func (*GetRollSnapshotOK) Error

func (o *GetRollSnapshotOK) Error() string

func (*GetRollSnapshotOK) GetPayload

func (o *GetRollSnapshotOK) GetPayload() int64

type GetRollSnapshotParams

type GetRollSnapshotParams struct {

	/*Block*/
	Block string
	/*Cycle*/
	Cycle int64
	/*Network*/
	Network string

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

GetRollSnapshotParams contains all the parameters to send to the API endpoint for the get roll snapshot operation typically these are written to a http.Request

func NewGetRollSnapshotParams

func NewGetRollSnapshotParams() *GetRollSnapshotParams

NewGetRollSnapshotParams creates a new GetRollSnapshotParams object with the default values initialized.

func NewGetRollSnapshotParamsWithContext

func NewGetRollSnapshotParamsWithContext(ctx context.Context) *GetRollSnapshotParams

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

func NewGetRollSnapshotParamsWithHTTPClient

func NewGetRollSnapshotParamsWithHTTPClient(client *http.Client) *GetRollSnapshotParams

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

func NewGetRollSnapshotParamsWithTimeout

func NewGetRollSnapshotParamsWithTimeout(timeout time.Duration) *GetRollSnapshotParams

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

func (*GetRollSnapshotParams) SetBlock

func (o *GetRollSnapshotParams) SetBlock(block string)

SetBlock adds the block to the get roll snapshot params

func (*GetRollSnapshotParams) SetContext

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

SetContext adds the context to the get roll snapshot params

func (*GetRollSnapshotParams) SetCycle

func (o *GetRollSnapshotParams) SetCycle(cycle int64)

SetCycle adds the cycle to the get roll snapshot params

func (*GetRollSnapshotParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get roll snapshot params

func (*GetRollSnapshotParams) SetNetwork

func (o *GetRollSnapshotParams) SetNetwork(network string)

SetNetwork adds the network to the get roll snapshot params

func (*GetRollSnapshotParams) SetTimeout

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

SetTimeout adds the timeout to the get roll snapshot params

func (*GetRollSnapshotParams) WithBlock

func (o *GetRollSnapshotParams) WithBlock(block string) *GetRollSnapshotParams

WithBlock adds the block to the get roll snapshot params

func (*GetRollSnapshotParams) WithContext

WithContext adds the context to the get roll snapshot params

func (*GetRollSnapshotParams) WithCycle

func (o *GetRollSnapshotParams) WithCycle(cycle int64) *GetRollSnapshotParams

WithCycle adds the cycle to the get roll snapshot params

func (*GetRollSnapshotParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get roll snapshot params

func (*GetRollSnapshotParams) WithNetwork

func (o *GetRollSnapshotParams) WithNetwork(network string) *GetRollSnapshotParams

WithNetwork adds the network to the get roll snapshot params

func (*GetRollSnapshotParams) WithTimeout

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

WithTimeout adds the timeout to the get roll snapshot params

func (*GetRollSnapshotParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRollSnapshotReader

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

GetRollSnapshotReader is a Reader for the GetRollSnapshot structure.

func (*GetRollSnapshotReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRollsInternalServerError

type GetRollsInternalServerError struct {
}

GetRollsInternalServerError handles this case with default header values.

Internal error

func NewGetRollsInternalServerError

func NewGetRollsInternalServerError() *GetRollsInternalServerError

NewGetRollsInternalServerError creates a GetRollsInternalServerError with default headers values

func (*GetRollsInternalServerError) Error

type GetRollsOK

type GetRollsOK struct {
	Payload []int64
}

GetRollsOK handles this case with default header values.

Endpoint for rolls

func NewGetRollsOK

func NewGetRollsOK() *GetRollsOK

NewGetRollsOK creates a GetRollsOK with default headers values

func (*GetRollsOK) Error

func (o *GetRollsOK) Error() string

func (*GetRollsOK) GetPayload

func (o *GetRollsOK) GetPayload() []int64

type GetRollsParams

type GetRollsParams struct {

	/*Block*/
	Block string
	/*Cycle*/
	Cycle int64
	/*Network*/
	Network string
	/*Snap*/
	Snap int64

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

GetRollsParams contains all the parameters to send to the API endpoint for the get rolls operation typically these are written to a http.Request

func NewGetRollsParams

func NewGetRollsParams() *GetRollsParams

NewGetRollsParams creates a new GetRollsParams object with the default values initialized.

func NewGetRollsParamsWithContext

func NewGetRollsParamsWithContext(ctx context.Context) *GetRollsParams

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

func NewGetRollsParamsWithHTTPClient

func NewGetRollsParamsWithHTTPClient(client *http.Client) *GetRollsParams

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

func NewGetRollsParamsWithTimeout

func NewGetRollsParamsWithTimeout(timeout time.Duration) *GetRollsParams

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

func (*GetRollsParams) SetBlock

func (o *GetRollsParams) SetBlock(block string)

SetBlock adds the block to the get rolls params

func (*GetRollsParams) SetContext

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

SetContext adds the context to the get rolls params

func (*GetRollsParams) SetCycle

func (o *GetRollsParams) SetCycle(cycle int64)

SetCycle adds the cycle to the get rolls params

func (*GetRollsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get rolls params

func (*GetRollsParams) SetNetwork

func (o *GetRollsParams) SetNetwork(network string)

SetNetwork adds the network to the get rolls params

func (*GetRollsParams) SetSnap

func (o *GetRollsParams) SetSnap(snap int64)

SetSnap adds the snap to the get rolls params

func (*GetRollsParams) SetTimeout

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

SetTimeout adds the timeout to the get rolls params

func (*GetRollsParams) WithBlock

func (o *GetRollsParams) WithBlock(block string) *GetRollsParams

WithBlock adds the block to the get rolls params

func (*GetRollsParams) WithContext

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

WithContext adds the context to the get rolls params

func (*GetRollsParams) WithCycle

func (o *GetRollsParams) WithCycle(cycle int64) *GetRollsParams

WithCycle adds the cycle to the get rolls params

func (*GetRollsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get rolls params

func (*GetRollsParams) WithNetwork

func (o *GetRollsParams) WithNetwork(network string) *GetRollsParams

WithNetwork adds the network to the get rolls params

func (*GetRollsParams) WithSnap

func (o *GetRollsParams) WithSnap(snap int64) *GetRollsParams

WithSnap adds the snap to the get rolls params

func (*GetRollsParams) WithTimeout

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

WithTimeout adds the timeout to the get rolls params

func (*GetRollsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRollsReader

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

GetRollsReader is a Reader for the GetRolls structure.

func (*GetRollsReader) ReadResponse

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