Help us shape the future of Go! Take the 2026 Go Developer Survey

process

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2017 License: MIT Imports: 11 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 process API

func New

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

New creates a new process API client.

func (*Client) GetProcess

func (a *Client) GetProcess(params *GetProcessParams, authInfo runtime.ClientAuthInfoWriter) (*GetProcessOK, error)

GetProcess returns the informations for a process

func (*Client) GetProcesses

func (a *Client) GetProcesses(params *GetProcessesParams, authInfo runtime.ClientAuthInfoWriter) (*GetProcessesOK, error)

GetProcesses returns all the processes for your account

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetProcessBadRequest

type GetProcessBadRequest struct {
	Payload *models.ErrorModel
}

GetProcessBadRequest handles this case with default header values.

bad request

func NewGetProcessBadRequest

func NewGetProcessBadRequest() *GetProcessBadRequest

NewGetProcessBadRequest creates a GetProcessBadRequest with default headers values

func (*GetProcessBadRequest) Error

func (o *GetProcessBadRequest) Error() string

type GetProcessNotFound

type GetProcessNotFound struct {
	Payload *models.ErrorModel
}

GetProcessNotFound handles this case with default header values.

Process ID not found

func NewGetProcessNotFound

func NewGetProcessNotFound() *GetProcessNotFound

NewGetProcessNotFound creates a GetProcessNotFound with default headers values

func (*GetProcessNotFound) Error

func (o *GetProcessNotFound) Error() string

type GetProcessOK

type GetProcessOK struct {
	Payload *models.GetProcess
}

GetProcessOK handles this case with default header values.

process informations

func NewGetProcessOK

func NewGetProcessOK() *GetProcessOK

NewGetProcessOK creates a GetProcessOK with default headers values

func (*GetProcessOK) Error

func (o *GetProcessOK) Error() string

type GetProcessParams

type GetProcessParams struct {

	/*ProcessID
	  Id of the process

	*/
	ProcessID int64

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

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

func NewGetProcessParams

func NewGetProcessParams() *GetProcessParams

NewGetProcessParams creates a new GetProcessParams object with the default values initialized.

func NewGetProcessParamsWithContext

func NewGetProcessParamsWithContext(ctx context.Context) *GetProcessParams

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

func NewGetProcessParamsWithHTTPClient

func NewGetProcessParamsWithHTTPClient(client *http.Client) *GetProcessParams

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

func NewGetProcessParamsWithTimeout

func NewGetProcessParamsWithTimeout(timeout time.Duration) *GetProcessParams

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

func (*GetProcessParams) SetContext

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

SetContext adds the context to the get process params

func (*GetProcessParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get process params

func (*GetProcessParams) SetProcessID

func (o *GetProcessParams) SetProcessID(processID int64)

SetProcessID adds the processId to the get process params

func (*GetProcessParams) SetTimeout

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

SetTimeout adds the timeout to the get process params

func (*GetProcessParams) WithContext

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

WithContext adds the context to the get process params

func (*GetProcessParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get process params

func (*GetProcessParams) WithProcessID

func (o *GetProcessParams) WithProcessID(processID int64) *GetProcessParams

WithProcessID adds the processID to the get process params

func (*GetProcessParams) WithTimeout

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

WithTimeout adds the timeout to the get process params

func (*GetProcessParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProcessReader

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

GetProcessReader is a Reader for the GetProcess structure.

func (*GetProcessReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetProcessesBadRequest

type GetProcessesBadRequest struct {
	Payload *models.ErrorModel
}

GetProcessesBadRequest handles this case with default header values.

bad request

func NewGetProcessesBadRequest

func NewGetProcessesBadRequest() *GetProcessesBadRequest

NewGetProcessesBadRequest creates a GetProcessesBadRequest with default headers values

func (*GetProcessesBadRequest) Error

func (o *GetProcessesBadRequest) Error() string

type GetProcessesOK

type GetProcessesOK struct {
	Payload *models.GetProcesses
}

GetProcessesOK handles this case with default header values.

processes informations

func NewGetProcessesOK

func NewGetProcessesOK() *GetProcessesOK

NewGetProcessesOK creates a GetProcessesOK with default headers values

func (*GetProcessesOK) Error

func (o *GetProcessesOK) Error() string

type GetProcessesParams

type GetProcessesParams struct {

	/*Limit
	  Number limitation for the result returned

	*/
	Limit *int64
	/*Offset
	  Beginning point in the list to retrieve from.

	*/
	Offset *int64

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

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

func NewGetProcessesParams

func NewGetProcessesParams() *GetProcessesParams

NewGetProcessesParams creates a new GetProcessesParams object with the default values initialized.

func NewGetProcessesParamsWithContext

func NewGetProcessesParamsWithContext(ctx context.Context) *GetProcessesParams

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

func NewGetProcessesParamsWithHTTPClient

func NewGetProcessesParamsWithHTTPClient(client *http.Client) *GetProcessesParams

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

func NewGetProcessesParamsWithTimeout

func NewGetProcessesParamsWithTimeout(timeout time.Duration) *GetProcessesParams

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

func (*GetProcessesParams) SetContext

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

SetContext adds the context to the get processes params

func (*GetProcessesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get processes params

func (*GetProcessesParams) SetLimit

func (o *GetProcessesParams) SetLimit(limit *int64)

SetLimit adds the limit to the get processes params

func (*GetProcessesParams) SetOffset

func (o *GetProcessesParams) SetOffset(offset *int64)

SetOffset adds the offset to the get processes params

func (*GetProcessesParams) SetTimeout

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

SetTimeout adds the timeout to the get processes params

func (*GetProcessesParams) WithContext

WithContext adds the context to the get processes params

func (*GetProcessesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get processes params

func (*GetProcessesParams) WithLimit

func (o *GetProcessesParams) WithLimit(limit *int64) *GetProcessesParams

WithLimit adds the limit to the get processes params

func (*GetProcessesParams) WithOffset

func (o *GetProcessesParams) WithOffset(offset *int64) *GetProcessesParams

WithOffset adds the offset to the get processes params

func (*GetProcessesParams) WithTimeout

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

WithTimeout adds the timeout to the get processes params

func (*GetProcessesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetProcessesReader

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

GetProcessesReader is a Reader for the GetProcesses structure.

func (*GetProcessesReader) ReadResponse

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