api

package
v0.0.0-...-fbf1687 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type CancelExecutionJobBadRequest

type CancelExecutionJobBadRequest Error

func (*CancelExecutionJobBadRequest) Decode

Decode decodes CancelExecutionJobBadRequest from json.

func (*CancelExecutionJobBadRequest) Encode

func (s *CancelExecutionJobBadRequest) Encode(e *jx.Encoder)

Encode encodes CancelExecutionJobBadRequest as json.

func (*CancelExecutionJobBadRequest) MarshalJSON

func (s *CancelExecutionJobBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CancelExecutionJobBadRequest) UnmarshalJSON

func (s *CancelExecutionJobBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CancelExecutionJobForbidden

type CancelExecutionJobForbidden Error

func (*CancelExecutionJobForbidden) Decode

Decode decodes CancelExecutionJobForbidden from json.

func (*CancelExecutionJobForbidden) Encode

func (s *CancelExecutionJobForbidden) Encode(e *jx.Encoder)

Encode encodes CancelExecutionJobForbidden as json.

func (*CancelExecutionJobForbidden) MarshalJSON

func (s *CancelExecutionJobForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CancelExecutionJobForbidden) UnmarshalJSON

func (s *CancelExecutionJobForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CancelExecutionJobInternalServerError

type CancelExecutionJobInternalServerError Error

func (*CancelExecutionJobInternalServerError) Decode

Decode decodes CancelExecutionJobInternalServerError from json.

func (*CancelExecutionJobInternalServerError) Encode

Encode encodes CancelExecutionJobInternalServerError as json.

func (*CancelExecutionJobInternalServerError) MarshalJSON

func (s *CancelExecutionJobInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CancelExecutionJobInternalServerError) UnmarshalJSON

func (s *CancelExecutionJobInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CancelExecutionJobOK

type CancelExecutionJobOK struct {
	Message string `json:"message"`
}

func (*CancelExecutionJobOK) Decode

func (s *CancelExecutionJobOK) Decode(d *jx.Decoder) error

Decode decodes CancelExecutionJobOK from json.

func (*CancelExecutionJobOK) Encode

func (s *CancelExecutionJobOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CancelExecutionJobOK) GetMessage

func (s *CancelExecutionJobOK) GetMessage() string

GetMessage returns the value of Message.

func (*CancelExecutionJobOK) MarshalJSON

func (s *CancelExecutionJobOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CancelExecutionJobOK) SetMessage

func (s *CancelExecutionJobOK) SetMessage(val string)

SetMessage sets the value of Message.

func (*CancelExecutionJobOK) UnmarshalJSON

func (s *CancelExecutionJobOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CancelExecutionJobParams

type CancelExecutionJobParams struct {
	JobId int64
	// Authentication token.
	XAuthToken OptString
}

CancelExecutionJobParams is parameters of cancelExecutionJob operation.

type CancelExecutionJobRes

type CancelExecutionJobRes interface {
	// contains filtered or unexported methods
}

type Client

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

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) CancelExecutionJob

func (c *Client) CancelExecutionJob(ctx context.Context, params CancelExecutionJobParams) (CancelExecutionJobRes, error)

CancelExecutionJob invokes cancelExecutionJob operation.

Cancel Execution Job.

PUT /executions/jobs/{JobId}

func (*Client) CreateSandbox

func (c *Client) CreateSandbox(ctx context.Context, request OptCreateSandbox, params CreateSandboxParams) (CreateSandboxRes, error)

CreateSandbox invokes createSandbox operation.

Create a sandbox.

POST /sandbox

func (*Client) DeleteExecutionJob

func (c *Client) DeleteExecutionJob(ctx context.Context, params DeleteExecutionJobParams) (DeleteExecutionJobRes, error)

DeleteExecutionJob invokes deleteExecutionJob operation.

Delete execution job.

DELETE /executions/jobs/{JobId}

func (*Client) Execute

func (c *Client) Execute(ctx context.Context, request *ExecutionRequest, params ExecuteParams) (ExecuteRes, error)

Execute invokes execute operation.

Execute a script.

POST /executions/execute

func (*Client) FetchFlake

func (c *Client) FetchFlake(ctx context.Context, params FetchFlakeParams) (FetchFlakeRes, error)

FetchFlake invokes fetchFlake operation.

Fetches flake of a given job.

GET /flake/{jobId}

func (*Client) FetchLanguagePackages

func (c *Client) FetchLanguagePackages(ctx context.Context, params FetchLanguagePackagesParams) (FetchLanguagePackagesRes, error)

FetchLanguagePackages invokes FetchLanguagePackages operation.

Initialize the search results content with a default set of language specific packages.

GET /fetch/language

func (*Client) FetchSystemPackages

func (c *Client) FetchSystemPackages(ctx context.Context, params FetchSystemPackagesParams) (FetchSystemPackagesRes, error)

FetchSystemPackages invokes FetchSystemPackages operation.

Initialize the search results content with a default set of system packages.

GET /fetch/system

func (*Client) GetAllExecutionJobs

func (c *Client) GetAllExecutionJobs(ctx context.Context, params GetAllExecutionJobsParams) (GetAllExecutionJobsRes, error)

GetAllExecutionJobs invokes getAllExecutionJobs operation.

Get all execution jobs.

GET /jobs/execution

func (*Client) GetAllExecutions

func (c *Client) GetAllExecutions(ctx context.Context, params GetAllExecutionsParams) (GetAllExecutionsRes, error)

GetAllExecutions invokes getAllExecutions operation.

Get all executions.

GET /executions

func (*Client) GetAllLanguageVersions

func (c *Client) GetAllLanguageVersions(ctx context.Context, params GetAllLanguageVersionsParams) (GetAllLanguageVersionsRes, error)

GetAllLanguageVersions invokes getAllLanguageVersions operation.

Retrieve a list of all language versions from the database.

GET /language-versions

func (*Client) GetAllLanguages

func (c *Client) GetAllLanguages(ctx context.Context, params GetAllLanguagesParams) (GetAllLanguagesRes, error)

GetAllLanguages invokes getAllLanguages operation.

Retrieve a list of all languages from the database.

GET /languages

func (*Client) GetAllVersions

func (c *Client) GetAllVersions(ctx context.Context, params GetAllVersionsParams) (GetAllVersionsRes, error)

GetAllVersions invokes getAllVersions operation.

Retrieve a list of all language versions from the database.

GET /languages/{id}/versions

func (*Client) GetExecutionConfig

func (c *Client) GetExecutionConfig(ctx context.Context, params GetExecutionConfigParams) (GetExecutionConfigRes, error)

GetExecutionConfig invokes getExecutionConfig operation.

Get execution config.

GET /execution/config

func (*Client) GetExecutionJobById

func (c *Client) GetExecutionJobById(ctx context.Context, params GetExecutionJobByIdParams) (GetExecutionJobByIdRes, error)

GetExecutionJobById invokes getExecutionJobById operation.

Get execution job.

GET /executions/jobs/{JobId}

func (*Client) GetExecutionResultById

func (c *Client) GetExecutionResultById(ctx context.Context, params GetExecutionResultByIdParams) (GetExecutionResultByIdRes, error)

GetExecutionResultById invokes getExecutionResultById operation.

Get execution result by id.

GET /executions/{execId}

func (*Client) GetExecutionsForJob

func (c *Client) GetExecutionsForJob(ctx context.Context, params GetExecutionsForJobParams) (GetExecutionsForJobRes, error)

GetExecutionsForJob invokes getExecutionsForJob operation.

Get executions of given job.

GET /jobs/{JobId}/executions

func (*Client) GetLanguageById

func (c *Client) GetLanguageById(ctx context.Context, params GetLanguageByIdParams) (GetLanguageByIdRes, error)

GetLanguageById invokes getLanguageById operation.

Retrieve a language entry from the database using its ID.

GET /languages/{id}

func (*Client) GetLanguageVersionById

func (c *Client) GetLanguageVersionById(ctx context.Context, params GetLanguageVersionByIdParams) (GetLanguageVersionByIdRes, error)

GetLanguageVersionById invokes getLanguageVersionById operation.

Retrieve a language version entry from the database using its ID.

GET /language-versions/{id}

func (*Client) GetSandbox

func (c *Client) GetSandbox(ctx context.Context, params GetSandboxParams) (GetSandboxRes, error)

GetSandbox invokes getSandbox operation.

Retrieve Sandbox details.

GET /sandbox/{sandboxId}

func (*Client) GetVersion

func (c *Client) GetVersion(ctx context.Context, params GetVersionParams) (GetVersionRes, error)

GetVersion invokes getVersion operation.

Get version.

GET /version

func (*Client) Health

func (c *Client) Health(ctx context.Context) error

Health invokes health operation.

Health Check.

GET /health

func (*Client) PackagesExist

func (c *Client) PackagesExist(ctx context.Context, request *PackageExistRequest, params PackagesExistParams) (PackagesExistRes, error)

PackagesExist invokes PackagesExist operation.

Verify the package list is available for the language version while switching between language versions.

POST /packages/exist

func (*Client) SearchLanguagePackages

func (c *Client) SearchLanguagePackages(ctx context.Context, params SearchLanguagePackagesParams) (SearchLanguagePackagesRes, error)

SearchLanguagePackages invokes SearchLanguagePackages operation.

Search for language specific packages.

GET /search/language

func (*Client) SearchSystemPackages

func (c *Client) SearchSystemPackages(ctx context.Context, params SearchSystemPackagesParams) (SearchSystemPackagesRes, error)

SearchSystemPackages invokes SearchSystemPackages operation.

Search for system packages.

GET /search/system

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type CreateSandbox

type CreateSandbox struct {
	// Nix flake configuration for the sandbox environment.
	NixFlake OptString `json:"nix_flake"`
	// List of programming languages required in the sandbox.
	Languages []string `json:"languages"`
	// List of system-level dependencies needed in the sandbox.
	SystemDependencies []string `json:"system_dependencies"`
	// List of services to be added to the sandbox.
	Services []string `json:"services"`
}

Configuration for a sandbox environment request. Ref: #/components/schemas/CreateSandbox

func (*CreateSandbox) Decode

func (s *CreateSandbox) Decode(d *jx.Decoder) error

Decode decodes CreateSandbox from json.

func (*CreateSandbox) Encode

func (s *CreateSandbox) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateSandbox) GetLanguages

func (s *CreateSandbox) GetLanguages() []string

GetLanguages returns the value of Languages.

func (*CreateSandbox) GetNixFlake

func (s *CreateSandbox) GetNixFlake() OptString

GetNixFlake returns the value of NixFlake.

func (*CreateSandbox) GetServices

func (s *CreateSandbox) GetServices() []string

GetServices returns the value of Services.

func (*CreateSandbox) GetSystemDependencies

func (s *CreateSandbox) GetSystemDependencies() []string

GetSystemDependencies returns the value of SystemDependencies.

func (*CreateSandbox) MarshalJSON

func (s *CreateSandbox) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSandbox) SetLanguages

func (s *CreateSandbox) SetLanguages(val []string)

SetLanguages sets the value of Languages.

func (*CreateSandbox) SetNixFlake

func (s *CreateSandbox) SetNixFlake(val OptString)

SetNixFlake sets the value of NixFlake.

func (*CreateSandbox) SetServices

func (s *CreateSandbox) SetServices(val []string)

SetServices sets the value of Services.

func (*CreateSandbox) SetSystemDependencies

func (s *CreateSandbox) SetSystemDependencies(val []string)

SetSystemDependencies sets the value of SystemDependencies.

func (*CreateSandbox) UnmarshalJSON

func (s *CreateSandbox) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSandboxBadRequest

type CreateSandboxBadRequest Error

func (*CreateSandboxBadRequest) Decode

func (s *CreateSandboxBadRequest) Decode(d *jx.Decoder) error

Decode decodes CreateSandboxBadRequest from json.

func (*CreateSandboxBadRequest) Encode

func (s *CreateSandboxBadRequest) Encode(e *jx.Encoder)

Encode encodes CreateSandboxBadRequest as json.

func (*CreateSandboxBadRequest) MarshalJSON

func (s *CreateSandboxBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSandboxBadRequest) UnmarshalJSON

func (s *CreateSandboxBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSandboxForbidden

type CreateSandboxForbidden Error

func (*CreateSandboxForbidden) Decode

func (s *CreateSandboxForbidden) Decode(d *jx.Decoder) error

Decode decodes CreateSandboxForbidden from json.

func (*CreateSandboxForbidden) Encode

func (s *CreateSandboxForbidden) Encode(e *jx.Encoder)

Encode encodes CreateSandboxForbidden as json.

func (*CreateSandboxForbidden) MarshalJSON

func (s *CreateSandboxForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSandboxForbidden) UnmarshalJSON

func (s *CreateSandboxForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSandboxInternalServerError

type CreateSandboxInternalServerError Error

func (*CreateSandboxInternalServerError) Decode

Decode decodes CreateSandboxInternalServerError from json.

func (*CreateSandboxInternalServerError) Encode

Encode encodes CreateSandboxInternalServerError as json.

func (*CreateSandboxInternalServerError) MarshalJSON

func (s *CreateSandboxInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSandboxInternalServerError) UnmarshalJSON

func (s *CreateSandboxInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSandboxOK

type CreateSandboxOK struct {
	Result           string    `json:"result"`
	SandboxId        int64     `json:"sandboxId"`
	SandboxStatusSSE OptString `json:"sandboxStatusSSE"`
	SandboxStatusWS  OptString `json:"sandboxStatusWS"`
}

func (*CreateSandboxOK) Decode

func (s *CreateSandboxOK) Decode(d *jx.Decoder) error

Decode decodes CreateSandboxOK from json.

func (*CreateSandboxOK) Encode

func (s *CreateSandboxOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateSandboxOK) GetResult

func (s *CreateSandboxOK) GetResult() string

GetResult returns the value of Result.

func (*CreateSandboxOK) GetSandboxId

func (s *CreateSandboxOK) GetSandboxId() int64

GetSandboxId returns the value of SandboxId.

func (*CreateSandboxOK) GetSandboxStatusSSE

func (s *CreateSandboxOK) GetSandboxStatusSSE() OptString

GetSandboxStatusSSE returns the value of SandboxStatusSSE.

func (*CreateSandboxOK) GetSandboxStatusWS

func (s *CreateSandboxOK) GetSandboxStatusWS() OptString

GetSandboxStatusWS returns the value of SandboxStatusWS.

func (*CreateSandboxOK) MarshalJSON

func (s *CreateSandboxOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSandboxOK) SetResult

func (s *CreateSandboxOK) SetResult(val string)

SetResult sets the value of Result.

func (*CreateSandboxOK) SetSandboxId

func (s *CreateSandboxOK) SetSandboxId(val int64)

SetSandboxId sets the value of SandboxId.

func (*CreateSandboxOK) SetSandboxStatusSSE

func (s *CreateSandboxOK) SetSandboxStatusSSE(val OptString)

SetSandboxStatusSSE sets the value of SandboxStatusSSE.

func (*CreateSandboxOK) SetSandboxStatusWS

func (s *CreateSandboxOK) SetSandboxStatusWS(val OptString)

SetSandboxStatusWS sets the value of SandboxStatusWS.

func (*CreateSandboxOK) UnmarshalJSON

func (s *CreateSandboxOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateSandboxParams

type CreateSandboxParams struct {
	// Authentication token.
	XAuthToken OptString
}

CreateSandboxParams is parameters of createSandbox operation.

type CreateSandboxRes

type CreateSandboxRes interface {
	// contains filtered or unexported methods
}

type DeleteExecutionJobBadRequest

type DeleteExecutionJobBadRequest Error

func (*DeleteExecutionJobBadRequest) Decode

Decode decodes DeleteExecutionJobBadRequest from json.

func (*DeleteExecutionJobBadRequest) Encode

func (s *DeleteExecutionJobBadRequest) Encode(e *jx.Encoder)

Encode encodes DeleteExecutionJobBadRequest as json.

func (*DeleteExecutionJobBadRequest) MarshalJSON

func (s *DeleteExecutionJobBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteExecutionJobBadRequest) UnmarshalJSON

func (s *DeleteExecutionJobBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteExecutionJobForbidden

type DeleteExecutionJobForbidden Error

func (*DeleteExecutionJobForbidden) Decode

Decode decodes DeleteExecutionJobForbidden from json.

func (*DeleteExecutionJobForbidden) Encode

func (s *DeleteExecutionJobForbidden) Encode(e *jx.Encoder)

Encode encodes DeleteExecutionJobForbidden as json.

func (*DeleteExecutionJobForbidden) MarshalJSON

func (s *DeleteExecutionJobForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteExecutionJobForbidden) UnmarshalJSON

func (s *DeleteExecutionJobForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteExecutionJobInternalServerError

type DeleteExecutionJobInternalServerError Error

func (*DeleteExecutionJobInternalServerError) Decode

Decode decodes DeleteExecutionJobInternalServerError from json.

func (*DeleteExecutionJobInternalServerError) Encode

Encode encodes DeleteExecutionJobInternalServerError as json.

func (*DeleteExecutionJobInternalServerError) MarshalJSON

func (s *DeleteExecutionJobInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DeleteExecutionJobInternalServerError) UnmarshalJSON

func (s *DeleteExecutionJobInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteExecutionJobNotFound

type DeleteExecutionJobNotFound struct{}

DeleteExecutionJobNotFound is response for DeleteExecutionJob operation.

type DeleteExecutionJobOK

type DeleteExecutionJobOK struct{}

DeleteExecutionJobOK is response for DeleteExecutionJob operation.

type DeleteExecutionJobParams

type DeleteExecutionJobParams struct {
	JobId int64
	// Authentication token.
	XAuthToken OptString
}

DeleteExecutionJobParams is parameters of deleteExecutionJob operation.

type DeleteExecutionJobRes

type DeleteExecutionJobRes interface {
	// contains filtered or unexported methods
}

type EnvironmentVariable

type EnvironmentVariable struct {
	Key   OptString `json:"key"`
	Value OptString `json:"value"`
}

Ref: #/components/schemas/EnvironmentVariable

func (*EnvironmentVariable) Decode

func (s *EnvironmentVariable) Decode(d *jx.Decoder) error

Decode decodes EnvironmentVariable from json.

func (*EnvironmentVariable) Encode

func (s *EnvironmentVariable) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EnvironmentVariable) GetKey

func (s *EnvironmentVariable) GetKey() OptString

GetKey returns the value of Key.

func (*EnvironmentVariable) GetValue

func (s *EnvironmentVariable) GetValue() OptString

GetValue returns the value of Value.

func (*EnvironmentVariable) MarshalJSON

func (s *EnvironmentVariable) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EnvironmentVariable) SetKey

func (s *EnvironmentVariable) SetKey(val OptString)

SetKey sets the value of Key.

func (*EnvironmentVariable) SetValue

func (s *EnvironmentVariable) SetValue(val OptString)

SetValue sets the value of Value.

func (*EnvironmentVariable) UnmarshalJSON

func (s *EnvironmentVariable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Error

type Error struct {
	Message string `json:"message"`
}

Ref: #/components/schemas/Error

func (*Error) Decode

func (s *Error) Decode(d *jx.Decoder) error

Decode decodes Error from json.

func (*Error) Encode

func (s *Error) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Error) GetMessage

func (s *Error) GetMessage() string

GetMessage returns the value of Message.

func (*Error) MarshalJSON

func (s *Error) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Error) SetMessage

func (s *Error) SetMessage(val string)

SetMessage sets the value of Message.

func (*Error) UnmarshalJSON

func (s *Error) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ExecuteBadRequest

type ExecuteBadRequest Error

func (*ExecuteBadRequest) Decode

func (s *ExecuteBadRequest) Decode(d *jx.Decoder) error

Decode decodes ExecuteBadRequest from json.

func (*ExecuteBadRequest) Encode

func (s *ExecuteBadRequest) Encode(e *jx.Encoder)

Encode encodes ExecuteBadRequest as json.

func (*ExecuteBadRequest) MarshalJSON

func (s *ExecuteBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExecuteBadRequest) UnmarshalJSON

func (s *ExecuteBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExecuteInternalServerError

type ExecuteInternalServerError Error

func (*ExecuteInternalServerError) Decode

Decode decodes ExecuteInternalServerError from json.

func (*ExecuteInternalServerError) Encode

func (s *ExecuteInternalServerError) Encode(e *jx.Encoder)

Encode encodes ExecuteInternalServerError as json.

func (*ExecuteInternalServerError) MarshalJSON

func (s *ExecuteInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExecuteInternalServerError) UnmarshalJSON

func (s *ExecuteInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExecuteOK

type ExecuteOK struct {
	JobId     int64  `json:"jobId"`
	Events    string `json:"events"`
	Websocket string `json:"websocket"`
}

func (*ExecuteOK) Decode

func (s *ExecuteOK) Decode(d *jx.Decoder) error

Decode decodes ExecuteOK from json.

func (*ExecuteOK) Encode

func (s *ExecuteOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExecuteOK) GetEvents

func (s *ExecuteOK) GetEvents() string

GetEvents returns the value of Events.

func (*ExecuteOK) GetJobId

func (s *ExecuteOK) GetJobId() int64

GetJobId returns the value of JobId.

func (*ExecuteOK) GetWebsocket

func (s *ExecuteOK) GetWebsocket() string

GetWebsocket returns the value of Websocket.

func (*ExecuteOK) MarshalJSON

func (s *ExecuteOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExecuteOK) SetEvents

func (s *ExecuteOK) SetEvents(val string)

SetEvents sets the value of Events.

func (*ExecuteOK) SetJobId

func (s *ExecuteOK) SetJobId(val int64)

SetJobId sets the value of JobId.

func (*ExecuteOK) SetWebsocket

func (s *ExecuteOK) SetWebsocket(val string)

SetWebsocket sets the value of Websocket.

func (*ExecuteOK) UnmarshalJSON

func (s *ExecuteOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExecuteParams

type ExecuteParams struct {
	// Authentication token.
	XAuthToken OptString
}

ExecuteParams is parameters of execute operation.

type ExecuteRes

type ExecuteRes interface {
	// contains filtered or unexported methods
}

type ExecutionConfig

type ExecutionConfig struct {
	// Represents the worker provider.
	WORKERPROVIDER string `json:"WORKER_PROVIDER"`
	// Represents the concurrency level for the worker.
	WORKERCONCURRENCY int32 `json:"WORKER_CONCURRENCY"`
	// Represents the buffer size for the worker.
	WORKERBUFFERSIZE int32 `json:"WORKER_BUFFER_SIZE"`
	// Represents the task timeout.
	WORKERTASKTIMEOUT int `json:"WORKER_TASK_TIMEOUT"`
	// Represents the polling frequency for the worker in seconds.
	WORKERPOLLFREQ int `json:"WORKER_POLL_FREQ"`
	// Represents the runtime for the worker in seconds.
	WORKERRUNTIME string `json:"WORKER_RUNTIME"`
	// Represents the log level.
	LOGLEVEL string `json:"LOG_LEVEL"`
	// Represents the base directory for the system provider.
	SYSTEMPROVIDERBASEDIR OptString `json:"SYSTEM_PROVIDER_BASE_DIR"`
	// Represents whether to clean up directories created by the system provider.
	SYSTEMPROVIDERCLEANUP OptBool `json:"SYSTEM_PROVIDER_CLEAN_UP"`
}

Ref: #/components/schemas/ExecutionConfig

func (*ExecutionConfig) Decode

func (s *ExecutionConfig) Decode(d *jx.Decoder) error

Decode decodes ExecutionConfig from json.

func (*ExecutionConfig) Encode

func (s *ExecutionConfig) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExecutionConfig) GetLOGLEVEL

func (s *ExecutionConfig) GetLOGLEVEL() string

GetLOGLEVEL returns the value of LOGLEVEL.

func (*ExecutionConfig) GetSYSTEMPROVIDERBASEDIR

func (s *ExecutionConfig) GetSYSTEMPROVIDERBASEDIR() OptString

GetSYSTEMPROVIDERBASEDIR returns the value of SYSTEMPROVIDERBASEDIR.

func (*ExecutionConfig) GetSYSTEMPROVIDERCLEANUP

func (s *ExecutionConfig) GetSYSTEMPROVIDERCLEANUP() OptBool

GetSYSTEMPROVIDERCLEANUP returns the value of SYSTEMPROVIDERCLEANUP.

func (*ExecutionConfig) GetWORKERBUFFERSIZE

func (s *ExecutionConfig) GetWORKERBUFFERSIZE() int32

GetWORKERBUFFERSIZE returns the value of WORKERBUFFERSIZE.

func (*ExecutionConfig) GetWORKERCONCURRENCY

func (s *ExecutionConfig) GetWORKERCONCURRENCY() int32

GetWORKERCONCURRENCY returns the value of WORKERCONCURRENCY.

func (*ExecutionConfig) GetWORKERPOLLFREQ

func (s *ExecutionConfig) GetWORKERPOLLFREQ() int

GetWORKERPOLLFREQ returns the value of WORKERPOLLFREQ.

func (*ExecutionConfig) GetWORKERPROVIDER

func (s *ExecutionConfig) GetWORKERPROVIDER() string

GetWORKERPROVIDER returns the value of WORKERPROVIDER.

func (*ExecutionConfig) GetWORKERRUNTIME

func (s *ExecutionConfig) GetWORKERRUNTIME() string

GetWORKERRUNTIME returns the value of WORKERRUNTIME.

func (*ExecutionConfig) GetWORKERTASKTIMEOUT

func (s *ExecutionConfig) GetWORKERTASKTIMEOUT() int

GetWORKERTASKTIMEOUT returns the value of WORKERTASKTIMEOUT.

func (*ExecutionConfig) MarshalJSON

func (s *ExecutionConfig) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExecutionConfig) SetLOGLEVEL

func (s *ExecutionConfig) SetLOGLEVEL(val string)

SetLOGLEVEL sets the value of LOGLEVEL.

func (*ExecutionConfig) SetSYSTEMPROVIDERBASEDIR

func (s *ExecutionConfig) SetSYSTEMPROVIDERBASEDIR(val OptString)

SetSYSTEMPROVIDERBASEDIR sets the value of SYSTEMPROVIDERBASEDIR.

func (*ExecutionConfig) SetSYSTEMPROVIDERCLEANUP

func (s *ExecutionConfig) SetSYSTEMPROVIDERCLEANUP(val OptBool)

SetSYSTEMPROVIDERCLEANUP sets the value of SYSTEMPROVIDERCLEANUP.

func (*ExecutionConfig) SetWORKERBUFFERSIZE

func (s *ExecutionConfig) SetWORKERBUFFERSIZE(val int32)

SetWORKERBUFFERSIZE sets the value of WORKERBUFFERSIZE.

func (*ExecutionConfig) SetWORKERCONCURRENCY

func (s *ExecutionConfig) SetWORKERCONCURRENCY(val int32)

SetWORKERCONCURRENCY sets the value of WORKERCONCURRENCY.

func (*ExecutionConfig) SetWORKERPOLLFREQ

func (s *ExecutionConfig) SetWORKERPOLLFREQ(val int)

SetWORKERPOLLFREQ sets the value of WORKERPOLLFREQ.

func (*ExecutionConfig) SetWORKERPROVIDER

func (s *ExecutionConfig) SetWORKERPROVIDER(val string)

SetWORKERPROVIDER sets the value of WORKERPROVIDER.

func (*ExecutionConfig) SetWORKERRUNTIME

func (s *ExecutionConfig) SetWORKERRUNTIME(val string)

SetWORKERRUNTIME sets the value of WORKERRUNTIME.

func (*ExecutionConfig) SetWORKERTASKTIMEOUT

func (s *ExecutionConfig) SetWORKERTASKTIMEOUT(val int)

SetWORKERTASKTIMEOUT sets the value of WORKERTASKTIMEOUT.

func (*ExecutionConfig) UnmarshalJSON

func (s *ExecutionConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExecutionEnvironmentSpec

type ExecutionEnvironmentSpec struct {
	EnvironmentVariables []EnvironmentVariable `json:"environment_variables"`
	LanguageDependencies []string              `json:"languageDependencies"`
	SystemDependencies   []string              `json:"systemDependencies"`
	Setup                OptString             `json:"setup"`
}

Ref: #/components/schemas/ExecutionEnvironmentSpec

func (*ExecutionEnvironmentSpec) Decode

func (s *ExecutionEnvironmentSpec) Decode(d *jx.Decoder) error

Decode decodes ExecutionEnvironmentSpec from json.

func (*ExecutionEnvironmentSpec) Encode

func (s *ExecutionEnvironmentSpec) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExecutionEnvironmentSpec) GetEnvironmentVariables

func (s *ExecutionEnvironmentSpec) GetEnvironmentVariables() []EnvironmentVariable

GetEnvironmentVariables returns the value of EnvironmentVariables.

func (*ExecutionEnvironmentSpec) GetLanguageDependencies

func (s *ExecutionEnvironmentSpec) GetLanguageDependencies() []string

GetLanguageDependencies returns the value of LanguageDependencies.

func (*ExecutionEnvironmentSpec) GetSetup

func (s *ExecutionEnvironmentSpec) GetSetup() OptString

GetSetup returns the value of Setup.

func (*ExecutionEnvironmentSpec) GetSystemDependencies

func (s *ExecutionEnvironmentSpec) GetSystemDependencies() []string

GetSystemDependencies returns the value of SystemDependencies.

func (*ExecutionEnvironmentSpec) MarshalJSON

func (s *ExecutionEnvironmentSpec) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExecutionEnvironmentSpec) SetEnvironmentVariables

func (s *ExecutionEnvironmentSpec) SetEnvironmentVariables(val []EnvironmentVariable)

SetEnvironmentVariables sets the value of EnvironmentVariables.

func (*ExecutionEnvironmentSpec) SetLanguageDependencies

func (s *ExecutionEnvironmentSpec) SetLanguageDependencies(val []string)

SetLanguageDependencies sets the value of LanguageDependencies.

func (*ExecutionEnvironmentSpec) SetSetup

func (s *ExecutionEnvironmentSpec) SetSetup(val OptString)

SetSetup sets the value of Setup.

func (*ExecutionEnvironmentSpec) SetSystemDependencies

func (s *ExecutionEnvironmentSpec) SetSystemDependencies(val []string)

SetSystemDependencies sets the value of SystemDependencies.

func (*ExecutionEnvironmentSpec) UnmarshalJSON

func (s *ExecutionEnvironmentSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExecutionRequest

type ExecutionRequest struct {
	Environment  OptExecutionEnvironmentSpec `json:"environment"`
	Code         OptString                   `json:"code"`
	Language     OptString                   `json:"language"`
	Version      OptString                   `json:"version"`
	MaxRetries   OptInt                      `json:"max_retries"`
	Timeout      OptInt32                    `json:"timeout"`
	CmdLineArgs  OptString                   `json:"cmdLineArgs"`
	CompilerArgs OptString                   `json:"compilerArgs"`
	Command      OptString                   `json:"command"`
	Files        []byte                      `json:"files"`
	Input        OptString                   `json:"input"`
}

Ref: #/components/schemas/ExecutionRequest

func (*ExecutionRequest) Decode

func (s *ExecutionRequest) Decode(d *jx.Decoder) error

Decode decodes ExecutionRequest from json.

func (*ExecutionRequest) Encode

func (s *ExecutionRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExecutionRequest) GetCmdLineArgs

func (s *ExecutionRequest) GetCmdLineArgs() OptString

GetCmdLineArgs returns the value of CmdLineArgs.

func (*ExecutionRequest) GetCode

func (s *ExecutionRequest) GetCode() OptString

GetCode returns the value of Code.

func (*ExecutionRequest) GetCommand

func (s *ExecutionRequest) GetCommand() OptString

GetCommand returns the value of Command.

func (*ExecutionRequest) GetCompilerArgs

func (s *ExecutionRequest) GetCompilerArgs() OptString

GetCompilerArgs returns the value of CompilerArgs.

func (*ExecutionRequest) GetEnvironment

func (s *ExecutionRequest) GetEnvironment() OptExecutionEnvironmentSpec

GetEnvironment returns the value of Environment.

func (*ExecutionRequest) GetFiles

func (s *ExecutionRequest) GetFiles() []byte

GetFiles returns the value of Files.

func (*ExecutionRequest) GetInput

func (s *ExecutionRequest) GetInput() OptString

GetInput returns the value of Input.

func (*ExecutionRequest) GetLanguage

func (s *ExecutionRequest) GetLanguage() OptString

GetLanguage returns the value of Language.

func (*ExecutionRequest) GetMaxRetries

func (s *ExecutionRequest) GetMaxRetries() OptInt

GetMaxRetries returns the value of MaxRetries.

func (*ExecutionRequest) GetTimeout

func (s *ExecutionRequest) GetTimeout() OptInt32

GetTimeout returns the value of Timeout.

func (*ExecutionRequest) GetVersion

func (s *ExecutionRequest) GetVersion() OptString

GetVersion returns the value of Version.

func (*ExecutionRequest) MarshalJSON

func (s *ExecutionRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExecutionRequest) SetCmdLineArgs

func (s *ExecutionRequest) SetCmdLineArgs(val OptString)

SetCmdLineArgs sets the value of CmdLineArgs.

func (*ExecutionRequest) SetCode

func (s *ExecutionRequest) SetCode(val OptString)

SetCode sets the value of Code.

func (*ExecutionRequest) SetCommand

func (s *ExecutionRequest) SetCommand(val OptString)

SetCommand sets the value of Command.

func (*ExecutionRequest) SetCompilerArgs

func (s *ExecutionRequest) SetCompilerArgs(val OptString)

SetCompilerArgs sets the value of CompilerArgs.

func (*ExecutionRequest) SetEnvironment

func (s *ExecutionRequest) SetEnvironment(val OptExecutionEnvironmentSpec)

SetEnvironment sets the value of Environment.

func (*ExecutionRequest) SetFiles

func (s *ExecutionRequest) SetFiles(val []byte)

SetFiles sets the value of Files.

func (*ExecutionRequest) SetInput

func (s *ExecutionRequest) SetInput(val OptString)

SetInput sets the value of Input.

func (*ExecutionRequest) SetLanguage

func (s *ExecutionRequest) SetLanguage(val OptString)

SetLanguage sets the value of Language.

func (*ExecutionRequest) SetMaxRetries

func (s *ExecutionRequest) SetMaxRetries(val OptInt)

SetMaxRetries sets the value of MaxRetries.

func (*ExecutionRequest) SetTimeout

func (s *ExecutionRequest) SetTimeout(val OptInt32)

SetTimeout sets the value of Timeout.

func (*ExecutionRequest) SetVersion

func (s *ExecutionRequest) SetVersion(val OptString)

SetVersion sets the value of Version.

func (*ExecutionRequest) UnmarshalJSON

func (s *ExecutionRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExecutionResult

type ExecutionResult struct {
	JobId  int64  `json:"jobId"`
	Script string `json:"script"`
	// Merged property.
	Flake     string    `json:"flake"`
	CreatedAt time.Time `json:"created_at"`
	// Merged property.
	StartedAt  time.Time   `json:"started_at"`
	UpdatedAt  OptDateTime `json:"updated_at"`
	ExecId     int64       `json:"execId"`
	FinishedAt time.Time   `json:"finished_at"`
	ExecLogs   string      `json:"exec_logs"`
	NixLogs    OptString   `json:"nix_logs"`
}

Merged schema. Ref: #/components/schemas/ExecutionResult

func (*ExecutionResult) Decode

func (s *ExecutionResult) Decode(d *jx.Decoder) error

Decode decodes ExecutionResult from json.

func (*ExecutionResult) Encode

func (s *ExecutionResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExecutionResult) GetCreatedAt

func (s *ExecutionResult) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*ExecutionResult) GetExecId

func (s *ExecutionResult) GetExecId() int64

GetExecId returns the value of ExecId.

func (*ExecutionResult) GetExecLogs

func (s *ExecutionResult) GetExecLogs() string

GetExecLogs returns the value of ExecLogs.

func (*ExecutionResult) GetFinishedAt

func (s *ExecutionResult) GetFinishedAt() time.Time

GetFinishedAt returns the value of FinishedAt.

func (*ExecutionResult) GetFlake

func (s *ExecutionResult) GetFlake() string

GetFlake returns the value of Flake.

func (*ExecutionResult) GetJobId

func (s *ExecutionResult) GetJobId() int64

GetJobId returns the value of JobId.

func (*ExecutionResult) GetNixLogs

func (s *ExecutionResult) GetNixLogs() OptString

GetNixLogs returns the value of NixLogs.

func (*ExecutionResult) GetScript

func (s *ExecutionResult) GetScript() string

GetScript returns the value of Script.

func (*ExecutionResult) GetStartedAt

func (s *ExecutionResult) GetStartedAt() time.Time

GetStartedAt returns the value of StartedAt.

func (*ExecutionResult) GetUpdatedAt

func (s *ExecutionResult) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*ExecutionResult) MarshalJSON

func (s *ExecutionResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExecutionResult) SetCreatedAt

func (s *ExecutionResult) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*ExecutionResult) SetExecId

func (s *ExecutionResult) SetExecId(val int64)

SetExecId sets the value of ExecId.

func (*ExecutionResult) SetExecLogs

func (s *ExecutionResult) SetExecLogs(val string)

SetExecLogs sets the value of ExecLogs.

func (*ExecutionResult) SetFinishedAt

func (s *ExecutionResult) SetFinishedAt(val time.Time)

SetFinishedAt sets the value of FinishedAt.

func (*ExecutionResult) SetFlake

func (s *ExecutionResult) SetFlake(val string)

SetFlake sets the value of Flake.

func (*ExecutionResult) SetJobId

func (s *ExecutionResult) SetJobId(val int64)

SetJobId sets the value of JobId.

func (*ExecutionResult) SetNixLogs

func (s *ExecutionResult) SetNixLogs(val OptString)

SetNixLogs sets the value of NixLogs.

func (*ExecutionResult) SetScript

func (s *ExecutionResult) SetScript(val string)

SetScript sets the value of Script.

func (*ExecutionResult) SetStartedAt

func (s *ExecutionResult) SetStartedAt(val time.Time)

SetStartedAt sets the value of StartedAt.

func (*ExecutionResult) SetUpdatedAt

func (s *ExecutionResult) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*ExecutionResult) UnmarshalJSON

func (s *ExecutionResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchFlakeForbidden

type FetchFlakeForbidden Error

func (*FetchFlakeForbidden) Decode

func (s *FetchFlakeForbidden) Decode(d *jx.Decoder) error

Decode decodes FetchFlakeForbidden from json.

func (*FetchFlakeForbidden) Encode

func (s *FetchFlakeForbidden) Encode(e *jx.Encoder)

Encode encodes FetchFlakeForbidden as json.

func (*FetchFlakeForbidden) MarshalJSON

func (s *FetchFlakeForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchFlakeForbidden) UnmarshalJSON

func (s *FetchFlakeForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchFlakeInternalServerError

type FetchFlakeInternalServerError Error

func (*FetchFlakeInternalServerError) Decode

Decode decodes FetchFlakeInternalServerError from json.

func (*FetchFlakeInternalServerError) Encode

Encode encodes FetchFlakeInternalServerError as json.

func (*FetchFlakeInternalServerError) MarshalJSON

func (s *FetchFlakeInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchFlakeInternalServerError) UnmarshalJSON

func (s *FetchFlakeInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchFlakeOK

type FetchFlakeOK struct {
	Flake string `json:"flake"`
}

func (*FetchFlakeOK) Decode

func (s *FetchFlakeOK) Decode(d *jx.Decoder) error

Decode decodes FetchFlakeOK from json.

func (*FetchFlakeOK) Encode

func (s *FetchFlakeOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FetchFlakeOK) GetFlake

func (s *FetchFlakeOK) GetFlake() string

GetFlake returns the value of Flake.

func (*FetchFlakeOK) MarshalJSON

func (s *FetchFlakeOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchFlakeOK) SetFlake

func (s *FetchFlakeOK) SetFlake(val string)

SetFlake sets the value of Flake.

func (*FetchFlakeOK) UnmarshalJSON

func (s *FetchFlakeOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchFlakeParams

type FetchFlakeParams struct {
	// Job ID.
	JobId int64
}

FetchFlakeParams is parameters of fetchFlake operation.

type FetchFlakeRes

type FetchFlakeRes interface {
	// contains filtered or unexported methods
}

type FetchLanguagePackagesBadRequest

type FetchLanguagePackagesBadRequest Error

func (*FetchLanguagePackagesBadRequest) Decode

Decode decodes FetchLanguagePackagesBadRequest from json.

func (*FetchLanguagePackagesBadRequest) Encode

Encode encodes FetchLanguagePackagesBadRequest as json.

func (*FetchLanguagePackagesBadRequest) MarshalJSON

func (s *FetchLanguagePackagesBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchLanguagePackagesBadRequest) UnmarshalJSON

func (s *FetchLanguagePackagesBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchLanguagePackagesForbidden

type FetchLanguagePackagesForbidden Error

func (*FetchLanguagePackagesForbidden) Decode

Decode decodes FetchLanguagePackagesForbidden from json.

func (*FetchLanguagePackagesForbidden) Encode

Encode encodes FetchLanguagePackagesForbidden as json.

func (*FetchLanguagePackagesForbidden) MarshalJSON

func (s *FetchLanguagePackagesForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchLanguagePackagesForbidden) UnmarshalJSON

func (s *FetchLanguagePackagesForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchLanguagePackagesInternalServerError

type FetchLanguagePackagesInternalServerError Error

func (*FetchLanguagePackagesInternalServerError) Decode

Decode decodes FetchLanguagePackagesInternalServerError from json.

func (*FetchLanguagePackagesInternalServerError) Encode

Encode encodes FetchLanguagePackagesInternalServerError as json.

func (*FetchLanguagePackagesInternalServerError) MarshalJSON

func (s *FetchLanguagePackagesInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchLanguagePackagesInternalServerError) UnmarshalJSON

func (s *FetchLanguagePackagesInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchLanguagePackagesOK

type FetchLanguagePackagesOK struct {
	Packages []Package `json:"packages"`
}

func (*FetchLanguagePackagesOK) Decode

func (s *FetchLanguagePackagesOK) Decode(d *jx.Decoder) error

Decode decodes FetchLanguagePackagesOK from json.

func (*FetchLanguagePackagesOK) Encode

func (s *FetchLanguagePackagesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FetchLanguagePackagesOK) GetPackages

func (s *FetchLanguagePackagesOK) GetPackages() []Package

GetPackages returns the value of Packages.

func (*FetchLanguagePackagesOK) MarshalJSON

func (s *FetchLanguagePackagesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchLanguagePackagesOK) SetPackages

func (s *FetchLanguagePackagesOK) SetPackages(val []Package)

SetPackages sets the value of Packages.

func (*FetchLanguagePackagesOK) UnmarshalJSON

func (s *FetchLanguagePackagesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FetchLanguagePackagesOK) Validate

func (s *FetchLanguagePackagesOK) Validate() error

type FetchLanguagePackagesParams

type FetchLanguagePackagesParams struct {
	// Authentication token.
	XAuthToken OptString
	// The language for which the package is searched.
	Language string
}

FetchLanguagePackagesParams is parameters of FetchLanguagePackages operation.

type FetchLanguagePackagesRes

type FetchLanguagePackagesRes interface {
	// contains filtered or unexported methods
}

type FetchSystemPackagesBadRequest

type FetchSystemPackagesBadRequest Error

func (*FetchSystemPackagesBadRequest) Decode

Decode decodes FetchSystemPackagesBadRequest from json.

func (*FetchSystemPackagesBadRequest) Encode

Encode encodes FetchSystemPackagesBadRequest as json.

func (*FetchSystemPackagesBadRequest) MarshalJSON

func (s *FetchSystemPackagesBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchSystemPackagesBadRequest) UnmarshalJSON

func (s *FetchSystemPackagesBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchSystemPackagesForbidden

type FetchSystemPackagesForbidden Error

func (*FetchSystemPackagesForbidden) Decode

Decode decodes FetchSystemPackagesForbidden from json.

func (*FetchSystemPackagesForbidden) Encode

func (s *FetchSystemPackagesForbidden) Encode(e *jx.Encoder)

Encode encodes FetchSystemPackagesForbidden as json.

func (*FetchSystemPackagesForbidden) MarshalJSON

func (s *FetchSystemPackagesForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchSystemPackagesForbidden) UnmarshalJSON

func (s *FetchSystemPackagesForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchSystemPackagesInternalServerError

type FetchSystemPackagesInternalServerError Error

func (*FetchSystemPackagesInternalServerError) Decode

Decode decodes FetchSystemPackagesInternalServerError from json.

func (*FetchSystemPackagesInternalServerError) Encode

Encode encodes FetchSystemPackagesInternalServerError as json.

func (*FetchSystemPackagesInternalServerError) MarshalJSON

func (s *FetchSystemPackagesInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchSystemPackagesInternalServerError) UnmarshalJSON

func (s *FetchSystemPackagesInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FetchSystemPackagesOK

type FetchSystemPackagesOK struct {
	Packages []Package `json:"packages"`
}

func (*FetchSystemPackagesOK) Decode

func (s *FetchSystemPackagesOK) Decode(d *jx.Decoder) error

Decode decodes FetchSystemPackagesOK from json.

func (*FetchSystemPackagesOK) Encode

func (s *FetchSystemPackagesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FetchSystemPackagesOK) GetPackages

func (s *FetchSystemPackagesOK) GetPackages() []Package

GetPackages returns the value of Packages.

func (*FetchSystemPackagesOK) MarshalJSON

func (s *FetchSystemPackagesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FetchSystemPackagesOK) SetPackages

func (s *FetchSystemPackagesOK) SetPackages(val []Package)

SetPackages sets the value of Packages.

func (*FetchSystemPackagesOK) UnmarshalJSON

func (s *FetchSystemPackagesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*FetchSystemPackagesOK) Validate

func (s *FetchSystemPackagesOK) Validate() error

type FetchSystemPackagesParams

type FetchSystemPackagesParams struct {
	// Authentication token.
	XAuthToken OptString
}

FetchSystemPackagesParams is parameters of FetchSystemPackages operation.

type FetchSystemPackagesRes

type FetchSystemPackagesRes interface {
	// contains filtered or unexported methods
}

type GetAllExecutionJobsBadRequest

type GetAllExecutionJobsBadRequest Error

func (*GetAllExecutionJobsBadRequest) Decode

Decode decodes GetAllExecutionJobsBadRequest from json.

func (*GetAllExecutionJobsBadRequest) Encode

Encode encodes GetAllExecutionJobsBadRequest as json.

func (*GetAllExecutionJobsBadRequest) MarshalJSON

func (s *GetAllExecutionJobsBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllExecutionJobsBadRequest) UnmarshalJSON

func (s *GetAllExecutionJobsBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllExecutionJobsForbidden

type GetAllExecutionJobsForbidden Error

func (*GetAllExecutionJobsForbidden) Decode

Decode decodes GetAllExecutionJobsForbidden from json.

func (*GetAllExecutionJobsForbidden) Encode

func (s *GetAllExecutionJobsForbidden) Encode(e *jx.Encoder)

Encode encodes GetAllExecutionJobsForbidden as json.

func (*GetAllExecutionJobsForbidden) MarshalJSON

func (s *GetAllExecutionJobsForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllExecutionJobsForbidden) UnmarshalJSON

func (s *GetAllExecutionJobsForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllExecutionJobsInternalServerError

type GetAllExecutionJobsInternalServerError Error

func (*GetAllExecutionJobsInternalServerError) Decode

Decode decodes GetAllExecutionJobsInternalServerError from json.

func (*GetAllExecutionJobsInternalServerError) Encode

Encode encodes GetAllExecutionJobsInternalServerError as json.

func (*GetAllExecutionJobsInternalServerError) MarshalJSON

func (s *GetAllExecutionJobsInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllExecutionJobsInternalServerError) UnmarshalJSON

func (s *GetAllExecutionJobsInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllExecutionJobsOK

type GetAllExecutionJobsOK struct {
	Jobs       []Job              `json:"jobs"`
	Pagination PaginationResponse `json:"pagination"`
}

func (*GetAllExecutionJobsOK) Decode

func (s *GetAllExecutionJobsOK) Decode(d *jx.Decoder) error

Decode decodes GetAllExecutionJobsOK from json.

func (*GetAllExecutionJobsOK) Encode

func (s *GetAllExecutionJobsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAllExecutionJobsOK) GetJobs

func (s *GetAllExecutionJobsOK) GetJobs() []Job

GetJobs returns the value of Jobs.

func (*GetAllExecutionJobsOK) GetPagination

func (s *GetAllExecutionJobsOK) GetPagination() PaginationResponse

GetPagination returns the value of Pagination.

func (*GetAllExecutionJobsOK) MarshalJSON

func (s *GetAllExecutionJobsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllExecutionJobsOK) SetJobs

func (s *GetAllExecutionJobsOK) SetJobs(val []Job)

SetJobs sets the value of Jobs.

func (*GetAllExecutionJobsOK) SetPagination

func (s *GetAllExecutionJobsOK) SetPagination(val PaginationResponse)

SetPagination sets the value of Pagination.

func (*GetAllExecutionJobsOK) UnmarshalJSON

func (s *GetAllExecutionJobsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAllExecutionJobsOK) Validate

func (s *GetAllExecutionJobsOK) Validate() error

type GetAllExecutionJobsParams

type GetAllExecutionJobsParams struct {
	// The current position of the cursor.
	Cursor OptInt64
	// The limit for the records.
	Limit OptInt64
	// Authentication token.
	XAuthToken OptString
}

GetAllExecutionJobsParams is parameters of getAllExecutionJobs operation.

type GetAllExecutionJobsRes

type GetAllExecutionJobsRes interface {
	// contains filtered or unexported methods
}

type GetAllExecutionsBadRequest

type GetAllExecutionsBadRequest Error

func (*GetAllExecutionsBadRequest) Decode

Decode decodes GetAllExecutionsBadRequest from json.

func (*GetAllExecutionsBadRequest) Encode

func (s *GetAllExecutionsBadRequest) Encode(e *jx.Encoder)

Encode encodes GetAllExecutionsBadRequest as json.

func (*GetAllExecutionsBadRequest) MarshalJSON

func (s *GetAllExecutionsBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllExecutionsBadRequest) UnmarshalJSON

func (s *GetAllExecutionsBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllExecutionsForbidden

type GetAllExecutionsForbidden Error

func (*GetAllExecutionsForbidden) Decode

func (s *GetAllExecutionsForbidden) Decode(d *jx.Decoder) error

Decode decodes GetAllExecutionsForbidden from json.

func (*GetAllExecutionsForbidden) Encode

func (s *GetAllExecutionsForbidden) Encode(e *jx.Encoder)

Encode encodes GetAllExecutionsForbidden as json.

func (*GetAllExecutionsForbidden) MarshalJSON

func (s *GetAllExecutionsForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllExecutionsForbidden) UnmarshalJSON

func (s *GetAllExecutionsForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllExecutionsInternalServerError

type GetAllExecutionsInternalServerError Error

func (*GetAllExecutionsInternalServerError) Decode

Decode decodes GetAllExecutionsInternalServerError from json.

func (*GetAllExecutionsInternalServerError) Encode

Encode encodes GetAllExecutionsInternalServerError as json.

func (*GetAllExecutionsInternalServerError) MarshalJSON

func (s *GetAllExecutionsInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllExecutionsInternalServerError) UnmarshalJSON

func (s *GetAllExecutionsInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllExecutionsOK

type GetAllExecutionsOK struct {
	Executions []ExecutionResult  `json:"executions"`
	Pagination PaginationResponse `json:"pagination"`
}

func (*GetAllExecutionsOK) Decode

func (s *GetAllExecutionsOK) Decode(d *jx.Decoder) error

Decode decodes GetAllExecutionsOK from json.

func (*GetAllExecutionsOK) Encode

func (s *GetAllExecutionsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAllExecutionsOK) GetExecutions

func (s *GetAllExecutionsOK) GetExecutions() []ExecutionResult

GetExecutions returns the value of Executions.

func (*GetAllExecutionsOK) GetPagination

func (s *GetAllExecutionsOK) GetPagination() PaginationResponse

GetPagination returns the value of Pagination.

func (*GetAllExecutionsOK) MarshalJSON

func (s *GetAllExecutionsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllExecutionsOK) SetExecutions

func (s *GetAllExecutionsOK) SetExecutions(val []ExecutionResult)

SetExecutions sets the value of Executions.

func (*GetAllExecutionsOK) SetPagination

func (s *GetAllExecutionsOK) SetPagination(val PaginationResponse)

SetPagination sets the value of Pagination.

func (*GetAllExecutionsOK) UnmarshalJSON

func (s *GetAllExecutionsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAllExecutionsOK) Validate

func (s *GetAllExecutionsOK) Validate() error

type GetAllExecutionsParams

type GetAllExecutionsParams struct {
	// The current position of the cursor.
	Cursor OptInt64
	// The limit for the records.
	Limit OptInt64
	// Authentication token.
	XAuthToken OptString
}

GetAllExecutionsParams is parameters of getAllExecutions operation.

type GetAllExecutionsRes

type GetAllExecutionsRes interface {
	// contains filtered or unexported methods
}

type GetAllLanguageVersionsForbidden

type GetAllLanguageVersionsForbidden Error

func (*GetAllLanguageVersionsForbidden) Decode

Decode decodes GetAllLanguageVersionsForbidden from json.

func (*GetAllLanguageVersionsForbidden) Encode

Encode encodes GetAllLanguageVersionsForbidden as json.

func (*GetAllLanguageVersionsForbidden) MarshalJSON

func (s *GetAllLanguageVersionsForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllLanguageVersionsForbidden) UnmarshalJSON

func (s *GetAllLanguageVersionsForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllLanguageVersionsInternalServerError

type GetAllLanguageVersionsInternalServerError Error

func (*GetAllLanguageVersionsInternalServerError) Decode

Decode decodes GetAllLanguageVersionsInternalServerError from json.

func (*GetAllLanguageVersionsInternalServerError) Encode

Encode encodes GetAllLanguageVersionsInternalServerError as json.

func (*GetAllLanguageVersionsInternalServerError) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetAllLanguageVersionsInternalServerError) UnmarshalJSON

func (s *GetAllLanguageVersionsInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllLanguageVersionsOK

type GetAllLanguageVersionsOK struct {
	LanguageVersions []LanguageVersionResponse `json:"languageVersions"`
}

func (*GetAllLanguageVersionsOK) Decode

func (s *GetAllLanguageVersionsOK) Decode(d *jx.Decoder) error

Decode decodes GetAllLanguageVersionsOK from json.

func (*GetAllLanguageVersionsOK) Encode

func (s *GetAllLanguageVersionsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAllLanguageVersionsOK) GetLanguageVersions

func (s *GetAllLanguageVersionsOK) GetLanguageVersions() []LanguageVersionResponse

GetLanguageVersions returns the value of LanguageVersions.

func (*GetAllLanguageVersionsOK) MarshalJSON

func (s *GetAllLanguageVersionsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllLanguageVersionsOK) SetLanguageVersions

func (s *GetAllLanguageVersionsOK) SetLanguageVersions(val []LanguageVersionResponse)

SetLanguageVersions sets the value of LanguageVersions.

func (*GetAllLanguageVersionsOK) UnmarshalJSON

func (s *GetAllLanguageVersionsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAllLanguageVersionsOK) Validate

func (s *GetAllLanguageVersionsOK) Validate() error

type GetAllLanguageVersionsParams

type GetAllLanguageVersionsParams struct {
	// Authentication token.
	XAuthToken OptString
}

GetAllLanguageVersionsParams is parameters of getAllLanguageVersions operation.

type GetAllLanguageVersionsRes

type GetAllLanguageVersionsRes interface {
	// contains filtered or unexported methods
}

type GetAllLanguagesForbidden

type GetAllLanguagesForbidden Error

func (*GetAllLanguagesForbidden) Decode

func (s *GetAllLanguagesForbidden) Decode(d *jx.Decoder) error

Decode decodes GetAllLanguagesForbidden from json.

func (*GetAllLanguagesForbidden) Encode

func (s *GetAllLanguagesForbidden) Encode(e *jx.Encoder)

Encode encodes GetAllLanguagesForbidden as json.

func (*GetAllLanguagesForbidden) MarshalJSON

func (s *GetAllLanguagesForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllLanguagesForbidden) UnmarshalJSON

func (s *GetAllLanguagesForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllLanguagesInternalServerError

type GetAllLanguagesInternalServerError Error

func (*GetAllLanguagesInternalServerError) Decode

Decode decodes GetAllLanguagesInternalServerError from json.

func (*GetAllLanguagesInternalServerError) Encode

Encode encodes GetAllLanguagesInternalServerError as json.

func (*GetAllLanguagesInternalServerError) MarshalJSON

func (s *GetAllLanguagesInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllLanguagesInternalServerError) UnmarshalJSON

func (s *GetAllLanguagesInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllLanguagesOK

type GetAllLanguagesOK struct {
	Languages []LanguageResponse `json:"languages"`
}

func (*GetAllLanguagesOK) Decode

func (s *GetAllLanguagesOK) Decode(d *jx.Decoder) error

Decode decodes GetAllLanguagesOK from json.

func (*GetAllLanguagesOK) Encode

func (s *GetAllLanguagesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAllLanguagesOK) GetLanguages

func (s *GetAllLanguagesOK) GetLanguages() []LanguageResponse

GetLanguages returns the value of Languages.

func (*GetAllLanguagesOK) MarshalJSON

func (s *GetAllLanguagesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllLanguagesOK) SetLanguages

func (s *GetAllLanguagesOK) SetLanguages(val []LanguageResponse)

SetLanguages sets the value of Languages.

func (*GetAllLanguagesOK) UnmarshalJSON

func (s *GetAllLanguagesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAllLanguagesOK) Validate

func (s *GetAllLanguagesOK) Validate() error

type GetAllLanguagesParams

type GetAllLanguagesParams struct {
	// Authentication token.
	XAuthToken OptString
}

GetAllLanguagesParams is parameters of getAllLanguages operation.

type GetAllLanguagesRes

type GetAllLanguagesRes interface {
	// contains filtered or unexported methods
}

type GetAllVersionsForbidden

type GetAllVersionsForbidden Error

func (*GetAllVersionsForbidden) Decode

func (s *GetAllVersionsForbidden) Decode(d *jx.Decoder) error

Decode decodes GetAllVersionsForbidden from json.

func (*GetAllVersionsForbidden) Encode

func (s *GetAllVersionsForbidden) Encode(e *jx.Encoder)

Encode encodes GetAllVersionsForbidden as json.

func (*GetAllVersionsForbidden) MarshalJSON

func (s *GetAllVersionsForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllVersionsForbidden) UnmarshalJSON

func (s *GetAllVersionsForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllVersionsInternalServerError

type GetAllVersionsInternalServerError Error

func (*GetAllVersionsInternalServerError) Decode

Decode decodes GetAllVersionsInternalServerError from json.

func (*GetAllVersionsInternalServerError) Encode

Encode encodes GetAllVersionsInternalServerError as json.

func (*GetAllVersionsInternalServerError) MarshalJSON

func (s *GetAllVersionsInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllVersionsInternalServerError) UnmarshalJSON

func (s *GetAllVersionsInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetAllVersionsOK

type GetAllVersionsOK struct {
	LanguageVersions []LanguageVersionResponse `json:"languageVersions"`
}

func (*GetAllVersionsOK) Decode

func (s *GetAllVersionsOK) Decode(d *jx.Decoder) error

Decode decodes GetAllVersionsOK from json.

func (*GetAllVersionsOK) Encode

func (s *GetAllVersionsOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetAllVersionsOK) GetLanguageVersions

func (s *GetAllVersionsOK) GetLanguageVersions() []LanguageVersionResponse

GetLanguageVersions returns the value of LanguageVersions.

func (*GetAllVersionsOK) MarshalJSON

func (s *GetAllVersionsOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetAllVersionsOK) SetLanguageVersions

func (s *GetAllVersionsOK) SetLanguageVersions(val []LanguageVersionResponse)

SetLanguageVersions sets the value of LanguageVersions.

func (*GetAllVersionsOK) UnmarshalJSON

func (s *GetAllVersionsOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetAllVersionsOK) Validate

func (s *GetAllVersionsOK) Validate() error

type GetAllVersionsParams

type GetAllVersionsParams struct {
	// The ID of the language to retrieve versions.
	ID int64
	// Authentication token.
	XAuthToken OptString
}

GetAllVersionsParams is parameters of getAllVersions operation.

type GetAllVersionsRes

type GetAllVersionsRes interface {
	// contains filtered or unexported methods
}

type GetExecutionConfigForbidden

type GetExecutionConfigForbidden Error

func (*GetExecutionConfigForbidden) Decode

Decode decodes GetExecutionConfigForbidden from json.

func (*GetExecutionConfigForbidden) Encode

func (s *GetExecutionConfigForbidden) Encode(e *jx.Encoder)

Encode encodes GetExecutionConfigForbidden as json.

func (*GetExecutionConfigForbidden) MarshalJSON

func (s *GetExecutionConfigForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExecutionConfigForbidden) UnmarshalJSON

func (s *GetExecutionConfigForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetExecutionConfigInternalServerError

type GetExecutionConfigInternalServerError Error

func (*GetExecutionConfigInternalServerError) Decode

Decode decodes GetExecutionConfigInternalServerError from json.

func (*GetExecutionConfigInternalServerError) Encode

Encode encodes GetExecutionConfigInternalServerError as json.

func (*GetExecutionConfigInternalServerError) MarshalJSON

func (s *GetExecutionConfigInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExecutionConfigInternalServerError) UnmarshalJSON

func (s *GetExecutionConfigInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetExecutionConfigParams

type GetExecutionConfigParams struct {
	// Authentication token.
	XAuthToken OptString
}

GetExecutionConfigParams is parameters of getExecutionConfig operation.

type GetExecutionConfigRes

type GetExecutionConfigRes interface {
	// contains filtered or unexported methods
}

type GetExecutionJobByIdBadRequest

type GetExecutionJobByIdBadRequest Error

func (*GetExecutionJobByIdBadRequest) Decode

Decode decodes GetExecutionJobByIdBadRequest from json.

func (*GetExecutionJobByIdBadRequest) Encode

Encode encodes GetExecutionJobByIdBadRequest as json.

func (*GetExecutionJobByIdBadRequest) MarshalJSON

func (s *GetExecutionJobByIdBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExecutionJobByIdBadRequest) UnmarshalJSON

func (s *GetExecutionJobByIdBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetExecutionJobByIdInternalServerError

type GetExecutionJobByIdInternalServerError Error

func (*GetExecutionJobByIdInternalServerError) Decode

Decode decodes GetExecutionJobByIdInternalServerError from json.

func (*GetExecutionJobByIdInternalServerError) Encode

Encode encodes GetExecutionJobByIdInternalServerError as json.

func (*GetExecutionJobByIdInternalServerError) MarshalJSON

func (s *GetExecutionJobByIdInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExecutionJobByIdInternalServerError) UnmarshalJSON

func (s *GetExecutionJobByIdInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetExecutionJobByIdNotFound

type GetExecutionJobByIdNotFound struct{}

GetExecutionJobByIdNotFound is response for GetExecutionJobById operation.

type GetExecutionJobByIdParams

type GetExecutionJobByIdParams struct {
	JobId int64
	// Authentication token.
	XAuthToken OptString
}

GetExecutionJobByIdParams is parameters of getExecutionJobById operation.

type GetExecutionJobByIdRes

type GetExecutionJobByIdRes interface {
	// contains filtered or unexported methods
}

type GetExecutionResultByIdBadRequest

type GetExecutionResultByIdBadRequest Error

func (*GetExecutionResultByIdBadRequest) Decode

Decode decodes GetExecutionResultByIdBadRequest from json.

func (*GetExecutionResultByIdBadRequest) Encode

Encode encodes GetExecutionResultByIdBadRequest as json.

func (*GetExecutionResultByIdBadRequest) MarshalJSON

func (s *GetExecutionResultByIdBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExecutionResultByIdBadRequest) UnmarshalJSON

func (s *GetExecutionResultByIdBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetExecutionResultByIdInternalServerError

type GetExecutionResultByIdInternalServerError Error

func (*GetExecutionResultByIdInternalServerError) Decode

Decode decodes GetExecutionResultByIdInternalServerError from json.

func (*GetExecutionResultByIdInternalServerError) Encode

Encode encodes GetExecutionResultByIdInternalServerError as json.

func (*GetExecutionResultByIdInternalServerError) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetExecutionResultByIdInternalServerError) UnmarshalJSON

func (s *GetExecutionResultByIdInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetExecutionResultByIdNotFound

type GetExecutionResultByIdNotFound struct{}

GetExecutionResultByIdNotFound is response for GetExecutionResultById operation.

type GetExecutionResultByIdParams

type GetExecutionResultByIdParams struct {
	ExecId int64
	// Authentication token.
	XAuthToken OptString
}

GetExecutionResultByIdParams is parameters of getExecutionResultById operation.

type GetExecutionResultByIdRes

type GetExecutionResultByIdRes interface {
	// contains filtered or unexported methods
}

type GetExecutionsForJobBadRequest

type GetExecutionsForJobBadRequest Error

func (*GetExecutionsForJobBadRequest) Decode

Decode decodes GetExecutionsForJobBadRequest from json.

func (*GetExecutionsForJobBadRequest) Encode

Encode encodes GetExecutionsForJobBadRequest as json.

func (*GetExecutionsForJobBadRequest) MarshalJSON

func (s *GetExecutionsForJobBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExecutionsForJobBadRequest) UnmarshalJSON

func (s *GetExecutionsForJobBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetExecutionsForJobInternalServerError

type GetExecutionsForJobInternalServerError Error

func (*GetExecutionsForJobInternalServerError) Decode

Decode decodes GetExecutionsForJobInternalServerError from json.

func (*GetExecutionsForJobInternalServerError) Encode

Encode encodes GetExecutionsForJobInternalServerError as json.

func (*GetExecutionsForJobInternalServerError) MarshalJSON

func (s *GetExecutionsForJobInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExecutionsForJobInternalServerError) UnmarshalJSON

func (s *GetExecutionsForJobInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetExecutionsForJobNotFound

type GetExecutionsForJobNotFound struct{}

GetExecutionsForJobNotFound is response for GetExecutionsForJob operation.

type GetExecutionsForJobOK

type GetExecutionsForJobOK struct {
	Executions []ExecutionResult  `json:"executions"`
	Pagination PaginationResponse `json:"pagination"`
}

func (*GetExecutionsForJobOK) Decode

func (s *GetExecutionsForJobOK) Decode(d *jx.Decoder) error

Decode decodes GetExecutionsForJobOK from json.

func (*GetExecutionsForJobOK) Encode

func (s *GetExecutionsForJobOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetExecutionsForJobOK) GetExecutions

func (s *GetExecutionsForJobOK) GetExecutions() []ExecutionResult

GetExecutions returns the value of Executions.

func (*GetExecutionsForJobOK) GetPagination

func (s *GetExecutionsForJobOK) GetPagination() PaginationResponse

GetPagination returns the value of Pagination.

func (*GetExecutionsForJobOK) MarshalJSON

func (s *GetExecutionsForJobOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetExecutionsForJobOK) SetExecutions

func (s *GetExecutionsForJobOK) SetExecutions(val []ExecutionResult)

SetExecutions sets the value of Executions.

func (*GetExecutionsForJobOK) SetPagination

func (s *GetExecutionsForJobOK) SetPagination(val PaginationResponse)

SetPagination sets the value of Pagination.

func (*GetExecutionsForJobOK) UnmarshalJSON

func (s *GetExecutionsForJobOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*GetExecutionsForJobOK) Validate

func (s *GetExecutionsForJobOK) Validate() error

type GetExecutionsForJobParams

type GetExecutionsForJobParams struct {
	JobId int64
	// The current position of the cursor.
	Cursor OptInt64
	// The limit for the records.
	Limit OptInt64
	// Authentication token.
	XAuthToken OptString
}

GetExecutionsForJobParams is parameters of getExecutionsForJob operation.

type GetExecutionsForJobRes

type GetExecutionsForJobRes interface {
	// contains filtered or unexported methods
}

type GetLanguageByIdForbidden

type GetLanguageByIdForbidden Error

func (*GetLanguageByIdForbidden) Decode

func (s *GetLanguageByIdForbidden) Decode(d *jx.Decoder) error

Decode decodes GetLanguageByIdForbidden from json.

func (*GetLanguageByIdForbidden) Encode

func (s *GetLanguageByIdForbidden) Encode(e *jx.Encoder)

Encode encodes GetLanguageByIdForbidden as json.

func (*GetLanguageByIdForbidden) MarshalJSON

func (s *GetLanguageByIdForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLanguageByIdForbidden) UnmarshalJSON

func (s *GetLanguageByIdForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLanguageByIdInternalServerError

type GetLanguageByIdInternalServerError Error

func (*GetLanguageByIdInternalServerError) Decode

Decode decodes GetLanguageByIdInternalServerError from json.

func (*GetLanguageByIdInternalServerError) Encode

Encode encodes GetLanguageByIdInternalServerError as json.

func (*GetLanguageByIdInternalServerError) MarshalJSON

func (s *GetLanguageByIdInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLanguageByIdInternalServerError) UnmarshalJSON

func (s *GetLanguageByIdInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLanguageByIdNotFound

type GetLanguageByIdNotFound Error

func (*GetLanguageByIdNotFound) Decode

func (s *GetLanguageByIdNotFound) Decode(d *jx.Decoder) error

Decode decodes GetLanguageByIdNotFound from json.

func (*GetLanguageByIdNotFound) Encode

func (s *GetLanguageByIdNotFound) Encode(e *jx.Encoder)

Encode encodes GetLanguageByIdNotFound as json.

func (*GetLanguageByIdNotFound) MarshalJSON

func (s *GetLanguageByIdNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLanguageByIdNotFound) UnmarshalJSON

func (s *GetLanguageByIdNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLanguageByIdOK

type GetLanguageByIdOK struct {
	Language LanguageResponse `json:"language"`
}

func (*GetLanguageByIdOK) Decode

func (s *GetLanguageByIdOK) Decode(d *jx.Decoder) error

Decode decodes GetLanguageByIdOK from json.

func (*GetLanguageByIdOK) Encode

func (s *GetLanguageByIdOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetLanguageByIdOK) GetLanguage

func (s *GetLanguageByIdOK) GetLanguage() LanguageResponse

GetLanguage returns the value of Language.

func (*GetLanguageByIdOK) MarshalJSON

func (s *GetLanguageByIdOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLanguageByIdOK) SetLanguage

func (s *GetLanguageByIdOK) SetLanguage(val LanguageResponse)

SetLanguage sets the value of Language.

func (*GetLanguageByIdOK) UnmarshalJSON

func (s *GetLanguageByIdOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLanguageByIdParams

type GetLanguageByIdParams struct {
	// The ID of the language to retrieve.
	ID int64
	// Authentication token.
	XAuthToken OptString
}

GetLanguageByIdParams is parameters of getLanguageById operation.

type GetLanguageByIdRes

type GetLanguageByIdRes interface {
	// contains filtered or unexported methods
}

type GetLanguageVersionByIdForbidden

type GetLanguageVersionByIdForbidden Error

func (*GetLanguageVersionByIdForbidden) Decode

Decode decodes GetLanguageVersionByIdForbidden from json.

func (*GetLanguageVersionByIdForbidden) Encode

Encode encodes GetLanguageVersionByIdForbidden as json.

func (*GetLanguageVersionByIdForbidden) MarshalJSON

func (s *GetLanguageVersionByIdForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLanguageVersionByIdForbidden) UnmarshalJSON

func (s *GetLanguageVersionByIdForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLanguageVersionByIdInternalServerError

type GetLanguageVersionByIdInternalServerError Error

func (*GetLanguageVersionByIdInternalServerError) Decode

Decode decodes GetLanguageVersionByIdInternalServerError from json.

func (*GetLanguageVersionByIdInternalServerError) Encode

Encode encodes GetLanguageVersionByIdInternalServerError as json.

func (*GetLanguageVersionByIdInternalServerError) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*GetLanguageVersionByIdInternalServerError) UnmarshalJSON

func (s *GetLanguageVersionByIdInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLanguageVersionByIdNotFound

type GetLanguageVersionByIdNotFound Error

func (*GetLanguageVersionByIdNotFound) Decode

Decode decodes GetLanguageVersionByIdNotFound from json.

func (*GetLanguageVersionByIdNotFound) Encode

Encode encodes GetLanguageVersionByIdNotFound as json.

func (*GetLanguageVersionByIdNotFound) MarshalJSON

func (s *GetLanguageVersionByIdNotFound) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLanguageVersionByIdNotFound) UnmarshalJSON

func (s *GetLanguageVersionByIdNotFound) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLanguageVersionByIdOK

type GetLanguageVersionByIdOK struct {
	Language LanguageVersionResponse `json:"language"`
}

func (*GetLanguageVersionByIdOK) Decode

func (s *GetLanguageVersionByIdOK) Decode(d *jx.Decoder) error

Decode decodes GetLanguageVersionByIdOK from json.

func (*GetLanguageVersionByIdOK) Encode

func (s *GetLanguageVersionByIdOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetLanguageVersionByIdOK) GetLanguage

GetLanguage returns the value of Language.

func (*GetLanguageVersionByIdOK) MarshalJSON

func (s *GetLanguageVersionByIdOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetLanguageVersionByIdOK) SetLanguage

SetLanguage sets the value of Language.

func (*GetLanguageVersionByIdOK) UnmarshalJSON

func (s *GetLanguageVersionByIdOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetLanguageVersionByIdParams

type GetLanguageVersionByIdParams struct {
	// The ID of the language version to retrieve.
	ID int64
	// Authentication token.
	XAuthToken OptString
}

GetLanguageVersionByIdParams is parameters of getLanguageVersionById operation.

type GetLanguageVersionByIdRes

type GetLanguageVersionByIdRes interface {
	// contains filtered or unexported methods
}

type GetSandboxOK

type GetSandboxOK struct {
	Type         GetSandboxOKType // switch on this field
	Sandbox      Sandbox
	SandboxState SandboxState
}

GetSandboxOK represents sum type.

func NewSandboxGetSandboxOK

func NewSandboxGetSandboxOK(v Sandbox) GetSandboxOK

NewSandboxGetSandboxOK returns new GetSandboxOK from Sandbox.

func NewSandboxStateGetSandboxOK

func NewSandboxStateGetSandboxOK(v SandboxState) GetSandboxOK

NewSandboxStateGetSandboxOK returns new GetSandboxOK from SandboxState.

func (*GetSandboxOK) Decode

func (s *GetSandboxOK) Decode(d *jx.Decoder) error

Decode decodes GetSandboxOK from json.

func (GetSandboxOK) Encode

func (s GetSandboxOK) Encode(e *jx.Encoder)

Encode encodes GetSandboxOK as json.

func (GetSandboxOK) GetSandbox

func (s GetSandboxOK) GetSandbox() (v Sandbox, ok bool)

GetSandbox returns Sandbox and true boolean if GetSandboxOK is Sandbox.

func (GetSandboxOK) GetSandboxState

func (s GetSandboxOK) GetSandboxState() (v SandboxState, ok bool)

GetSandboxState returns SandboxState and true boolean if GetSandboxOK is SandboxState.

func (GetSandboxOK) IsSandbox

func (s GetSandboxOK) IsSandbox() bool

IsSandbox reports whether GetSandboxOK is Sandbox.

func (GetSandboxOK) IsSandboxState

func (s GetSandboxOK) IsSandboxState() bool

IsSandboxState reports whether GetSandboxOK is SandboxState.

func (GetSandboxOK) MarshalJSON

func (s GetSandboxOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetSandboxOK) SetSandbox

func (s *GetSandboxOK) SetSandbox(v Sandbox)

SetSandbox sets GetSandboxOK to Sandbox.

func (*GetSandboxOK) SetSandboxState

func (s *GetSandboxOK) SetSandboxState(v SandboxState)

SetSandboxState sets GetSandboxOK to SandboxState.

func (*GetSandboxOK) UnmarshalJSON

func (s *GetSandboxOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetSandboxOKType

type GetSandboxOKType string

GetSandboxOKType is oneOf type of GetSandboxOK.

const (
	SandboxGetSandboxOK      GetSandboxOKType = "Sandbox"
	SandboxStateGetSandboxOK GetSandboxOKType = "SandboxState"
)

Possible values for GetSandboxOKType.

type GetSandboxParams

type GetSandboxParams struct {
	SandboxId int64
	// Authentication token.
	XAuthToken OptString
}

GetSandboxParams is parameters of getSandbox operation.

type GetSandboxRes

type GetSandboxRes interface {
	// contains filtered or unexported methods
}

type GetVersionOK

type GetVersionOK struct {
	Version string `json:"version"`
}

func (*GetVersionOK) Decode

func (s *GetVersionOK) Decode(d *jx.Decoder) error

Decode decodes GetVersionOK from json.

func (*GetVersionOK) Encode

func (s *GetVersionOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*GetVersionOK) GetVersion

func (s *GetVersionOK) GetVersion() string

GetVersion returns the value of Version.

func (*GetVersionOK) MarshalJSON

func (s *GetVersionOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GetVersionOK) SetVersion

func (s *GetVersionOK) SetVersion(val string)

SetVersion sets the value of Version.

func (*GetVersionOK) UnmarshalJSON

func (s *GetVersionOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type GetVersionParams

type GetVersionParams struct {
	// Authentication token.
	XAuthToken OptString
}

GetVersionParams is parameters of getVersion operation.

type GetVersionRes

type GetVersionRes interface {
	// contains filtered or unexported methods
}

type Handler

type Handler interface {
	// CancelExecutionJob implements cancelExecutionJob operation.
	//
	// Cancel Execution Job.
	//
	// PUT /executions/jobs/{JobId}
	CancelExecutionJob(ctx context.Context, params CancelExecutionJobParams) (CancelExecutionJobRes, error)
	// CreateSandbox implements createSandbox operation.
	//
	// Create a sandbox.
	//
	// POST /sandbox
	CreateSandbox(ctx context.Context, req OptCreateSandbox, params CreateSandboxParams) (CreateSandboxRes, error)
	// DeleteExecutionJob implements deleteExecutionJob operation.
	//
	// Delete execution job.
	//
	// DELETE /executions/jobs/{JobId}
	DeleteExecutionJob(ctx context.Context, params DeleteExecutionJobParams) (DeleteExecutionJobRes, error)
	// Execute implements execute operation.
	//
	// Execute a script.
	//
	// POST /executions/execute
	Execute(ctx context.Context, req *ExecutionRequest, params ExecuteParams) (ExecuteRes, error)
	// FetchFlake implements fetchFlake operation.
	//
	// Fetches flake of a given job.
	//
	// GET /flake/{jobId}
	FetchFlake(ctx context.Context, params FetchFlakeParams) (FetchFlakeRes, error)
	// FetchLanguagePackages implements FetchLanguagePackages operation.
	//
	// Initialize the search results content with a default set of language specific packages.
	//
	// GET /fetch/language
	FetchLanguagePackages(ctx context.Context, params FetchLanguagePackagesParams) (FetchLanguagePackagesRes, error)
	// FetchSystemPackages implements FetchSystemPackages operation.
	//
	// Initialize the search results content with a default set of system packages.
	//
	// GET /fetch/system
	FetchSystemPackages(ctx context.Context, params FetchSystemPackagesParams) (FetchSystemPackagesRes, error)
	// GetAllExecutionJobs implements getAllExecutionJobs operation.
	//
	// Get all execution jobs.
	//
	// GET /jobs/execution
	GetAllExecutionJobs(ctx context.Context, params GetAllExecutionJobsParams) (GetAllExecutionJobsRes, error)
	// GetAllExecutions implements getAllExecutions operation.
	//
	// Get all executions.
	//
	// GET /executions
	GetAllExecutions(ctx context.Context, params GetAllExecutionsParams) (GetAllExecutionsRes, error)
	// GetAllLanguageVersions implements getAllLanguageVersions operation.
	//
	// Retrieve a list of all language versions from the database.
	//
	// GET /language-versions
	GetAllLanguageVersions(ctx context.Context, params GetAllLanguageVersionsParams) (GetAllLanguageVersionsRes, error)
	// GetAllLanguages implements getAllLanguages operation.
	//
	// Retrieve a list of all languages from the database.
	//
	// GET /languages
	GetAllLanguages(ctx context.Context, params GetAllLanguagesParams) (GetAllLanguagesRes, error)
	// GetAllVersions implements getAllVersions operation.
	//
	// Retrieve a list of all language versions from the database.
	//
	// GET /languages/{id}/versions
	GetAllVersions(ctx context.Context, params GetAllVersionsParams) (GetAllVersionsRes, error)
	// GetExecutionConfig implements getExecutionConfig operation.
	//
	// Get execution config.
	//
	// GET /execution/config
	GetExecutionConfig(ctx context.Context, params GetExecutionConfigParams) (GetExecutionConfigRes, error)
	// GetExecutionJobById implements getExecutionJobById operation.
	//
	// Get execution job.
	//
	// GET /executions/jobs/{JobId}
	GetExecutionJobById(ctx context.Context, params GetExecutionJobByIdParams) (GetExecutionJobByIdRes, error)
	// GetExecutionResultById implements getExecutionResultById operation.
	//
	// Get execution result by id.
	//
	// GET /executions/{execId}
	GetExecutionResultById(ctx context.Context, params GetExecutionResultByIdParams) (GetExecutionResultByIdRes, error)
	// GetExecutionsForJob implements getExecutionsForJob operation.
	//
	// Get executions of given job.
	//
	// GET /jobs/{JobId}/executions
	GetExecutionsForJob(ctx context.Context, params GetExecutionsForJobParams) (GetExecutionsForJobRes, error)
	// GetLanguageById implements getLanguageById operation.
	//
	// Retrieve a language entry from the database using its ID.
	//
	// GET /languages/{id}
	GetLanguageById(ctx context.Context, params GetLanguageByIdParams) (GetLanguageByIdRes, error)
	// GetLanguageVersionById implements getLanguageVersionById operation.
	//
	// Retrieve a language version entry from the database using its ID.
	//
	// GET /language-versions/{id}
	GetLanguageVersionById(ctx context.Context, params GetLanguageVersionByIdParams) (GetLanguageVersionByIdRes, error)
	// GetSandbox implements getSandbox operation.
	//
	// Retrieve Sandbox details.
	//
	// GET /sandbox/{sandboxId}
	GetSandbox(ctx context.Context, params GetSandboxParams) (GetSandboxRes, error)
	// GetVersion implements getVersion operation.
	//
	// Get version.
	//
	// GET /version
	GetVersion(ctx context.Context, params GetVersionParams) (GetVersionRes, error)
	// Health implements health operation.
	//
	// Health Check.
	//
	// GET /health
	Health(ctx context.Context) error
	// PackagesExist implements PackagesExist operation.
	//
	// Verify the package list is available for the language version while switching between language
	// versions.
	//
	// POST /packages/exist
	PackagesExist(ctx context.Context, req *PackageExistRequest, params PackagesExistParams) (PackagesExistRes, error)
	// SearchLanguagePackages implements SearchLanguagePackages operation.
	//
	// Search for language specific packages.
	//
	// GET /search/language
	SearchLanguagePackages(ctx context.Context, params SearchLanguagePackagesParams) (SearchLanguagePackagesRes, error)
	// SearchSystemPackages implements SearchSystemPackages operation.
	//
	// Search for system packages.
	//
	// GET /search/system
	SearchSystemPackages(ctx context.Context, params SearchSystemPackagesParams) (SearchSystemPackagesRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type HealthOK

type HealthOK struct{}

HealthOK is response for Health operation.

type Invoker

type Invoker interface {
	// CancelExecutionJob invokes cancelExecutionJob operation.
	//
	// Cancel Execution Job.
	//
	// PUT /executions/jobs/{JobId}
	CancelExecutionJob(ctx context.Context, params CancelExecutionJobParams) (CancelExecutionJobRes, error)
	// CreateSandbox invokes createSandbox operation.
	//
	// Create a sandbox.
	//
	// POST /sandbox
	CreateSandbox(ctx context.Context, request OptCreateSandbox, params CreateSandboxParams) (CreateSandboxRes, error)
	// DeleteExecutionJob invokes deleteExecutionJob operation.
	//
	// Delete execution job.
	//
	// DELETE /executions/jobs/{JobId}
	DeleteExecutionJob(ctx context.Context, params DeleteExecutionJobParams) (DeleteExecutionJobRes, error)
	// Execute invokes execute operation.
	//
	// Execute a script.
	//
	// POST /executions/execute
	Execute(ctx context.Context, request *ExecutionRequest, params ExecuteParams) (ExecuteRes, error)
	// FetchFlake invokes fetchFlake operation.
	//
	// Fetches flake of a given job.
	//
	// GET /flake/{jobId}
	FetchFlake(ctx context.Context, params FetchFlakeParams) (FetchFlakeRes, error)
	// FetchLanguagePackages invokes FetchLanguagePackages operation.
	//
	// Initialize the search results content with a default set of language specific packages.
	//
	// GET /fetch/language
	FetchLanguagePackages(ctx context.Context, params FetchLanguagePackagesParams) (FetchLanguagePackagesRes, error)
	// FetchSystemPackages invokes FetchSystemPackages operation.
	//
	// Initialize the search results content with a default set of system packages.
	//
	// GET /fetch/system
	FetchSystemPackages(ctx context.Context, params FetchSystemPackagesParams) (FetchSystemPackagesRes, error)
	// GetAllExecutionJobs invokes getAllExecutionJobs operation.
	//
	// Get all execution jobs.
	//
	// GET /jobs/execution
	GetAllExecutionJobs(ctx context.Context, params GetAllExecutionJobsParams) (GetAllExecutionJobsRes, error)
	// GetAllExecutions invokes getAllExecutions operation.
	//
	// Get all executions.
	//
	// GET /executions
	GetAllExecutions(ctx context.Context, params GetAllExecutionsParams) (GetAllExecutionsRes, error)
	// GetAllLanguageVersions invokes getAllLanguageVersions operation.
	//
	// Retrieve a list of all language versions from the database.
	//
	// GET /language-versions
	GetAllLanguageVersions(ctx context.Context, params GetAllLanguageVersionsParams) (GetAllLanguageVersionsRes, error)
	// GetAllLanguages invokes getAllLanguages operation.
	//
	// Retrieve a list of all languages from the database.
	//
	// GET /languages
	GetAllLanguages(ctx context.Context, params GetAllLanguagesParams) (GetAllLanguagesRes, error)
	// GetAllVersions invokes getAllVersions operation.
	//
	// Retrieve a list of all language versions from the database.
	//
	// GET /languages/{id}/versions
	GetAllVersions(ctx context.Context, params GetAllVersionsParams) (GetAllVersionsRes, error)
	// GetExecutionConfig invokes getExecutionConfig operation.
	//
	// Get execution config.
	//
	// GET /execution/config
	GetExecutionConfig(ctx context.Context, params GetExecutionConfigParams) (GetExecutionConfigRes, error)
	// GetExecutionJobById invokes getExecutionJobById operation.
	//
	// Get execution job.
	//
	// GET /executions/jobs/{JobId}
	GetExecutionJobById(ctx context.Context, params GetExecutionJobByIdParams) (GetExecutionJobByIdRes, error)
	// GetExecutionResultById invokes getExecutionResultById operation.
	//
	// Get execution result by id.
	//
	// GET /executions/{execId}
	GetExecutionResultById(ctx context.Context, params GetExecutionResultByIdParams) (GetExecutionResultByIdRes, error)
	// GetExecutionsForJob invokes getExecutionsForJob operation.
	//
	// Get executions of given job.
	//
	// GET /jobs/{JobId}/executions
	GetExecutionsForJob(ctx context.Context, params GetExecutionsForJobParams) (GetExecutionsForJobRes, error)
	// GetLanguageById invokes getLanguageById operation.
	//
	// Retrieve a language entry from the database using its ID.
	//
	// GET /languages/{id}
	GetLanguageById(ctx context.Context, params GetLanguageByIdParams) (GetLanguageByIdRes, error)
	// GetLanguageVersionById invokes getLanguageVersionById operation.
	//
	// Retrieve a language version entry from the database using its ID.
	//
	// GET /language-versions/{id}
	GetLanguageVersionById(ctx context.Context, params GetLanguageVersionByIdParams) (GetLanguageVersionByIdRes, error)
	// GetSandbox invokes getSandbox operation.
	//
	// Retrieve Sandbox details.
	//
	// GET /sandbox/{sandboxId}
	GetSandbox(ctx context.Context, params GetSandboxParams) (GetSandboxRes, error)
	// GetVersion invokes getVersion operation.
	//
	// Get version.
	//
	// GET /version
	GetVersion(ctx context.Context, params GetVersionParams) (GetVersionRes, error)
	// Health invokes health operation.
	//
	// Health Check.
	//
	// GET /health
	Health(ctx context.Context) error
	// PackagesExist invokes PackagesExist operation.
	//
	// Verify the package list is available for the language version while switching between language
	// versions.
	//
	// POST /packages/exist
	PackagesExist(ctx context.Context, request *PackageExistRequest, params PackagesExistParams) (PackagesExistRes, error)
	// SearchLanguagePackages invokes SearchLanguagePackages operation.
	//
	// Search for language specific packages.
	//
	// GET /search/language
	SearchLanguagePackages(ctx context.Context, params SearchLanguagePackagesParams) (SearchLanguagePackagesRes, error)
	// SearchSystemPackages invokes SearchSystemPackages operation.
	//
	// Search for system packages.
	//
	// GET /search/system
	SearchSystemPackages(ctx context.Context, params SearchSystemPackagesParams) (SearchSystemPackagesRes, error)
}

Invoker invokes operations described by OpenAPI v3 specification.

type Job

type Job struct {
	JobId     int64       `json:"jobId"`
	Script    string      `json:"script"`
	Flake     string      `json:"flake"`
	CreatedAt time.Time   `json:"created_at"`
	StartedAt OptDateTime `json:"started_at"`
	UpdatedAt OptDateTime `json:"updated_at"`
}

Ref: #/components/schemas/Job

func (*Job) Decode

func (s *Job) Decode(d *jx.Decoder) error

Decode decodes Job from json.

func (*Job) Encode

func (s *Job) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Job) GetCreatedAt

func (s *Job) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Job) GetFlake

func (s *Job) GetFlake() string

GetFlake returns the value of Flake.

func (*Job) GetJobId

func (s *Job) GetJobId() int64

GetJobId returns the value of JobId.

func (*Job) GetScript

func (s *Job) GetScript() string

GetScript returns the value of Script.

func (*Job) GetStartedAt

func (s *Job) GetStartedAt() OptDateTime

GetStartedAt returns the value of StartedAt.

func (*Job) GetUpdatedAt

func (s *Job) GetUpdatedAt() OptDateTime

GetUpdatedAt returns the value of UpdatedAt.

func (*Job) MarshalJSON

func (s *Job) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Job) SetCreatedAt

func (s *Job) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Job) SetFlake

func (s *Job) SetFlake(val string)

SetFlake sets the value of Flake.

func (*Job) SetJobId

func (s *Job) SetJobId(val int64)

SetJobId sets the value of JobId.

func (*Job) SetScript

func (s *Job) SetScript(val string)

SetScript sets the value of Script.

func (*Job) SetStartedAt

func (s *Job) SetStartedAt(val OptDateTime)

SetStartedAt sets the value of StartedAt.

func (*Job) SetUpdatedAt

func (s *Job) SetUpdatedAt(val OptDateTime)

SetUpdatedAt sets the value of UpdatedAt.

func (*Job) UnmarshalJSON

func (s *Job) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Labeler

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

Labeler is used to allow adding custom attributes to the server request metrics.

func LabelerFromContext

func LabelerFromContext(ctx context.Context) (*Labeler, bool)

LabelerFromContext retrieves the Labeler from the provided context, if present.

If no Labeler was found in the provided context a new, empty Labeler is returned and the second return value is false. In this case it is safe to use the Labeler but any attributes added to it will not be used.

func (*Labeler) Add

func (l *Labeler) Add(attrs ...attribute.KeyValue)

Add attributes to the Labeler.

func (*Labeler) AttributeSet

func (l *Labeler) AttributeSet() attribute.Set

AttributeSet returns the attributes added to the Labeler as an attribute.Set.

type LanguageResponse

type LanguageResponse struct {
	// Merged property.
	Name string `json:"name"`
	// Merged property.
	Extension string `json:"extension"`
	// Merged property.
	MonacoLanguage string `json:"monaco_language"`
	// Merged property.
	DefaultCode string `json:"default_code"`
	// The default template for the language.
	Template string `json:"template"`
	// Unique identifier for the language version.
	ID int64 `json:"id"`
}

Merged schema. Ref: #/components/schemas/LanguageResponse

func (*LanguageResponse) Decode

func (s *LanguageResponse) Decode(d *jx.Decoder) error

Decode decodes LanguageResponse from json.

func (*LanguageResponse) Encode

func (s *LanguageResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LanguageResponse) GetDefaultCode

func (s *LanguageResponse) GetDefaultCode() string

GetDefaultCode returns the value of DefaultCode.

func (*LanguageResponse) GetExtension

func (s *LanguageResponse) GetExtension() string

GetExtension returns the value of Extension.

func (*LanguageResponse) GetID

func (s *LanguageResponse) GetID() int64

GetID returns the value of ID.

func (*LanguageResponse) GetMonacoLanguage

func (s *LanguageResponse) GetMonacoLanguage() string

GetMonacoLanguage returns the value of MonacoLanguage.

func (*LanguageResponse) GetName

func (s *LanguageResponse) GetName() string

GetName returns the value of Name.

func (*LanguageResponse) GetTemplate

func (s *LanguageResponse) GetTemplate() string

GetTemplate returns the value of Template.

func (*LanguageResponse) MarshalJSON

func (s *LanguageResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LanguageResponse) SetDefaultCode

func (s *LanguageResponse) SetDefaultCode(val string)

SetDefaultCode sets the value of DefaultCode.

func (*LanguageResponse) SetExtension

func (s *LanguageResponse) SetExtension(val string)

SetExtension sets the value of Extension.

func (*LanguageResponse) SetID

func (s *LanguageResponse) SetID(val int64)

SetID sets the value of ID.

func (*LanguageResponse) SetMonacoLanguage

func (s *LanguageResponse) SetMonacoLanguage(val string)

SetMonacoLanguage sets the value of MonacoLanguage.

func (*LanguageResponse) SetName

func (s *LanguageResponse) SetName(val string)

SetName sets the value of Name.

func (*LanguageResponse) SetTemplate

func (s *LanguageResponse) SetTemplate(val string)

SetTemplate sets the value of Template.

func (*LanguageResponse) UnmarshalJSON

func (s *LanguageResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type LanguageVersionResponse

type LanguageVersionResponse struct {
	// Reference to the parent language.
	LanguageID int64 `json:"language_id"`
	// Version identifier of the language.
	Version string `json:"version"`
	// Name of the Nix package.
	NixPackageName string `json:"nix_package_name"`
	Template       string `json:"template"`
	// Search query string.
	SearchQuery string `json:"search_query"`
	// Whether this is the default version of the language.
	DefaultVersion bool `json:"default_version"`
	// Unique identifier for the language version.
	ID int64 `json:"id"`
}

Merged schema. Ref: #/components/schemas/LanguageVersionResponse

func (*LanguageVersionResponse) Decode

func (s *LanguageVersionResponse) Decode(d *jx.Decoder) error

Decode decodes LanguageVersionResponse from json.

func (*LanguageVersionResponse) Encode

func (s *LanguageVersionResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*LanguageVersionResponse) GetDefaultVersion

func (s *LanguageVersionResponse) GetDefaultVersion() bool

GetDefaultVersion returns the value of DefaultVersion.

func (*LanguageVersionResponse) GetID

func (s *LanguageVersionResponse) GetID() int64

GetID returns the value of ID.

func (*LanguageVersionResponse) GetLanguageID

func (s *LanguageVersionResponse) GetLanguageID() int64

GetLanguageID returns the value of LanguageID.

func (*LanguageVersionResponse) GetNixPackageName

func (s *LanguageVersionResponse) GetNixPackageName() string

GetNixPackageName returns the value of NixPackageName.

func (*LanguageVersionResponse) GetSearchQuery

func (s *LanguageVersionResponse) GetSearchQuery() string

GetSearchQuery returns the value of SearchQuery.

func (*LanguageVersionResponse) GetTemplate

func (s *LanguageVersionResponse) GetTemplate() string

GetTemplate returns the value of Template.

func (*LanguageVersionResponse) GetVersion

func (s *LanguageVersionResponse) GetVersion() string

GetVersion returns the value of Version.

func (*LanguageVersionResponse) MarshalJSON

func (s *LanguageVersionResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*LanguageVersionResponse) SetDefaultVersion

func (s *LanguageVersionResponse) SetDefaultVersion(val bool)

SetDefaultVersion sets the value of DefaultVersion.

func (*LanguageVersionResponse) SetID

func (s *LanguageVersionResponse) SetID(val int64)

SetID sets the value of ID.

func (*LanguageVersionResponse) SetLanguageID

func (s *LanguageVersionResponse) SetLanguageID(val int64)

SetLanguageID sets the value of LanguageID.

func (*LanguageVersionResponse) SetNixPackageName

func (s *LanguageVersionResponse) SetNixPackageName(val string)

SetNixPackageName sets the value of NixPackageName.

func (*LanguageVersionResponse) SetSearchQuery

func (s *LanguageVersionResponse) SetSearchQuery(val string)

SetSearchQuery sets the value of SearchQuery.

func (*LanguageVersionResponse) SetTemplate

func (s *LanguageVersionResponse) SetTemplate(val string)

SetTemplate sets the value of Template.

func (*LanguageVersionResponse) SetVersion

func (s *LanguageVersionResponse) SetVersion(val string)

SetVersion sets the value of Version.

func (*LanguageVersionResponse) UnmarshalJSON

func (s *LanguageVersionResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type OperationName

type OperationName = string

OperationName is the ogen operation name

const (
	CancelExecutionJobOperation     OperationName = "CancelExecutionJob"
	CreateSandboxOperation          OperationName = "CreateSandbox"
	DeleteExecutionJobOperation     OperationName = "DeleteExecutionJob"
	ExecuteOperation                OperationName = "Execute"
	FetchFlakeOperation             OperationName = "FetchFlake"
	FetchLanguagePackagesOperation  OperationName = "FetchLanguagePackages"
	FetchSystemPackagesOperation    OperationName = "FetchSystemPackages"
	GetAllExecutionJobsOperation    OperationName = "GetAllExecutionJobs"
	GetAllExecutionsOperation       OperationName = "GetAllExecutions"
	GetAllLanguageVersionsOperation OperationName = "GetAllLanguageVersions"
	GetAllLanguagesOperation        OperationName = "GetAllLanguages"
	GetAllVersionsOperation         OperationName = "GetAllVersions"
	GetExecutionConfigOperation     OperationName = "GetExecutionConfig"
	GetExecutionJobByIdOperation    OperationName = "GetExecutionJobById"
	GetExecutionResultByIdOperation OperationName = "GetExecutionResultById"
	GetExecutionsForJobOperation    OperationName = "GetExecutionsForJob"
	GetLanguageByIdOperation        OperationName = "GetLanguageById"
	GetLanguageVersionByIdOperation OperationName = "GetLanguageVersionById"
	GetSandboxOperation             OperationName = "GetSandbox"
	GetVersionOperation             OperationName = "GetVersion"
	HealthOperation                 OperationName = "Health"
	PackagesExistOperation          OperationName = "PackagesExist"
	SearchLanguagePackagesOperation OperationName = "SearchLanguagePackages"
	SearchSystemPackagesOperation   OperationName = "SearchSystemPackages"
)

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptCreateSandbox

type OptCreateSandbox struct {
	Value CreateSandbox
	Set   bool
}

OptCreateSandbox is optional CreateSandbox.

func NewOptCreateSandbox

func NewOptCreateSandbox(v CreateSandbox) OptCreateSandbox

NewOptCreateSandbox returns new OptCreateSandbox with value set to v.

func (*OptCreateSandbox) Decode

func (o *OptCreateSandbox) Decode(d *jx.Decoder) error

Decode decodes CreateSandbox from json.

func (OptCreateSandbox) Encode

func (o OptCreateSandbox) Encode(e *jx.Encoder)

Encode encodes CreateSandbox as json.

func (OptCreateSandbox) Get

func (o OptCreateSandbox) Get() (v CreateSandbox, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptCreateSandbox) IsSet

func (o OptCreateSandbox) IsSet() bool

IsSet returns true if OptCreateSandbox was set.

func (OptCreateSandbox) MarshalJSON

func (s OptCreateSandbox) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptCreateSandbox) Or

Or returns value if set, or given parameter if does not.

func (*OptCreateSandbox) Reset

func (o *OptCreateSandbox) Reset()

Reset unsets value.

func (*OptCreateSandbox) SetTo

func (o *OptCreateSandbox) SetTo(v CreateSandbox)

SetTo sets value to v.

func (*OptCreateSandbox) UnmarshalJSON

func (s *OptCreateSandbox) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptExecutionEnvironmentSpec

type OptExecutionEnvironmentSpec struct {
	Value ExecutionEnvironmentSpec
	Set   bool
}

OptExecutionEnvironmentSpec is optional ExecutionEnvironmentSpec.

func NewOptExecutionEnvironmentSpec

func NewOptExecutionEnvironmentSpec(v ExecutionEnvironmentSpec) OptExecutionEnvironmentSpec

NewOptExecutionEnvironmentSpec returns new OptExecutionEnvironmentSpec with value set to v.

func (*OptExecutionEnvironmentSpec) Decode

Decode decodes ExecutionEnvironmentSpec from json.

func (OptExecutionEnvironmentSpec) Encode

func (o OptExecutionEnvironmentSpec) Encode(e *jx.Encoder)

Encode encodes ExecutionEnvironmentSpec as json.

func (OptExecutionEnvironmentSpec) Get

Get returns value and boolean that denotes whether value was set.

func (OptExecutionEnvironmentSpec) IsSet

IsSet returns true if OptExecutionEnvironmentSpec was set.

func (OptExecutionEnvironmentSpec) MarshalJSON

func (s OptExecutionEnvironmentSpec) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptExecutionEnvironmentSpec) Or

Or returns value if set, or given parameter if does not.

func (*OptExecutionEnvironmentSpec) Reset

func (o *OptExecutionEnvironmentSpec) Reset()

Reset unsets value.

func (*OptExecutionEnvironmentSpec) SetTo

SetTo sets value to v.

func (*OptExecutionEnvironmentSpec) UnmarshalJSON

func (s *OptExecutionEnvironmentSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt32

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode

func (o *OptInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptInt32) Encode

func (o OptInt32) Encode(e *jx.Encoder)

Encode encodes int32 as json.

func (OptInt32) Get

func (o OptInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt32) IsSet

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) MarshalJSON

func (s OptInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt32) Or

func (o OptInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptInt32) Reset

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetTo

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptInt32) UnmarshalJSON

func (s *OptInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt64

type OptInt64 struct {
	Value int64
	Set   bool
}

OptInt64 is optional int64.

func NewOptInt64

func NewOptInt64(v int64) OptInt64

NewOptInt64 returns new OptInt64 with value set to v.

func (OptInt64) Get

func (o OptInt64) Get() (v int64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt64) IsSet

func (o OptInt64) IsSet() bool

IsSet returns true if OptInt64 was set.

func (OptInt64) Or

func (o OptInt64) Or(d int64) int64

Or returns value if set, or given parameter if does not.

func (*OptInt64) Reset

func (o *OptInt64) Reset()

Reset unsets value.

func (*OptInt64) SetTo

func (o *OptInt64) SetTo(v int64)

SetTo sets value to v.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the otel.GetMeterProvider() is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type Package

type Package struct {
	// Name of the package.
	Name string `json:"name"`
	// Version of the package.
	Version string `json:"version"`
}

Ref: #/components/schemas/Package

func (*Package) Decode

func (s *Package) Decode(d *jx.Decoder) error

Decode decodes Package from json.

func (*Package) Encode

func (s *Package) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Package) GetName

func (s *Package) GetName() string

GetName returns the value of Name.

func (*Package) GetVersion

func (s *Package) GetVersion() string

GetVersion returns the value of Version.

func (*Package) MarshalJSON

func (s *Package) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Package) SetName

func (s *Package) SetName(val string)

SetName sets the value of Name.

func (*Package) SetVersion

func (s *Package) SetVersion(val string)

SetVersion sets the value of Version.

func (*Package) UnmarshalJSON

func (s *Package) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PackageExistRequest

type PackageExistRequest struct {
	// The language to check the packages against.
	Language string `json:"language"`
	// List of packages to verify.
	Packages []string `json:"packages"`
}

Ref: #/components/schemas/PackageExistRequest

func (*PackageExistRequest) Decode

func (s *PackageExistRequest) Decode(d *jx.Decoder) error

Decode decodes PackageExistRequest from json.

func (*PackageExistRequest) Encode

func (s *PackageExistRequest) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PackageExistRequest) GetLanguage

func (s *PackageExistRequest) GetLanguage() string

GetLanguage returns the value of Language.

func (*PackageExistRequest) GetPackages

func (s *PackageExistRequest) GetPackages() []string

GetPackages returns the value of Packages.

func (*PackageExistRequest) MarshalJSON

func (s *PackageExistRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PackageExistRequest) SetLanguage

func (s *PackageExistRequest) SetLanguage(val string)

SetLanguage sets the value of Language.

func (*PackageExistRequest) SetPackages

func (s *PackageExistRequest) SetPackages(val []string)

SetPackages sets the value of Packages.

func (*PackageExistRequest) UnmarshalJSON

func (s *PackageExistRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*PackageExistRequest) Validate

func (s *PackageExistRequest) Validate() error

type PackagesExistBadRequest

type PackagesExistBadRequest Error

func (*PackagesExistBadRequest) Decode

func (s *PackagesExistBadRequest) Decode(d *jx.Decoder) error

Decode decodes PackagesExistBadRequest from json.

func (*PackagesExistBadRequest) Encode

func (s *PackagesExistBadRequest) Encode(e *jx.Encoder)

Encode encodes PackagesExistBadRequest as json.

func (*PackagesExistBadRequest) MarshalJSON

func (s *PackagesExistBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PackagesExistBadRequest) UnmarshalJSON

func (s *PackagesExistBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PackagesExistForbidden

type PackagesExistForbidden Error

func (*PackagesExistForbidden) Decode

func (s *PackagesExistForbidden) Decode(d *jx.Decoder) error

Decode decodes PackagesExistForbidden from json.

func (*PackagesExistForbidden) Encode

func (s *PackagesExistForbidden) Encode(e *jx.Encoder)

Encode encodes PackagesExistForbidden as json.

func (*PackagesExistForbidden) MarshalJSON

func (s *PackagesExistForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PackagesExistForbidden) UnmarshalJSON

func (s *PackagesExistForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PackagesExistInternalServerError

type PackagesExistInternalServerError Error

func (*PackagesExistInternalServerError) Decode

Decode decodes PackagesExistInternalServerError from json.

func (*PackagesExistInternalServerError) Encode

Encode encodes PackagesExistInternalServerError as json.

func (*PackagesExistInternalServerError) MarshalJSON

func (s *PackagesExistInternalServerError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PackagesExistInternalServerError) UnmarshalJSON

func (s *PackagesExistInternalServerError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PackagesExistOK

type PackagesExistOK struct {
	// Indicate all packages' existance for given language.
	Exists bool `json:"exists"`
	// List of packages that do not exist for the language.
	NonExistingPackages []string `json:"nonExistingPackages"`
}

func (*PackagesExistOK) Decode

func (s *PackagesExistOK) Decode(d *jx.Decoder) error

Decode decodes PackagesExistOK from json.

func (*PackagesExistOK) Encode

func (s *PackagesExistOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PackagesExistOK) GetExists

func (s *PackagesExistOK) GetExists() bool

GetExists returns the value of Exists.

func (*PackagesExistOK) GetNonExistingPackages

func (s *PackagesExistOK) GetNonExistingPackages() []string

GetNonExistingPackages returns the value of NonExistingPackages.

func (*PackagesExistOK) MarshalJSON

func (s *PackagesExistOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PackagesExistOK) SetExists

func (s *PackagesExistOK) SetExists(val bool)

SetExists sets the value of Exists.

func (*PackagesExistOK) SetNonExistingPackages

func (s *PackagesExistOK) SetNonExistingPackages(val []string)

SetNonExistingPackages sets the value of NonExistingPackages.

func (*PackagesExistOK) UnmarshalJSON

func (s *PackagesExistOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type PackagesExistParams

type PackagesExistParams struct {
	// Authentication token.
	XAuthToken OptString
}

PackagesExistParams is parameters of PackagesExist operation.

type PackagesExistRes

type PackagesExistRes interface {
	// contains filtered or unexported methods
}

type PaginationResponse

type PaginationResponse struct {
	// Represents the total number of items.
	Total int64 `json:"total"`
	// Represents the number of items per page.
	Limit int64 `json:"limit"`
	// Represents the start of the cursor.
	Cursor int64 `json:"cursor"`
}

Ref: #/components/schemas/PaginationResponse

func (*PaginationResponse) Decode

func (s *PaginationResponse) Decode(d *jx.Decoder) error

Decode decodes PaginationResponse from json.

func (*PaginationResponse) Encode

func (s *PaginationResponse) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*PaginationResponse) GetCursor

func (s *PaginationResponse) GetCursor() int64

GetCursor returns the value of Cursor.

func (*PaginationResponse) GetLimit

func (s *PaginationResponse) GetLimit() int64

GetLimit returns the value of Limit.

func (*PaginationResponse) GetTotal

func (s *PaginationResponse) GetTotal() int64

GetTotal returns the value of Total.

func (*PaginationResponse) MarshalJSON

func (s *PaginationResponse) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*PaginationResponse) SetCursor

func (s *PaginationResponse) SetCursor(val int64)

SetCursor sets the value of Cursor.

func (*PaginationResponse) SetLimit

func (s *PaginationResponse) SetLimit(val int64)

SetLimit sets the value of Limit.

func (*PaginationResponse) SetTotal

func (s *PaginationResponse) SetTotal(val int64)

SetTotal sets the value of Total.

func (*PaginationResponse) UnmarshalJSON

func (s *PaginationResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Route

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

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

func (Route) PathPattern

func (r Route) PathPattern() string

PathPattern returns OpenAPI path.

func (Route) Summary

func (r Route) Summary() string

Summary returns OpenAPI summary.

type Sandbox

type Sandbox struct {
	SandboxId int64     `json:"sandboxId"`
	State     string    `json:"state"`
	URL       string    `json:"URL"`
	AgentURL  string    `json:"agentURL"`
	CreatedAt time.Time `json:"created_at"`
}

Ref: #/components/schemas/Sandbox

func (*Sandbox) Decode

func (s *Sandbox) Decode(d *jx.Decoder) error

Decode decodes Sandbox from json.

func (*Sandbox) Encode

func (s *Sandbox) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*Sandbox) GetAgentURL

func (s *Sandbox) GetAgentURL() string

GetAgentURL returns the value of AgentURL.

func (*Sandbox) GetCreatedAt

func (s *Sandbox) GetCreatedAt() time.Time

GetCreatedAt returns the value of CreatedAt.

func (*Sandbox) GetSandboxId

func (s *Sandbox) GetSandboxId() int64

GetSandboxId returns the value of SandboxId.

func (*Sandbox) GetState

func (s *Sandbox) GetState() string

GetState returns the value of State.

func (*Sandbox) GetURL

func (s *Sandbox) GetURL() string

GetURL returns the value of URL.

func (*Sandbox) MarshalJSON

func (s *Sandbox) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Sandbox) SetAgentURL

func (s *Sandbox) SetAgentURL(val string)

SetAgentURL sets the value of AgentURL.

func (*Sandbox) SetCreatedAt

func (s *Sandbox) SetCreatedAt(val time.Time)

SetCreatedAt sets the value of CreatedAt.

func (*Sandbox) SetSandboxId

func (s *Sandbox) SetSandboxId(val int64)

SetSandboxId sets the value of SandboxId.

func (*Sandbox) SetState

func (s *Sandbox) SetState(val string)

SetState sets the value of State.

func (*Sandbox) SetURL

func (s *Sandbox) SetURL(val string)

SetURL sets the value of URL.

func (*Sandbox) UnmarshalJSON

func (s *Sandbox) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SandboxState

type SandboxState struct {
	SandboxId int64  `json:"sandboxId"`
	State     string `json:"state"`
}

Ref: #/components/schemas/SandboxState

func (*SandboxState) Decode

func (s *SandboxState) Decode(d *jx.Decoder) error

Decode decodes SandboxState from json.

func (*SandboxState) Encode

func (s *SandboxState) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SandboxState) GetSandboxId

func (s *SandboxState) GetSandboxId() int64

GetSandboxId returns the value of SandboxId.

func (*SandboxState) GetState

func (s *SandboxState) GetState() string

GetState returns the value of State.

func (*SandboxState) MarshalJSON

func (s *SandboxState) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SandboxState) SetSandboxId

func (s *SandboxState) SetSandboxId(val int64)

SetSandboxId sets the value of SandboxId.

func (*SandboxState) SetState

func (s *SandboxState) SetState(val string)

SetState sets the value of State.

func (*SandboxState) UnmarshalJSON

func (s *SandboxState) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SearchLanguagePackagesBadRequest

type SearchLanguagePackagesBadRequest Error

func (*SearchLanguagePackagesBadRequest) Decode

Decode decodes SearchLanguagePackagesBadRequest from json.

func (*SearchLanguagePackagesBadRequest) Encode

Encode encodes SearchLanguagePackagesBadRequest as json.

func (*SearchLanguagePackagesBadRequest) MarshalJSON

func (s *SearchLanguagePackagesBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchLanguagePackagesBadRequest) UnmarshalJSON

func (s *SearchLanguagePackagesBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SearchLanguagePackagesForbidden

type SearchLanguagePackagesForbidden Error

func (*SearchLanguagePackagesForbidden) Decode

Decode decodes SearchLanguagePackagesForbidden from json.

func (*SearchLanguagePackagesForbidden) Encode

Encode encodes SearchLanguagePackagesForbidden as json.

func (*SearchLanguagePackagesForbidden) MarshalJSON

func (s *SearchLanguagePackagesForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchLanguagePackagesForbidden) UnmarshalJSON

func (s *SearchLanguagePackagesForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SearchLanguagePackagesOK

type SearchLanguagePackagesOK struct {
	Packages []Package `json:"packages"`
}

func (*SearchLanguagePackagesOK) Decode

func (s *SearchLanguagePackagesOK) Decode(d *jx.Decoder) error

Decode decodes SearchLanguagePackagesOK from json.

func (*SearchLanguagePackagesOK) Encode

func (s *SearchLanguagePackagesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SearchLanguagePackagesOK) GetPackages

func (s *SearchLanguagePackagesOK) GetPackages() []Package

GetPackages returns the value of Packages.

func (*SearchLanguagePackagesOK) MarshalJSON

func (s *SearchLanguagePackagesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchLanguagePackagesOK) SetPackages

func (s *SearchLanguagePackagesOK) SetPackages(val []Package)

SetPackages sets the value of Packages.

func (*SearchLanguagePackagesOK) UnmarshalJSON

func (s *SearchLanguagePackagesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SearchLanguagePackagesOK) Validate

func (s *SearchLanguagePackagesOK) Validate() error

type SearchLanguagePackagesParams

type SearchLanguagePackagesParams struct {
	// Authentication token.
	XAuthToken OptString
	// The language for which the package is searched.
	Language string
	// The string to be searched.
	SearchString string
}

SearchLanguagePackagesParams is parameters of SearchLanguagePackages operation.

type SearchLanguagePackagesRes

type SearchLanguagePackagesRes interface {
	// contains filtered or unexported methods
}

type SearchSystemPackagesBadRequest

type SearchSystemPackagesBadRequest Error

func (*SearchSystemPackagesBadRequest) Decode

Decode decodes SearchSystemPackagesBadRequest from json.

func (*SearchSystemPackagesBadRequest) Encode

Encode encodes SearchSystemPackagesBadRequest as json.

func (*SearchSystemPackagesBadRequest) MarshalJSON

func (s *SearchSystemPackagesBadRequest) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchSystemPackagesBadRequest) UnmarshalJSON

func (s *SearchSystemPackagesBadRequest) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SearchSystemPackagesForbidden

type SearchSystemPackagesForbidden Error

func (*SearchSystemPackagesForbidden) Decode

Decode decodes SearchSystemPackagesForbidden from json.

func (*SearchSystemPackagesForbidden) Encode

Encode encodes SearchSystemPackagesForbidden as json.

func (*SearchSystemPackagesForbidden) MarshalJSON

func (s *SearchSystemPackagesForbidden) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchSystemPackagesForbidden) UnmarshalJSON

func (s *SearchSystemPackagesForbidden) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SearchSystemPackagesOK

type SearchSystemPackagesOK struct {
	Packages []Package `json:"packages"`
}

func (*SearchSystemPackagesOK) Decode

func (s *SearchSystemPackagesOK) Decode(d *jx.Decoder) error

Decode decodes SearchSystemPackagesOK from json.

func (*SearchSystemPackagesOK) Encode

func (s *SearchSystemPackagesOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SearchSystemPackagesOK) GetPackages

func (s *SearchSystemPackagesOK) GetPackages() []Package

GetPackages returns the value of Packages.

func (*SearchSystemPackagesOK) MarshalJSON

func (s *SearchSystemPackagesOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchSystemPackagesOK) SetPackages

func (s *SearchSystemPackagesOK) SetPackages(val []Package)

SetPackages sets the value of Packages.

func (*SearchSystemPackagesOK) UnmarshalJSON

func (s *SearchSystemPackagesOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SearchSystemPackagesOK) Validate

func (s *SearchSystemPackagesOK) Validate() error

type SearchSystemPackagesParams

type SearchSystemPackagesParams struct {
	// Authentication token.
	XAuthToken OptString
	// The string to be searched.
	SearchString string
}

SearchSystemPackagesParams is parameters of SearchSystemPackages operation.

type SearchSystemPackagesRes

type SearchSystemPackagesRes interface {
	// contains filtered or unexported methods
}

type Server

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

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) CancelExecutionJob

CancelExecutionJob implements cancelExecutionJob operation.

Cancel Execution Job.

PUT /executions/jobs/{JobId}

func (UnimplementedHandler) CreateSandbox

CreateSandbox implements createSandbox operation.

Create a sandbox.

POST /sandbox

func (UnimplementedHandler) DeleteExecutionJob

DeleteExecutionJob implements deleteExecutionJob operation.

Delete execution job.

DELETE /executions/jobs/{JobId}

func (UnimplementedHandler) Execute

Execute implements execute operation.

Execute a script.

POST /executions/execute

func (UnimplementedHandler) FetchFlake

FetchFlake implements fetchFlake operation.

Fetches flake of a given job.

GET /flake/{jobId}

func (UnimplementedHandler) FetchLanguagePackages

FetchLanguagePackages implements FetchLanguagePackages operation.

Initialize the search results content with a default set of language specific packages.

GET /fetch/language

func (UnimplementedHandler) FetchSystemPackages

FetchSystemPackages implements FetchSystemPackages operation.

Initialize the search results content with a default set of system packages.

GET /fetch/system

func (UnimplementedHandler) GetAllExecutionJobs

GetAllExecutionJobs implements getAllExecutionJobs operation.

Get all execution jobs.

GET /jobs/execution

func (UnimplementedHandler) GetAllExecutions

GetAllExecutions implements getAllExecutions operation.

Get all executions.

GET /executions

func (UnimplementedHandler) GetAllLanguageVersions

GetAllLanguageVersions implements getAllLanguageVersions operation.

Retrieve a list of all language versions from the database.

GET /language-versions

func (UnimplementedHandler) GetAllLanguages

GetAllLanguages implements getAllLanguages operation.

Retrieve a list of all languages from the database.

GET /languages

func (UnimplementedHandler) GetAllVersions

GetAllVersions implements getAllVersions operation.

Retrieve a list of all language versions from the database.

GET /languages/{id}/versions

func (UnimplementedHandler) GetExecutionConfig

GetExecutionConfig implements getExecutionConfig operation.

Get execution config.

GET /execution/config

func (UnimplementedHandler) GetExecutionJobById

GetExecutionJobById implements getExecutionJobById operation.

Get execution job.

GET /executions/jobs/{JobId}

func (UnimplementedHandler) GetExecutionResultById

GetExecutionResultById implements getExecutionResultById operation.

Get execution result by id.

GET /executions/{execId}

func (UnimplementedHandler) GetExecutionsForJob

GetExecutionsForJob implements getExecutionsForJob operation.

Get executions of given job.

GET /jobs/{JobId}/executions

func (UnimplementedHandler) GetLanguageById

GetLanguageById implements getLanguageById operation.

Retrieve a language entry from the database using its ID.

GET /languages/{id}

func (UnimplementedHandler) GetLanguageVersionById

GetLanguageVersionById implements getLanguageVersionById operation.

Retrieve a language version entry from the database using its ID.

GET /language-versions/{id}

func (UnimplementedHandler) GetSandbox

GetSandbox implements getSandbox operation.

Retrieve Sandbox details.

GET /sandbox/{sandboxId}

func (UnimplementedHandler) GetVersion

GetVersion implements getVersion operation.

Get version.

GET /version

func (UnimplementedHandler) Health

Health implements health operation.

Health Check.

GET /health

func (UnimplementedHandler) PackagesExist

PackagesExist implements PackagesExist operation.

Verify the package list is available for the language version while switching between language versions.

POST /packages/exist

func (UnimplementedHandler) SearchLanguagePackages

SearchLanguagePackages implements SearchLanguagePackages operation.

Search for language specific packages.

GET /search/language

func (UnimplementedHandler) SearchSystemPackages

SearchSystemPackages implements SearchSystemPackages operation.

Search for system packages.

GET /search/system

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL