script

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 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 AddGone

type AddGone struct {
}

AddGone describes a response with status code 410, with default header values.

Script creation is disabled

func NewAddGone

func NewAddGone() *AddGone

NewAddGone creates a AddGone with default headers values

func (*AddGone) Code

func (o *AddGone) Code() int

Code gets the status code for the add gone response

func (*AddGone) Error

func (o *AddGone) Error() string

func (*AddGone) IsClientError

func (o *AddGone) IsClientError() bool

IsClientError returns true when this add gone response has a 4xx status code

func (*AddGone) IsCode

func (o *AddGone) IsCode(code int) bool

IsCode returns true when this add gone response a status code equal to that given

func (*AddGone) IsRedirect

func (o *AddGone) IsRedirect() bool

IsRedirect returns true when this add gone response has a 3xx status code

func (*AddGone) IsServerError

func (o *AddGone) IsServerError() bool

IsServerError returns true when this add gone response has a 5xx status code

func (*AddGone) IsSuccess

func (o *AddGone) IsSuccess() bool

IsSuccess returns true when this add gone response has a 2xx status code

func (*AddGone) String

func (o *AddGone) String() string

type AddNoContent

type AddNoContent struct {
}

AddNoContent describes a response with status code 204, with default header values.

Script was added

func NewAddNoContent

func NewAddNoContent() *AddNoContent

NewAddNoContent creates a AddNoContent with default headers values

func (*AddNoContent) Code

func (o *AddNoContent) Code() int

Code gets the status code for the add no content response

func (*AddNoContent) Error

func (o *AddNoContent) Error() string

func (*AddNoContent) IsClientError

func (o *AddNoContent) IsClientError() bool

IsClientError returns true when this add no content response has a 4xx status code

func (*AddNoContent) IsCode

func (o *AddNoContent) IsCode(code int) bool

IsCode returns true when this add no content response a status code equal to that given

func (*AddNoContent) IsRedirect

func (o *AddNoContent) IsRedirect() bool

IsRedirect returns true when this add no content response has a 3xx status code

func (*AddNoContent) IsServerError

func (o *AddNoContent) IsServerError() bool

IsServerError returns true when this add no content response has a 5xx status code

func (*AddNoContent) IsSuccess

func (o *AddNoContent) IsSuccess() bool

IsSuccess returns true when this add no content response has a 2xx status code

func (*AddNoContent) String

func (o *AddNoContent) String() string

type AddParams

type AddParams struct {

	// Body.
	Body *models.ScriptXO

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

AddParams contains all the parameters to send to the API endpoint

for the add operation.

Typically these are written to a http.Request.

func NewAddParams

func NewAddParams() *AddParams

NewAddParams creates a new AddParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewAddParamsWithContext

func NewAddParamsWithContext(ctx context.Context) *AddParams

NewAddParamsWithContext creates a new AddParams object with the ability to set a context for a request.

func NewAddParamsWithHTTPClient

func NewAddParamsWithHTTPClient(client *http.Client) *AddParams

NewAddParamsWithHTTPClient creates a new AddParams object with the ability to set a custom HTTPClient for a request.

func NewAddParamsWithTimeout

func NewAddParamsWithTimeout(timeout time.Duration) *AddParams

NewAddParamsWithTimeout creates a new AddParams object with the ability to set a timeout on a request.

func (*AddParams) SetBody

func (o *AddParams) SetBody(body *models.ScriptXO)

SetBody adds the body to the add params

func (*AddParams) SetContext

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

SetContext adds the context to the add params

func (*AddParams) SetDefaults

func (o *AddParams) SetDefaults()

SetDefaults hydrates default values in the add params (not the query body).

All values with no default are reset to their zero value.

func (*AddParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add params

func (*AddParams) SetTimeout

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

SetTimeout adds the timeout to the add params

func (*AddParams) WithBody

func (o *AddParams) WithBody(body *models.ScriptXO) *AddParams

WithBody adds the body to the add params

func (*AddParams) WithContext

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

WithContext adds the context to the add params

func (*AddParams) WithDefaults

func (o *AddParams) WithDefaults() *AddParams

WithDefaults hydrates default values in the add params (not the query body).

All values with no default are reset to their zero value.

func (*AddParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add params

func (*AddParams) WithTimeout

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

WithTimeout adds the timeout to the add params

func (*AddParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddReader

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

AddReader is a Reader for the Add structure.

func (*AddReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BrowseOK

type BrowseOK struct {
	Payload []*models.ScriptXO
}

BrowseOK describes a response with status code 200, with default header values.

successful operation

func NewBrowseOK

func NewBrowseOK() *BrowseOK

NewBrowseOK creates a BrowseOK with default headers values

func (*BrowseOK) Code

func (o *BrowseOK) Code() int

Code gets the status code for the browse o k response

func (*BrowseOK) Error

func (o *BrowseOK) Error() string

func (*BrowseOK) GetPayload

func (o *BrowseOK) GetPayload() []*models.ScriptXO

func (*BrowseOK) IsClientError

func (o *BrowseOK) IsClientError() bool

IsClientError returns true when this browse o k response has a 4xx status code

func (*BrowseOK) IsCode

func (o *BrowseOK) IsCode(code int) bool

IsCode returns true when this browse o k response a status code equal to that given

func (*BrowseOK) IsRedirect

func (o *BrowseOK) IsRedirect() bool

IsRedirect returns true when this browse o k response has a 3xx status code

func (*BrowseOK) IsServerError

func (o *BrowseOK) IsServerError() bool

IsServerError returns true when this browse o k response has a 5xx status code

func (*BrowseOK) IsSuccess

func (o *BrowseOK) IsSuccess() bool

IsSuccess returns true when this browse o k response has a 2xx status code

func (*BrowseOK) String

func (o *BrowseOK) String() string

type BrowseParams

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

BrowseParams contains all the parameters to send to the API endpoint

for the browse operation.

Typically these are written to a http.Request.

func NewBrowseParams

func NewBrowseParams() *BrowseParams

NewBrowseParams creates a new BrowseParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewBrowseParamsWithContext

func NewBrowseParamsWithContext(ctx context.Context) *BrowseParams

NewBrowseParamsWithContext creates a new BrowseParams object with the ability to set a context for a request.

func NewBrowseParamsWithHTTPClient

func NewBrowseParamsWithHTTPClient(client *http.Client) *BrowseParams

NewBrowseParamsWithHTTPClient creates a new BrowseParams object with the ability to set a custom HTTPClient for a request.

func NewBrowseParamsWithTimeout

func NewBrowseParamsWithTimeout(timeout time.Duration) *BrowseParams

NewBrowseParamsWithTimeout creates a new BrowseParams object with the ability to set a timeout on a request.

func (*BrowseParams) SetContext

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

SetContext adds the context to the browse params

func (*BrowseParams) SetDefaults

func (o *BrowseParams) SetDefaults()

SetDefaults hydrates default values in the browse params (not the query body).

All values with no default are reset to their zero value.

func (*BrowseParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the browse params

func (*BrowseParams) SetTimeout

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

SetTimeout adds the timeout to the browse params

func (*BrowseParams) WithContext

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

WithContext adds the context to the browse params

func (*BrowseParams) WithDefaults

func (o *BrowseParams) WithDefaults() *BrowseParams

WithDefaults hydrates default values in the browse params (not the query body).

All values with no default are reset to their zero value.

func (*BrowseParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the browse params

func (*BrowseParams) WithTimeout

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

WithTimeout adds the timeout to the browse params

func (*BrowseParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type BrowseReader

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

BrowseReader is a Reader for the Browse structure.

func (*BrowseReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for script API

func (*Client) Add

func (a *Client) Add(params *AddParams, opts ...ClientOption) (*AddNoContent, error)

Add adds a new script

func (*Client) Browse

func (a *Client) Browse(params *BrowseParams, opts ...ClientOption) (*BrowseOK, error)

Browse lists all stored scripts

func (*Client) Delete1

func (a *Client) Delete1(params *Delete1Params, opts ...ClientOption) (*Delete1NoContent, error)

Delete1 deletes stored script by name

func (*Client) Edit

func (a *Client) Edit(params *EditParams, opts ...ClientOption) (*EditNoContent, error)

Edit updates stored script by name

func (*Client) Read1

func (a *Client) Read1(params *Read1Params, opts ...ClientOption) (*Read1OK, error)

Read1 reads stored script by name

func (*Client) Run1

func (a *Client) Run1(params *Run1Params, opts ...ClientOption) (*Run1OK, error)

Run1 runs stored script by name

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	Add(params *AddParams, opts ...ClientOption) (*AddNoContent, error)

	Browse(params *BrowseParams, opts ...ClientOption) (*BrowseOK, error)

	Delete1(params *Delete1Params, opts ...ClientOption) (*Delete1NoContent, error)

	Edit(params *EditParams, opts ...ClientOption) (*EditNoContent, error)

	Read1(params *Read1Params, opts ...ClientOption) (*Read1OK, error)

	Run1(params *Run1Params, opts ...ClientOption) (*Run1OK, 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 script API client.

type Delete1NoContent

type Delete1NoContent struct {
}

Delete1NoContent describes a response with status code 204, with default header values.

Script was deleted

func NewDelete1NoContent

func NewDelete1NoContent() *Delete1NoContent

NewDelete1NoContent creates a Delete1NoContent with default headers values

func (*Delete1NoContent) Code

func (o *Delete1NoContent) Code() int

Code gets the status code for the delete1 no content response

func (*Delete1NoContent) Error

func (o *Delete1NoContent) Error() string

func (*Delete1NoContent) IsClientError

func (o *Delete1NoContent) IsClientError() bool

IsClientError returns true when this delete1 no content response has a 4xx status code

func (*Delete1NoContent) IsCode

func (o *Delete1NoContent) IsCode(code int) bool

IsCode returns true when this delete1 no content response a status code equal to that given

func (*Delete1NoContent) IsRedirect

func (o *Delete1NoContent) IsRedirect() bool

IsRedirect returns true when this delete1 no content response has a 3xx status code

func (*Delete1NoContent) IsServerError

func (o *Delete1NoContent) IsServerError() bool

IsServerError returns true when this delete1 no content response has a 5xx status code

func (*Delete1NoContent) IsSuccess

func (o *Delete1NoContent) IsSuccess() bool

IsSuccess returns true when this delete1 no content response has a 2xx status code

func (*Delete1NoContent) String

func (o *Delete1NoContent) String() string

type Delete1NotFound

type Delete1NotFound struct {
}

Delete1NotFound describes a response with status code 404, with default header values.

No script with the specified name

func NewDelete1NotFound

func NewDelete1NotFound() *Delete1NotFound

NewDelete1NotFound creates a Delete1NotFound with default headers values

func (*Delete1NotFound) Code

func (o *Delete1NotFound) Code() int

Code gets the status code for the delete1 not found response

func (*Delete1NotFound) Error

func (o *Delete1NotFound) Error() string

func (*Delete1NotFound) IsClientError

func (o *Delete1NotFound) IsClientError() bool

IsClientError returns true when this delete1 not found response has a 4xx status code

func (*Delete1NotFound) IsCode

func (o *Delete1NotFound) IsCode(code int) bool

IsCode returns true when this delete1 not found response a status code equal to that given

func (*Delete1NotFound) IsRedirect

func (o *Delete1NotFound) IsRedirect() bool

IsRedirect returns true when this delete1 not found response has a 3xx status code

func (*Delete1NotFound) IsServerError

func (o *Delete1NotFound) IsServerError() bool

IsServerError returns true when this delete1 not found response has a 5xx status code

func (*Delete1NotFound) IsSuccess

func (o *Delete1NotFound) IsSuccess() bool

IsSuccess returns true when this delete1 not found response has a 2xx status code

func (*Delete1NotFound) String

func (o *Delete1NotFound) String() string

type Delete1Params

type Delete1Params struct {

	// Name.
	Name string

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

Delete1Params contains all the parameters to send to the API endpoint

for the delete 1 operation.

Typically these are written to a http.Request.

func NewDelete1Params

func NewDelete1Params() *Delete1Params

NewDelete1Params creates a new Delete1Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDelete1ParamsWithContext

func NewDelete1ParamsWithContext(ctx context.Context) *Delete1Params

NewDelete1ParamsWithContext creates a new Delete1Params object with the ability to set a context for a request.

func NewDelete1ParamsWithHTTPClient

func NewDelete1ParamsWithHTTPClient(client *http.Client) *Delete1Params

NewDelete1ParamsWithHTTPClient creates a new Delete1Params object with the ability to set a custom HTTPClient for a request.

func NewDelete1ParamsWithTimeout

func NewDelete1ParamsWithTimeout(timeout time.Duration) *Delete1Params

NewDelete1ParamsWithTimeout creates a new Delete1Params object with the ability to set a timeout on a request.

func (*Delete1Params) SetContext

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

SetContext adds the context to the delete 1 params

func (*Delete1Params) SetDefaults

func (o *Delete1Params) SetDefaults()

SetDefaults hydrates default values in the delete 1 params (not the query body).

All values with no default are reset to their zero value.

func (*Delete1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete 1 params

func (*Delete1Params) SetName

func (o *Delete1Params) SetName(name string)

SetName adds the name to the delete 1 params

func (*Delete1Params) SetTimeout

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

SetTimeout adds the timeout to the delete 1 params

func (*Delete1Params) WithContext

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

WithContext adds the context to the delete 1 params

func (*Delete1Params) WithDefaults

func (o *Delete1Params) WithDefaults() *Delete1Params

WithDefaults hydrates default values in the delete 1 params (not the query body).

All values with no default are reset to their zero value.

func (*Delete1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete 1 params

func (*Delete1Params) WithName

func (o *Delete1Params) WithName(name string) *Delete1Params

WithName adds the name to the delete 1 params

func (*Delete1Params) WithTimeout

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

WithTimeout adds the timeout to the delete 1 params

func (*Delete1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type Delete1Reader

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

Delete1Reader is a Reader for the Delete1 structure.

func (*Delete1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EditGone

type EditGone struct {
}

EditGone describes a response with status code 410, with default header values.

Script updating is disabled

func NewEditGone

func NewEditGone() *EditGone

NewEditGone creates a EditGone with default headers values

func (*EditGone) Code

func (o *EditGone) Code() int

Code gets the status code for the edit gone response

func (*EditGone) Error

func (o *EditGone) Error() string

func (*EditGone) IsClientError

func (o *EditGone) IsClientError() bool

IsClientError returns true when this edit gone response has a 4xx status code

func (*EditGone) IsCode

func (o *EditGone) IsCode(code int) bool

IsCode returns true when this edit gone response a status code equal to that given

func (*EditGone) IsRedirect

func (o *EditGone) IsRedirect() bool

IsRedirect returns true when this edit gone response has a 3xx status code

func (*EditGone) IsServerError

func (o *EditGone) IsServerError() bool

IsServerError returns true when this edit gone response has a 5xx status code

func (*EditGone) IsSuccess

func (o *EditGone) IsSuccess() bool

IsSuccess returns true when this edit gone response has a 2xx status code

func (*EditGone) String

func (o *EditGone) String() string

type EditNoContent

type EditNoContent struct {
}

EditNoContent describes a response with status code 204, with default header values.

Script was updated

func NewEditNoContent

func NewEditNoContent() *EditNoContent

NewEditNoContent creates a EditNoContent with default headers values

func (*EditNoContent) Code

func (o *EditNoContent) Code() int

Code gets the status code for the edit no content response

func (*EditNoContent) Error

func (o *EditNoContent) Error() string

func (*EditNoContent) IsClientError

func (o *EditNoContent) IsClientError() bool

IsClientError returns true when this edit no content response has a 4xx status code

func (*EditNoContent) IsCode

func (o *EditNoContent) IsCode(code int) bool

IsCode returns true when this edit no content response a status code equal to that given

func (*EditNoContent) IsRedirect

func (o *EditNoContent) IsRedirect() bool

IsRedirect returns true when this edit no content response has a 3xx status code

func (*EditNoContent) IsServerError

func (o *EditNoContent) IsServerError() bool

IsServerError returns true when this edit no content response has a 5xx status code

func (*EditNoContent) IsSuccess

func (o *EditNoContent) IsSuccess() bool

IsSuccess returns true when this edit no content response has a 2xx status code

func (*EditNoContent) String

func (o *EditNoContent) String() string

type EditNotFound

type EditNotFound struct {
}

EditNotFound describes a response with status code 404, with default header values.

No script with the specified name

func NewEditNotFound

func NewEditNotFound() *EditNotFound

NewEditNotFound creates a EditNotFound with default headers values

func (*EditNotFound) Code

func (o *EditNotFound) Code() int

Code gets the status code for the edit not found response

func (*EditNotFound) Error

func (o *EditNotFound) Error() string

func (*EditNotFound) IsClientError

func (o *EditNotFound) IsClientError() bool

IsClientError returns true when this edit not found response has a 4xx status code

func (*EditNotFound) IsCode

func (o *EditNotFound) IsCode(code int) bool

IsCode returns true when this edit not found response a status code equal to that given

func (*EditNotFound) IsRedirect

func (o *EditNotFound) IsRedirect() bool

IsRedirect returns true when this edit not found response has a 3xx status code

func (*EditNotFound) IsServerError

func (o *EditNotFound) IsServerError() bool

IsServerError returns true when this edit not found response has a 5xx status code

func (*EditNotFound) IsSuccess

func (o *EditNotFound) IsSuccess() bool

IsSuccess returns true when this edit not found response has a 2xx status code

func (*EditNotFound) String

func (o *EditNotFound) String() string

type EditParams

type EditParams struct {

	// Body.
	Body *models.ScriptXO

	// Name.
	Name string

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

EditParams contains all the parameters to send to the API endpoint

for the edit operation.

Typically these are written to a http.Request.

func NewEditParams

func NewEditParams() *EditParams

NewEditParams creates a new EditParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewEditParamsWithContext

func NewEditParamsWithContext(ctx context.Context) *EditParams

NewEditParamsWithContext creates a new EditParams object with the ability to set a context for a request.

func NewEditParamsWithHTTPClient

func NewEditParamsWithHTTPClient(client *http.Client) *EditParams

NewEditParamsWithHTTPClient creates a new EditParams object with the ability to set a custom HTTPClient for a request.

func NewEditParamsWithTimeout

func NewEditParamsWithTimeout(timeout time.Duration) *EditParams

NewEditParamsWithTimeout creates a new EditParams object with the ability to set a timeout on a request.

func (*EditParams) SetBody

func (o *EditParams) SetBody(body *models.ScriptXO)

SetBody adds the body to the edit params

func (*EditParams) SetContext

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

SetContext adds the context to the edit params

func (*EditParams) SetDefaults

func (o *EditParams) SetDefaults()

SetDefaults hydrates default values in the edit params (not the query body).

All values with no default are reset to their zero value.

func (*EditParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the edit params

func (*EditParams) SetName

func (o *EditParams) SetName(name string)

SetName adds the name to the edit params

func (*EditParams) SetTimeout

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

SetTimeout adds the timeout to the edit params

func (*EditParams) WithBody

func (o *EditParams) WithBody(body *models.ScriptXO) *EditParams

WithBody adds the body to the edit params

func (*EditParams) WithContext

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

WithContext adds the context to the edit params

func (*EditParams) WithDefaults

func (o *EditParams) WithDefaults() *EditParams

WithDefaults hydrates default values in the edit params (not the query body).

All values with no default are reset to their zero value.

func (*EditParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the edit params

func (*EditParams) WithName

func (o *EditParams) WithName(name string) *EditParams

WithName adds the name to the edit params

func (*EditParams) WithTimeout

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

WithTimeout adds the timeout to the edit params

func (*EditParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EditReader

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

EditReader is a Reader for the Edit structure.

func (*EditReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Read1NotFound

type Read1NotFound struct {
}

Read1NotFound describes a response with status code 404, with default header values.

No script with the specified name

func NewRead1NotFound

func NewRead1NotFound() *Read1NotFound

NewRead1NotFound creates a Read1NotFound with default headers values

func (*Read1NotFound) Code

func (o *Read1NotFound) Code() int

Code gets the status code for the read1 not found response

func (*Read1NotFound) Error

func (o *Read1NotFound) Error() string

func (*Read1NotFound) IsClientError

func (o *Read1NotFound) IsClientError() bool

IsClientError returns true when this read1 not found response has a 4xx status code

func (*Read1NotFound) IsCode

func (o *Read1NotFound) IsCode(code int) bool

IsCode returns true when this read1 not found response a status code equal to that given

func (*Read1NotFound) IsRedirect

func (o *Read1NotFound) IsRedirect() bool

IsRedirect returns true when this read1 not found response has a 3xx status code

func (*Read1NotFound) IsServerError

func (o *Read1NotFound) IsServerError() bool

IsServerError returns true when this read1 not found response has a 5xx status code

func (*Read1NotFound) IsSuccess

func (o *Read1NotFound) IsSuccess() bool

IsSuccess returns true when this read1 not found response has a 2xx status code

func (*Read1NotFound) String

func (o *Read1NotFound) String() string

type Read1OK

type Read1OK struct {
	Payload *models.ScriptXO
}

Read1OK describes a response with status code 200, with default header values.

successful operation

func NewRead1OK

func NewRead1OK() *Read1OK

NewRead1OK creates a Read1OK with default headers values

func (*Read1OK) Code

func (o *Read1OK) Code() int

Code gets the status code for the read1 o k response

func (*Read1OK) Error

func (o *Read1OK) Error() string

func (*Read1OK) GetPayload

func (o *Read1OK) GetPayload() *models.ScriptXO

func (*Read1OK) IsClientError

func (o *Read1OK) IsClientError() bool

IsClientError returns true when this read1 o k response has a 4xx status code

func (*Read1OK) IsCode

func (o *Read1OK) IsCode(code int) bool

IsCode returns true when this read1 o k response a status code equal to that given

func (*Read1OK) IsRedirect

func (o *Read1OK) IsRedirect() bool

IsRedirect returns true when this read1 o k response has a 3xx status code

func (*Read1OK) IsServerError

func (o *Read1OK) IsServerError() bool

IsServerError returns true when this read1 o k response has a 5xx status code

func (*Read1OK) IsSuccess

func (o *Read1OK) IsSuccess() bool

IsSuccess returns true when this read1 o k response has a 2xx status code

func (*Read1OK) String

func (o *Read1OK) String() string

type Read1Params

type Read1Params struct {

	// Name.
	Name string

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

Read1Params contains all the parameters to send to the API endpoint

for the read 1 operation.

Typically these are written to a http.Request.

func NewRead1Params

func NewRead1Params() *Read1Params

NewRead1Params creates a new Read1Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRead1ParamsWithContext

func NewRead1ParamsWithContext(ctx context.Context) *Read1Params

NewRead1ParamsWithContext creates a new Read1Params object with the ability to set a context for a request.

func NewRead1ParamsWithHTTPClient

func NewRead1ParamsWithHTTPClient(client *http.Client) *Read1Params

NewRead1ParamsWithHTTPClient creates a new Read1Params object with the ability to set a custom HTTPClient for a request.

func NewRead1ParamsWithTimeout

func NewRead1ParamsWithTimeout(timeout time.Duration) *Read1Params

NewRead1ParamsWithTimeout creates a new Read1Params object with the ability to set a timeout on a request.

func (*Read1Params) SetContext

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

SetContext adds the context to the read 1 params

func (*Read1Params) SetDefaults

func (o *Read1Params) SetDefaults()

SetDefaults hydrates default values in the read 1 params (not the query body).

All values with no default are reset to their zero value.

func (*Read1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read 1 params

func (*Read1Params) SetName

func (o *Read1Params) SetName(name string)

SetName adds the name to the read 1 params

func (*Read1Params) SetTimeout

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

SetTimeout adds the timeout to the read 1 params

func (*Read1Params) WithContext

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

WithContext adds the context to the read 1 params

func (*Read1Params) WithDefaults

func (o *Read1Params) WithDefaults() *Read1Params

WithDefaults hydrates default values in the read 1 params (not the query body).

All values with no default are reset to their zero value.

func (*Read1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read 1 params

func (*Read1Params) WithName

func (o *Read1Params) WithName(name string) *Read1Params

WithName adds the name to the read 1 params

func (*Read1Params) WithTimeout

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

WithTimeout adds the timeout to the read 1 params

func (*Read1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type Read1Reader

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

Read1Reader is a Reader for the Read1 structure.

func (*Read1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Run1InternalServerError

type Run1InternalServerError struct {
}

Run1InternalServerError describes a response with status code 500, with default header values.

Script execution failed with exception

func NewRun1InternalServerError

func NewRun1InternalServerError() *Run1InternalServerError

NewRun1InternalServerError creates a Run1InternalServerError with default headers values

func (*Run1InternalServerError) Code

func (o *Run1InternalServerError) Code() int

Code gets the status code for the run1 internal server error response

func (*Run1InternalServerError) Error

func (o *Run1InternalServerError) Error() string

func (*Run1InternalServerError) IsClientError

func (o *Run1InternalServerError) IsClientError() bool

IsClientError returns true when this run1 internal server error response has a 4xx status code

func (*Run1InternalServerError) IsCode

func (o *Run1InternalServerError) IsCode(code int) bool

IsCode returns true when this run1 internal server error response a status code equal to that given

func (*Run1InternalServerError) IsRedirect

func (o *Run1InternalServerError) IsRedirect() bool

IsRedirect returns true when this run1 internal server error response has a 3xx status code

func (*Run1InternalServerError) IsServerError

func (o *Run1InternalServerError) IsServerError() bool

IsServerError returns true when this run1 internal server error response has a 5xx status code

func (*Run1InternalServerError) IsSuccess

func (o *Run1InternalServerError) IsSuccess() bool

IsSuccess returns true when this run1 internal server error response has a 2xx status code

func (*Run1InternalServerError) String

func (o *Run1InternalServerError) String() string

type Run1NotFound

type Run1NotFound struct {
}

Run1NotFound describes a response with status code 404, with default header values.

No script with the specified name

func NewRun1NotFound

func NewRun1NotFound() *Run1NotFound

NewRun1NotFound creates a Run1NotFound with default headers values

func (*Run1NotFound) Code

func (o *Run1NotFound) Code() int

Code gets the status code for the run1 not found response

func (*Run1NotFound) Error

func (o *Run1NotFound) Error() string

func (*Run1NotFound) IsClientError

func (o *Run1NotFound) IsClientError() bool

IsClientError returns true when this run1 not found response has a 4xx status code

func (*Run1NotFound) IsCode

func (o *Run1NotFound) IsCode(code int) bool

IsCode returns true when this run1 not found response a status code equal to that given

func (*Run1NotFound) IsRedirect

func (o *Run1NotFound) IsRedirect() bool

IsRedirect returns true when this run1 not found response has a 3xx status code

func (*Run1NotFound) IsServerError

func (o *Run1NotFound) IsServerError() bool

IsServerError returns true when this run1 not found response has a 5xx status code

func (*Run1NotFound) IsSuccess

func (o *Run1NotFound) IsSuccess() bool

IsSuccess returns true when this run1 not found response has a 2xx status code

func (*Run1NotFound) String

func (o *Run1NotFound) String() string

type Run1OK

type Run1OK struct {
	Payload *models.ScriptResultXO
}

Run1OK describes a response with status code 200, with default header values.

successful operation

func NewRun1OK

func NewRun1OK() *Run1OK

NewRun1OK creates a Run1OK with default headers values

func (*Run1OK) Code

func (o *Run1OK) Code() int

Code gets the status code for the run1 o k response

func (*Run1OK) Error

func (o *Run1OK) Error() string

func (*Run1OK) GetPayload

func (o *Run1OK) GetPayload() *models.ScriptResultXO

func (*Run1OK) IsClientError

func (o *Run1OK) IsClientError() bool

IsClientError returns true when this run1 o k response has a 4xx status code

func (*Run1OK) IsCode

func (o *Run1OK) IsCode(code int) bool

IsCode returns true when this run1 o k response a status code equal to that given

func (*Run1OK) IsRedirect

func (o *Run1OK) IsRedirect() bool

IsRedirect returns true when this run1 o k response has a 3xx status code

func (*Run1OK) IsServerError

func (o *Run1OK) IsServerError() bool

IsServerError returns true when this run1 o k response has a 5xx status code

func (*Run1OK) IsSuccess

func (o *Run1OK) IsSuccess() bool

IsSuccess returns true when this run1 o k response has a 2xx status code

func (*Run1OK) String

func (o *Run1OK) String() string

type Run1Params

type Run1Params struct {

	// Body.
	Body string

	// Name.
	Name string

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

Run1Params contains all the parameters to send to the API endpoint

for the run 1 operation.

Typically these are written to a http.Request.

func NewRun1Params

func NewRun1Params() *Run1Params

NewRun1Params creates a new Run1Params object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewRun1ParamsWithContext

func NewRun1ParamsWithContext(ctx context.Context) *Run1Params

NewRun1ParamsWithContext creates a new Run1Params object with the ability to set a context for a request.

func NewRun1ParamsWithHTTPClient

func NewRun1ParamsWithHTTPClient(client *http.Client) *Run1Params

NewRun1ParamsWithHTTPClient creates a new Run1Params object with the ability to set a custom HTTPClient for a request.

func NewRun1ParamsWithTimeout

func NewRun1ParamsWithTimeout(timeout time.Duration) *Run1Params

NewRun1ParamsWithTimeout creates a new Run1Params object with the ability to set a timeout on a request.

func (*Run1Params) SetBody

func (o *Run1Params) SetBody(body string)

SetBody adds the body to the run 1 params

func (*Run1Params) SetContext

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

SetContext adds the context to the run 1 params

func (*Run1Params) SetDefaults

func (o *Run1Params) SetDefaults()

SetDefaults hydrates default values in the run 1 params (not the query body).

All values with no default are reset to their zero value.

func (*Run1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the run 1 params

func (*Run1Params) SetName

func (o *Run1Params) SetName(name string)

SetName adds the name to the run 1 params

func (*Run1Params) SetTimeout

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

SetTimeout adds the timeout to the run 1 params

func (*Run1Params) WithBody

func (o *Run1Params) WithBody(body string) *Run1Params

WithBody adds the body to the run 1 params

func (*Run1Params) WithContext

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

WithContext adds the context to the run 1 params

func (*Run1Params) WithDefaults

func (o *Run1Params) WithDefaults() *Run1Params

WithDefaults hydrates default values in the run 1 params (not the query body).

All values with no default are reset to their zero value.

func (*Run1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the run 1 params

func (*Run1Params) WithName

func (o *Run1Params) WithName(name string) *Run1Params

WithName adds the name to the run 1 params

func (*Run1Params) WithTimeout

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

WithTimeout adds the timeout to the run 1 params

func (*Run1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type Run1Reader

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

Run1Reader is a Reader for the Run1 structure.

func (*Run1Reader) ReadResponse

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