api

package module
v0.0.0-...-e5bbcc4 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 22 Imported by: 11

README

Go API client for api

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import api "github.com/hedlx/doless/client"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), api.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), api.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), api.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), api.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://virtserver.swaggerhub.com/hedlx/doless/1.0.0

Class Method HTTP request Description
EndpointApi CreateEndpoint Post /endpoint Create endpoint
EndpointApi DeleteEndpoint Delete /endpoint/{id} Delete endpoint
EndpointApi GetEndpoint Get /endpoint/{id} Get endpoint
EndpointApi ListEndpoints Get /endpoint List endpoints
LambdaApi CreateLambda Post /lambda Create lambda
LambdaApi DestroyLambda Post /lambda/{id}/destroy Stop lambda and remove docker container
LambdaApi GetLambda Get /lambda/{id} Get lambda
LambdaApi ListLambdas Get /lambda List lambdas
LambdaApi StartLambda Post /lambda/{id}/start Start lambda
RuntimeApi CreateRuntime Post /runtime Create runtime
RuntimeApi GetRuntime Get /runtime/{id} Get runtime
RuntimeApi ListRuntimes Get /runtime List runtimes
TaskApi GetTask Get /task/{id} Get task status
UploadApi Upload Post /upload Upload file

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	EndpointApi *EndpointApiService

	LambdaApi *LambdaApiService

	RuntimeApi *RuntimeApiService

	TaskApi *TaskApiService

	UploadApi *UploadApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the core API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiCreateEndpointRequest

type ApiCreateEndpointRequest struct {
	ApiService *EndpointApiService
	// contains filtered or unexported fields
}

func (ApiCreateEndpointRequest) CreateEndpoint

func (r ApiCreateEndpointRequest) CreateEndpoint(createEndpoint CreateEndpoint) ApiCreateEndpointRequest

Create endpoint body

func (ApiCreateEndpointRequest) Execute

type ApiCreateLambdaRequest

type ApiCreateLambdaRequest struct {
	ApiService *LambdaApiService
	// contains filtered or unexported fields
}

func (ApiCreateLambdaRequest) CreateLambda

func (r ApiCreateLambdaRequest) CreateLambda(createLambda CreateLambda) ApiCreateLambdaRequest

Create lambda body

func (ApiCreateLambdaRequest) Execute

func (r ApiCreateLambdaRequest) Execute() (*Lambda, *http.Response, error)

type ApiCreateRuntimeRequest

type ApiCreateRuntimeRequest struct {
	ApiService *RuntimeApiService
	// contains filtered or unexported fields
}

func (ApiCreateRuntimeRequest) CreateRuntime

func (r ApiCreateRuntimeRequest) CreateRuntime(createRuntime CreateRuntime) ApiCreateRuntimeRequest

Create runtime body

func (ApiCreateRuntimeRequest) Execute

type ApiDeleteEndpointRequest

type ApiDeleteEndpointRequest struct {
	ApiService *EndpointApiService
	// contains filtered or unexported fields
}

func (ApiDeleteEndpointRequest) Execute

func (r ApiDeleteEndpointRequest) Execute() (*http.Response, error)

type ApiDestroyLambdaRequest

type ApiDestroyLambdaRequest struct {
	ApiService *LambdaApiService
	// contains filtered or unexported fields
}

func (ApiDestroyLambdaRequest) Execute

type ApiGetEndpointRequest

type ApiGetEndpointRequest struct {
	ApiService *EndpointApiService
	// contains filtered or unexported fields
}

func (ApiGetEndpointRequest) Execute

func (r ApiGetEndpointRequest) Execute() (*Endpoint, *http.Response, error)

type ApiGetLambdaRequest

type ApiGetLambdaRequest struct {
	ApiService *LambdaApiService
	// contains filtered or unexported fields
}

func (ApiGetLambdaRequest) Execute

func (r ApiGetLambdaRequest) Execute() (*Lambda, *http.Response, error)

type ApiGetRuntimeRequest

type ApiGetRuntimeRequest struct {
	ApiService *RuntimeApiService
	// contains filtered or unexported fields
}

func (ApiGetRuntimeRequest) Execute

func (r ApiGetRuntimeRequest) Execute() (*Runtime, *http.Response, error)

type ApiGetTaskRequest

type ApiGetTaskRequest struct {
	ApiService *TaskApiService
	// contains filtered or unexported fields
}

func (ApiGetTaskRequest) Execute

func (r ApiGetTaskRequest) Execute() (*TaskStatus, *http.Response, error)

type ApiListEndpointsRequest

type ApiListEndpointsRequest struct {
	ApiService *EndpointApiService
	// contains filtered or unexported fields
}

func (ApiListEndpointsRequest) Execute

func (r ApiListEndpointsRequest) Execute() ([]Endpoint, *http.Response, error)

type ApiListLambdasRequest

type ApiListLambdasRequest struct {
	ApiService *LambdaApiService
	// contains filtered or unexported fields
}

func (ApiListLambdasRequest) Execute

func (r ApiListLambdasRequest) Execute() ([]Lambda, *http.Response, error)

type ApiListRuntimesRequest

type ApiListRuntimesRequest struct {
	ApiService *RuntimeApiService
	// contains filtered or unexported fields
}

func (ApiListRuntimesRequest) Execute

func (r ApiListRuntimesRequest) Execute() ([]Runtime, *http.Response, error)

type ApiStartLambdaRequest

type ApiStartLambdaRequest struct {
	ApiService *LambdaApiService
	// contains filtered or unexported fields
}

func (ApiStartLambdaRequest) Execute

type ApiUploadRequest

type ApiUploadRequest struct {
	ApiService *UploadApiService
	// contains filtered or unexported fields
}

func (ApiUploadRequest) Execute

func (ApiUploadRequest) File

func (r ApiUploadRequest) File(file *os.File) ApiUploadRequest

type BaseEndpoint

type BaseEndpoint struct {
	Name   string `json:"name"`
	Path   string `json:"path"`
	Lambda string `json:"lambda"`
}

BaseEndpoint struct for BaseEndpoint

func NewBaseEndpoint

func NewBaseEndpoint(name string, path string, lambda string) *BaseEndpoint

NewBaseEndpoint instantiates a new BaseEndpoint object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBaseEndpointWithDefaults

func NewBaseEndpointWithDefaults() *BaseEndpoint

NewBaseEndpointWithDefaults instantiates a new BaseEndpoint object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BaseEndpoint) GetLambda

func (o *BaseEndpoint) GetLambda() string

GetLambda returns the Lambda field value

func (*BaseEndpoint) GetLambdaOk

func (o *BaseEndpoint) GetLambdaOk() (*string, bool)

GetLambdaOk returns a tuple with the Lambda field value and a boolean to check if the value has been set.

func (*BaseEndpoint) GetName

func (o *BaseEndpoint) GetName() string

GetName returns the Name field value

func (*BaseEndpoint) GetNameOk

func (o *BaseEndpoint) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*BaseEndpoint) GetPath

func (o *BaseEndpoint) GetPath() string

GetPath returns the Path field value

func (*BaseEndpoint) GetPathOk

func (o *BaseEndpoint) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (BaseEndpoint) MarshalJSON

func (o BaseEndpoint) MarshalJSON() ([]byte, error)

func (*BaseEndpoint) SetLambda

func (o *BaseEndpoint) SetLambda(v string)

SetLambda sets field value

func (*BaseEndpoint) SetName

func (o *BaseEndpoint) SetName(v string)

SetName sets field value

func (*BaseEndpoint) SetPath

func (o *BaseEndpoint) SetPath(v string)

SetPath sets field value

type BaseLambda

type BaseLambda struct {
	Name       string `json:"name"`
	Runtime    string `json:"runtime"`
	LambdaType string `json:"lambda_type"`
}

BaseLambda struct for BaseLambda

func NewBaseLambda

func NewBaseLambda(name string, runtime string, lambdaType string) *BaseLambda

NewBaseLambda instantiates a new BaseLambda object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBaseLambdaWithDefaults

func NewBaseLambdaWithDefaults() *BaseLambda

NewBaseLambdaWithDefaults instantiates a new BaseLambda object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BaseLambda) GetLambdaType

func (o *BaseLambda) GetLambdaType() string

GetLambdaType returns the LambdaType field value

func (*BaseLambda) GetLambdaTypeOk

func (o *BaseLambda) GetLambdaTypeOk() (*string, bool)

GetLambdaTypeOk returns a tuple with the LambdaType field value and a boolean to check if the value has been set.

func (*BaseLambda) GetName

func (o *BaseLambda) GetName() string

GetName returns the Name field value

func (*BaseLambda) GetNameOk

func (o *BaseLambda) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*BaseLambda) GetRuntime

func (o *BaseLambda) GetRuntime() string

GetRuntime returns the Runtime field value

func (*BaseLambda) GetRuntimeOk

func (o *BaseLambda) GetRuntimeOk() (*string, bool)

GetRuntimeOk returns a tuple with the Runtime field value and a boolean to check if the value has been set.

func (BaseLambda) MarshalJSON

func (o BaseLambda) MarshalJSON() ([]byte, error)

func (*BaseLambda) SetLambdaType

func (o *BaseLambda) SetLambdaType(v string)

SetLambdaType sets field value

func (*BaseLambda) SetName

func (o *BaseLambda) SetName(v string)

SetName sets field value

func (*BaseLambda) SetRuntime

func (o *BaseLambda) SetRuntime(v string)

SetRuntime sets field value

type BaseObject

type BaseObject struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	CreatedAt int64  `json:"created_at"`
	UpdatedAt int64  `json:"updated_at"`
}

BaseObject struct for BaseObject

func NewBaseObject

func NewBaseObject(id string, name string, createdAt int64, updatedAt int64) *BaseObject

NewBaseObject instantiates a new BaseObject object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBaseObjectWithDefaults

func NewBaseObjectWithDefaults() *BaseObject

NewBaseObjectWithDefaults instantiates a new BaseObject object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BaseObject) GetCreatedAt

func (o *BaseObject) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field value

func (*BaseObject) GetCreatedAtOk

func (o *BaseObject) GetCreatedAtOk() (*int64, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*BaseObject) GetId

func (o *BaseObject) GetId() string

GetId returns the Id field value

func (*BaseObject) GetIdOk

func (o *BaseObject) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*BaseObject) GetName

func (o *BaseObject) GetName() string

GetName returns the Name field value

func (*BaseObject) GetNameOk

func (o *BaseObject) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*BaseObject) GetUpdatedAt

func (o *BaseObject) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field value

func (*BaseObject) GetUpdatedAtOk

func (o *BaseObject) GetUpdatedAtOk() (*int64, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (BaseObject) MarshalJSON

func (o BaseObject) MarshalJSON() ([]byte, error)

func (*BaseObject) SetCreatedAt

func (o *BaseObject) SetCreatedAt(v int64)

SetCreatedAt sets field value

func (*BaseObject) SetId

func (o *BaseObject) SetId(v string)

SetId sets field value

func (*BaseObject) SetName

func (o *BaseObject) SetName(v string)

SetName sets field value

func (*BaseObject) SetUpdatedAt

func (o *BaseObject) SetUpdatedAt(v int64)

SetUpdatedAt sets field value

type BaseRuntime

type BaseRuntime struct {
	Name string `json:"name"`
}

BaseRuntime struct for BaseRuntime

func NewBaseRuntime

func NewBaseRuntime(name string) *BaseRuntime

NewBaseRuntime instantiates a new BaseRuntime object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBaseRuntimeWithDefaults

func NewBaseRuntimeWithDefaults() *BaseRuntime

NewBaseRuntimeWithDefaults instantiates a new BaseRuntime object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BaseRuntime) GetName

func (o *BaseRuntime) GetName() string

GetName returns the Name field value

func (*BaseRuntime) GetNameOk

func (o *BaseRuntime) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (BaseRuntime) MarshalJSON

func (o BaseRuntime) MarshalJSON() ([]byte, error)

func (*BaseRuntime) SetName

func (o *BaseRuntime) SetName(v string)

SetName sets field value

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type CreateEndpoint

type CreateEndpoint struct {
	Name   string `json:"name"`
	Path   string `json:"path"`
	Lambda string `json:"lambda"`
}

CreateEndpoint struct for CreateEndpoint

func NewCreateEndpoint

func NewCreateEndpoint(name string, path string, lambda string) *CreateEndpoint

NewCreateEndpoint instantiates a new CreateEndpoint object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateEndpointWithDefaults

func NewCreateEndpointWithDefaults() *CreateEndpoint

NewCreateEndpointWithDefaults instantiates a new CreateEndpoint object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateEndpoint) GetLambda

func (o *CreateEndpoint) GetLambda() string

GetLambda returns the Lambda field value

func (*CreateEndpoint) GetLambdaOk

func (o *CreateEndpoint) GetLambdaOk() (*string, bool)

GetLambdaOk returns a tuple with the Lambda field value and a boolean to check if the value has been set.

func (*CreateEndpoint) GetName

func (o *CreateEndpoint) GetName() string

GetName returns the Name field value

func (*CreateEndpoint) GetNameOk

func (o *CreateEndpoint) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*CreateEndpoint) GetPath

func (o *CreateEndpoint) GetPath() string

GetPath returns the Path field value

func (*CreateEndpoint) GetPathOk

func (o *CreateEndpoint) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (CreateEndpoint) MarshalJSON

func (o CreateEndpoint) MarshalJSON() ([]byte, error)

func (*CreateEndpoint) SetLambda

func (o *CreateEndpoint) SetLambda(v string)

SetLambda sets field value

func (*CreateEndpoint) SetName

func (o *CreateEndpoint) SetName(v string)

SetName sets field value

func (*CreateEndpoint) SetPath

func (o *CreateEndpoint) SetPath(v string)

SetPath sets field value

type CreateLambda

type CreateLambda struct {
	Archive    string `json:"archive"`
	Name       string `json:"name"`
	Runtime    string `json:"runtime"`
	LambdaType string `json:"lambda_type"`
}

CreateLambda struct for CreateLambda

func NewCreateLambda

func NewCreateLambda(archive string, name string, runtime string, lambdaType string) *CreateLambda

NewCreateLambda instantiates a new CreateLambda object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateLambdaWithDefaults

func NewCreateLambdaWithDefaults() *CreateLambda

NewCreateLambdaWithDefaults instantiates a new CreateLambda object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateLambda) GetArchive

func (o *CreateLambda) GetArchive() string

GetArchive returns the Archive field value

func (*CreateLambda) GetArchiveOk

func (o *CreateLambda) GetArchiveOk() (*string, bool)

GetArchiveOk returns a tuple with the Archive field value and a boolean to check if the value has been set.

func (*CreateLambda) GetLambdaType

func (o *CreateLambda) GetLambdaType() string

GetLambdaType returns the LambdaType field value

func (*CreateLambda) GetLambdaTypeOk

func (o *CreateLambda) GetLambdaTypeOk() (*string, bool)

GetLambdaTypeOk returns a tuple with the LambdaType field value and a boolean to check if the value has been set.

func (*CreateLambda) GetName

func (o *CreateLambda) GetName() string

GetName returns the Name field value

func (*CreateLambda) GetNameOk

func (o *CreateLambda) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*CreateLambda) GetRuntime

func (o *CreateLambda) GetRuntime() string

GetRuntime returns the Runtime field value

func (*CreateLambda) GetRuntimeOk

func (o *CreateLambda) GetRuntimeOk() (*string, bool)

GetRuntimeOk returns a tuple with the Runtime field value and a boolean to check if the value has been set.

func (CreateLambda) MarshalJSON

func (o CreateLambda) MarshalJSON() ([]byte, error)

func (*CreateLambda) SetArchive

func (o *CreateLambda) SetArchive(v string)

SetArchive sets field value

func (*CreateLambda) SetLambdaType

func (o *CreateLambda) SetLambdaType(v string)

SetLambdaType sets field value

func (*CreateLambda) SetName

func (o *CreateLambda) SetName(v string)

SetName sets field value

func (*CreateLambda) SetRuntime

func (o *CreateLambda) SetRuntime(v string)

SetRuntime sets field value

type CreateRuntime

type CreateRuntime struct {
	Dockerfile string `json:"dockerfile"`
	Name       string `json:"name"`
}

CreateRuntime struct for CreateRuntime

func NewCreateRuntime

func NewCreateRuntime(dockerfile string, name string) *CreateRuntime

NewCreateRuntime instantiates a new CreateRuntime object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateRuntimeWithDefaults

func NewCreateRuntimeWithDefaults() *CreateRuntime

NewCreateRuntimeWithDefaults instantiates a new CreateRuntime object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateRuntime) GetDockerfile

func (o *CreateRuntime) GetDockerfile() string

GetDockerfile returns the Dockerfile field value

func (*CreateRuntime) GetDockerfileOk

func (o *CreateRuntime) GetDockerfileOk() (*string, bool)

GetDockerfileOk returns a tuple with the Dockerfile field value and a boolean to check if the value has been set.

func (*CreateRuntime) GetName

func (o *CreateRuntime) GetName() string

GetName returns the Name field value

func (*CreateRuntime) GetNameOk

func (o *CreateRuntime) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (CreateRuntime) MarshalJSON

func (o CreateRuntime) MarshalJSON() ([]byte, error)

func (*CreateRuntime) SetDockerfile

func (o *CreateRuntime) SetDockerfile(v string)

SetDockerfile sets field value

func (*CreateRuntime) SetName

func (o *CreateRuntime) SetName(v string)

SetName sets field value

type Docker

type Docker struct {
	Image       *string `json:"image,omitempty"`
	Container   *string `json:"container,omitempty"`
	ContainerId *string `json:"container_id,omitempty"`
	Status      string  `json:"status"`
}

Docker struct for Docker

func NewDocker

func NewDocker(status string) *Docker

NewDocker instantiates a new Docker object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDockerWithDefaults

func NewDockerWithDefaults() *Docker

NewDockerWithDefaults instantiates a new Docker object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Docker) GetContainer

func (o *Docker) GetContainer() string

GetContainer returns the Container field value if set, zero value otherwise.

func (*Docker) GetContainerId

func (o *Docker) GetContainerId() string

GetContainerId returns the ContainerId field value if set, zero value otherwise.

func (*Docker) GetContainerIdOk

func (o *Docker) GetContainerIdOk() (*string, bool)

GetContainerIdOk returns a tuple with the ContainerId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Docker) GetContainerOk

func (o *Docker) GetContainerOk() (*string, bool)

GetContainerOk returns a tuple with the Container field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Docker) GetImage

func (o *Docker) GetImage() string

GetImage returns the Image field value if set, zero value otherwise.

func (*Docker) GetImageOk

func (o *Docker) GetImageOk() (*string, bool)

GetImageOk returns a tuple with the Image field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Docker) GetStatus

func (o *Docker) GetStatus() string

GetStatus returns the Status field value

func (*Docker) GetStatusOk

func (o *Docker) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*Docker) HasContainer

func (o *Docker) HasContainer() bool

HasContainer returns a boolean if a field has been set.

func (*Docker) HasContainerId

func (o *Docker) HasContainerId() bool

HasContainerId returns a boolean if a field has been set.

func (*Docker) HasImage

func (o *Docker) HasImage() bool

HasImage returns a boolean if a field has been set.

func (Docker) MarshalJSON

func (o Docker) MarshalJSON() ([]byte, error)

func (*Docker) SetContainer

func (o *Docker) SetContainer(v string)

SetContainer gets a reference to the given string and assigns it to the Container field.

func (*Docker) SetContainerId

func (o *Docker) SetContainerId(v string)

SetContainerId gets a reference to the given string and assigns it to the ContainerId field.

func (*Docker) SetImage

func (o *Docker) SetImage(v string)

SetImage gets a reference to the given string and assigns it to the Image field.

func (*Docker) SetStatus

func (o *Docker) SetStatus(v string)

SetStatus sets field value

type Endpoint

type Endpoint struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	CreatedAt int64  `json:"created_at"`
	UpdatedAt int64  `json:"updated_at"`
	Path      string `json:"path"`
	Lambda    string `json:"lambda"`
}

Endpoint struct for Endpoint

func NewEndpoint

func NewEndpoint(id string, name string, createdAt int64, updatedAt int64, path string, lambda string) *Endpoint

NewEndpoint instantiates a new Endpoint object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEndpointWithDefaults

func NewEndpointWithDefaults() *Endpoint

NewEndpointWithDefaults instantiates a new Endpoint object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Endpoint) GetCreatedAt

func (o *Endpoint) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field value

func (*Endpoint) GetCreatedAtOk

func (o *Endpoint) GetCreatedAtOk() (*int64, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Endpoint) GetId

func (o *Endpoint) GetId() string

GetId returns the Id field value

func (*Endpoint) GetIdOk

func (o *Endpoint) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Endpoint) GetLambda

func (o *Endpoint) GetLambda() string

GetLambda returns the Lambda field value

func (*Endpoint) GetLambdaOk

func (o *Endpoint) GetLambdaOk() (*string, bool)

GetLambdaOk returns a tuple with the Lambda field value and a boolean to check if the value has been set.

func (*Endpoint) GetName

func (o *Endpoint) GetName() string

GetName returns the Name field value

func (*Endpoint) GetNameOk

func (o *Endpoint) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Endpoint) GetPath

func (o *Endpoint) GetPath() string

GetPath returns the Path field value

func (*Endpoint) GetPathOk

func (o *Endpoint) GetPathOk() (*string, bool)

GetPathOk returns a tuple with the Path field value and a boolean to check if the value has been set.

func (*Endpoint) GetUpdatedAt

func (o *Endpoint) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field value

func (*Endpoint) GetUpdatedAtOk

func (o *Endpoint) GetUpdatedAtOk() (*int64, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (Endpoint) MarshalJSON

func (o Endpoint) MarshalJSON() ([]byte, error)

func (*Endpoint) SetCreatedAt

func (o *Endpoint) SetCreatedAt(v int64)

SetCreatedAt sets field value

func (*Endpoint) SetId

func (o *Endpoint) SetId(v string)

SetId sets field value

func (*Endpoint) SetLambda

func (o *Endpoint) SetLambda(v string)

SetLambda sets field value

func (*Endpoint) SetName

func (o *Endpoint) SetName(v string)

SetName sets field value

func (*Endpoint) SetPath

func (o *Endpoint) SetPath(v string)

SetPath sets field value

func (*Endpoint) SetUpdatedAt

func (o *Endpoint) SetUpdatedAt(v int64)

SetUpdatedAt sets field value

type EndpointApiService

type EndpointApiService service

EndpointApiService EndpointApi service

func (*EndpointApiService) CreateEndpoint

CreateEndpoint Create endpoint

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateEndpointRequest

func (*EndpointApiService) CreateEndpointExecute

func (a *EndpointApiService) CreateEndpointExecute(r ApiCreateEndpointRequest) (*Endpoint, *http.Response, error)

Execute executes the request

@return Endpoint

func (*EndpointApiService) DeleteEndpoint

DeleteEndpoint Delete endpoint

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id endpoint id
@return ApiDeleteEndpointRequest

func (*EndpointApiService) DeleteEndpointExecute

func (a *EndpointApiService) DeleteEndpointExecute(r ApiDeleteEndpointRequest) (*http.Response, error)

Execute executes the request

func (*EndpointApiService) GetEndpoint

GetEndpoint Get endpoint

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id endpoint id
@return ApiGetEndpointRequest

func (*EndpointApiService) GetEndpointExecute

func (a *EndpointApiService) GetEndpointExecute(r ApiGetEndpointRequest) (*Endpoint, *http.Response, error)

Execute executes the request

@return Endpoint

func (*EndpointApiService) ListEndpoints

ListEndpoints List endpoints

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListEndpointsRequest

func (*EndpointApiService) ListEndpointsExecute

func (a *EndpointApiService) ListEndpointsExecute(r ApiListEndpointsRequest) ([]Endpoint, *http.Response, error)

Execute executes the request

@return []Endpoint

type Error

type Error struct {
	Error *string `json:"error,omitempty"`
}

Error struct for Error

func NewError

func NewError() *Error

NewError instantiates a new Error object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewErrorWithDefaults

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Error) GetError

func (o *Error) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*Error) GetErrorOk

func (o *Error) GetErrorOk() (*string, bool)

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Error) HasError

func (o *Error) HasError() bool

HasError returns a boolean if a field has been set.

func (Error) MarshalJSON

func (o Error) MarshalJSON() ([]byte, error)

func (*Error) SetError

func (o *Error) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type Lambda

type Lambda struct {
	Docker     Docker `json:"docker"`
	Id         string `json:"id"`
	Name       string `json:"name"`
	CreatedAt  int64  `json:"created_at"`
	UpdatedAt  int64  `json:"updated_at"`
	Runtime    string `json:"runtime"`
	LambdaType string `json:"lambda_type"`
}

Lambda struct for Lambda

func NewLambda

func NewLambda(docker Docker, id string, name string, createdAt int64, updatedAt int64, runtime string, lambdaType string) *Lambda

NewLambda instantiates a new Lambda object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewLambdaWithDefaults

func NewLambdaWithDefaults() *Lambda

NewLambdaWithDefaults instantiates a new Lambda object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Lambda) GetCreatedAt

func (o *Lambda) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field value

func (*Lambda) GetCreatedAtOk

func (o *Lambda) GetCreatedAtOk() (*int64, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Lambda) GetDocker

func (o *Lambda) GetDocker() Docker

GetDocker returns the Docker field value

func (*Lambda) GetDockerOk

func (o *Lambda) GetDockerOk() (*Docker, bool)

GetDockerOk returns a tuple with the Docker field value and a boolean to check if the value has been set.

func (*Lambda) GetId

func (o *Lambda) GetId() string

GetId returns the Id field value

func (*Lambda) GetIdOk

func (o *Lambda) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Lambda) GetLambdaType

func (o *Lambda) GetLambdaType() string

GetLambdaType returns the LambdaType field value

func (*Lambda) GetLambdaTypeOk

func (o *Lambda) GetLambdaTypeOk() (*string, bool)

GetLambdaTypeOk returns a tuple with the LambdaType field value and a boolean to check if the value has been set.

func (*Lambda) GetName

func (o *Lambda) GetName() string

GetName returns the Name field value

func (*Lambda) GetNameOk

func (o *Lambda) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Lambda) GetRuntime

func (o *Lambda) GetRuntime() string

GetRuntime returns the Runtime field value

func (*Lambda) GetRuntimeOk

func (o *Lambda) GetRuntimeOk() (*string, bool)

GetRuntimeOk returns a tuple with the Runtime field value and a boolean to check if the value has been set.

func (*Lambda) GetUpdatedAt

func (o *Lambda) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field value

func (*Lambda) GetUpdatedAtOk

func (o *Lambda) GetUpdatedAtOk() (*int64, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (Lambda) MarshalJSON

func (o Lambda) MarshalJSON() ([]byte, error)

func (*Lambda) SetCreatedAt

func (o *Lambda) SetCreatedAt(v int64)

SetCreatedAt sets field value

func (*Lambda) SetDocker

func (o *Lambda) SetDocker(v Docker)

SetDocker sets field value

func (*Lambda) SetId

func (o *Lambda) SetId(v string)

SetId sets field value

func (*Lambda) SetLambdaType

func (o *Lambda) SetLambdaType(v string)

SetLambdaType sets field value

func (*Lambda) SetName

func (o *Lambda) SetName(v string)

SetName sets field value

func (*Lambda) SetRuntime

func (o *Lambda) SetRuntime(v string)

SetRuntime sets field value

func (*Lambda) SetUpdatedAt

func (o *Lambda) SetUpdatedAt(v int64)

SetUpdatedAt sets field value

type LambdaApiService

type LambdaApiService service

LambdaApiService LambdaApi service

func (*LambdaApiService) CreateLambda

CreateLambda Create lambda

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateLambdaRequest

func (*LambdaApiService) CreateLambdaExecute

func (a *LambdaApiService) CreateLambdaExecute(r ApiCreateLambdaRequest) (*Lambda, *http.Response, error)

Execute executes the request

@return Lambda

func (*LambdaApiService) DestroyLambda

DestroyLambda Stop lambda and remove docker container

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id lambda id
@return ApiDestroyLambdaRequest

func (*LambdaApiService) DestroyLambdaExecute

func (a *LambdaApiService) DestroyLambdaExecute(r ApiDestroyLambdaRequest) (*TaskResponse, *http.Response, error)

Execute executes the request

@return TaskResponse

func (*LambdaApiService) GetLambda

GetLambda Get lambda

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id lambda id
@return ApiGetLambdaRequest

func (*LambdaApiService) GetLambdaExecute

func (a *LambdaApiService) GetLambdaExecute(r ApiGetLambdaRequest) (*Lambda, *http.Response, error)

Execute executes the request

@return Lambda

func (*LambdaApiService) ListLambdas

ListLambdas List lambdas

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListLambdasRequest

func (*LambdaApiService) ListLambdasExecute

func (a *LambdaApiService) ListLambdasExecute(r ApiListLambdasRequest) ([]Lambda, *http.Response, error)

Execute executes the request

@return []Lambda

func (*LambdaApiService) StartLambda

StartLambda Start lambda

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id lambda id
@return ApiStartLambdaRequest

func (*LambdaApiService) StartLambdaExecute

func (a *LambdaApiService) StartLambdaExecute(r ApiStartLambdaRequest) (*TaskResponse, *http.Response, error)

Execute executes the request

@return TaskResponse

type NullableBaseEndpoint

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

func NewNullableBaseEndpoint

func NewNullableBaseEndpoint(val *BaseEndpoint) *NullableBaseEndpoint

func (NullableBaseEndpoint) Get

func (NullableBaseEndpoint) IsSet

func (v NullableBaseEndpoint) IsSet() bool

func (NullableBaseEndpoint) MarshalJSON

func (v NullableBaseEndpoint) MarshalJSON() ([]byte, error)

func (*NullableBaseEndpoint) Set

func (v *NullableBaseEndpoint) Set(val *BaseEndpoint)

func (*NullableBaseEndpoint) UnmarshalJSON

func (v *NullableBaseEndpoint) UnmarshalJSON(src []byte) error

func (*NullableBaseEndpoint) Unset

func (v *NullableBaseEndpoint) Unset()

type NullableBaseLambda

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

func NewNullableBaseLambda

func NewNullableBaseLambda(val *BaseLambda) *NullableBaseLambda

func (NullableBaseLambda) Get

func (v NullableBaseLambda) Get() *BaseLambda

func (NullableBaseLambda) IsSet

func (v NullableBaseLambda) IsSet() bool

func (NullableBaseLambda) MarshalJSON

func (v NullableBaseLambda) MarshalJSON() ([]byte, error)

func (*NullableBaseLambda) Set

func (v *NullableBaseLambda) Set(val *BaseLambda)

func (*NullableBaseLambda) UnmarshalJSON

func (v *NullableBaseLambda) UnmarshalJSON(src []byte) error

func (*NullableBaseLambda) Unset

func (v *NullableBaseLambda) Unset()

type NullableBaseObject

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

func NewNullableBaseObject

func NewNullableBaseObject(val *BaseObject) *NullableBaseObject

func (NullableBaseObject) Get

func (v NullableBaseObject) Get() *BaseObject

func (NullableBaseObject) IsSet

func (v NullableBaseObject) IsSet() bool

func (NullableBaseObject) MarshalJSON

func (v NullableBaseObject) MarshalJSON() ([]byte, error)

func (*NullableBaseObject) Set

func (v *NullableBaseObject) Set(val *BaseObject)

func (*NullableBaseObject) UnmarshalJSON

func (v *NullableBaseObject) UnmarshalJSON(src []byte) error

func (*NullableBaseObject) Unset

func (v *NullableBaseObject) Unset()

type NullableBaseRuntime

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

func NewNullableBaseRuntime

func NewNullableBaseRuntime(val *BaseRuntime) *NullableBaseRuntime

func (NullableBaseRuntime) Get

func (NullableBaseRuntime) IsSet

func (v NullableBaseRuntime) IsSet() bool

func (NullableBaseRuntime) MarshalJSON

func (v NullableBaseRuntime) MarshalJSON() ([]byte, error)

func (*NullableBaseRuntime) Set

func (v *NullableBaseRuntime) Set(val *BaseRuntime)

func (*NullableBaseRuntime) UnmarshalJSON

func (v *NullableBaseRuntime) UnmarshalJSON(src []byte) error

func (*NullableBaseRuntime) Unset

func (v *NullableBaseRuntime) Unset()

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCreateEndpoint

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

func NewNullableCreateEndpoint

func NewNullableCreateEndpoint(val *CreateEndpoint) *NullableCreateEndpoint

func (NullableCreateEndpoint) Get

func (NullableCreateEndpoint) IsSet

func (v NullableCreateEndpoint) IsSet() bool

func (NullableCreateEndpoint) MarshalJSON

func (v NullableCreateEndpoint) MarshalJSON() ([]byte, error)

func (*NullableCreateEndpoint) Set

func (*NullableCreateEndpoint) UnmarshalJSON

func (v *NullableCreateEndpoint) UnmarshalJSON(src []byte) error

func (*NullableCreateEndpoint) Unset

func (v *NullableCreateEndpoint) Unset()

type NullableCreateLambda

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

func NewNullableCreateLambda

func NewNullableCreateLambda(val *CreateLambda) *NullableCreateLambda

func (NullableCreateLambda) Get

func (NullableCreateLambda) IsSet

func (v NullableCreateLambda) IsSet() bool

func (NullableCreateLambda) MarshalJSON

func (v NullableCreateLambda) MarshalJSON() ([]byte, error)

func (*NullableCreateLambda) Set

func (v *NullableCreateLambda) Set(val *CreateLambda)

func (*NullableCreateLambda) UnmarshalJSON

func (v *NullableCreateLambda) UnmarshalJSON(src []byte) error

func (*NullableCreateLambda) Unset

func (v *NullableCreateLambda) Unset()

type NullableCreateRuntime

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

func NewNullableCreateRuntime

func NewNullableCreateRuntime(val *CreateRuntime) *NullableCreateRuntime

func (NullableCreateRuntime) Get

func (NullableCreateRuntime) IsSet

func (v NullableCreateRuntime) IsSet() bool

func (NullableCreateRuntime) MarshalJSON

func (v NullableCreateRuntime) MarshalJSON() ([]byte, error)

func (*NullableCreateRuntime) Set

func (v *NullableCreateRuntime) Set(val *CreateRuntime)

func (*NullableCreateRuntime) UnmarshalJSON

func (v *NullableCreateRuntime) UnmarshalJSON(src []byte) error

func (*NullableCreateRuntime) Unset

func (v *NullableCreateRuntime) Unset()

type NullableDocker

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

func NewNullableDocker

func NewNullableDocker(val *Docker) *NullableDocker

func (NullableDocker) Get

func (v NullableDocker) Get() *Docker

func (NullableDocker) IsSet

func (v NullableDocker) IsSet() bool

func (NullableDocker) MarshalJSON

func (v NullableDocker) MarshalJSON() ([]byte, error)

func (*NullableDocker) Set

func (v *NullableDocker) Set(val *Docker)

func (*NullableDocker) UnmarshalJSON

func (v *NullableDocker) UnmarshalJSON(src []byte) error

func (*NullableDocker) Unset

func (v *NullableDocker) Unset()

type NullableEndpoint

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

func NewNullableEndpoint

func NewNullableEndpoint(val *Endpoint) *NullableEndpoint

func (NullableEndpoint) Get

func (v NullableEndpoint) Get() *Endpoint

func (NullableEndpoint) IsSet

func (v NullableEndpoint) IsSet() bool

func (NullableEndpoint) MarshalJSON

func (v NullableEndpoint) MarshalJSON() ([]byte, error)

func (*NullableEndpoint) Set

func (v *NullableEndpoint) Set(val *Endpoint)

func (*NullableEndpoint) UnmarshalJSON

func (v *NullableEndpoint) UnmarshalJSON(src []byte) error

func (*NullableEndpoint) Unset

func (v *NullableEndpoint) Unset()

type NullableError

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

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

func (v NullableError) MarshalJSON() ([]byte, error)

func (*NullableError) Set

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON

func (v *NullableError) UnmarshalJSON(src []byte) error

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableLambda

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

func NewNullableLambda

func NewNullableLambda(val *Lambda) *NullableLambda

func (NullableLambda) Get

func (v NullableLambda) Get() *Lambda

func (NullableLambda) IsSet

func (v NullableLambda) IsSet() bool

func (NullableLambda) MarshalJSON

func (v NullableLambda) MarshalJSON() ([]byte, error)

func (*NullableLambda) Set

func (v *NullableLambda) Set(val *Lambda)

func (*NullableLambda) UnmarshalJSON

func (v *NullableLambda) UnmarshalJSON(src []byte) error

func (*NullableLambda) Unset

func (v *NullableLambda) Unset()

type NullableRuntime

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

func NewNullableRuntime

func NewNullableRuntime(val *Runtime) *NullableRuntime

func (NullableRuntime) Get

func (v NullableRuntime) Get() *Runtime

func (NullableRuntime) IsSet

func (v NullableRuntime) IsSet() bool

func (NullableRuntime) MarshalJSON

func (v NullableRuntime) MarshalJSON() ([]byte, error)

func (*NullableRuntime) Set

func (v *NullableRuntime) Set(val *Runtime)

func (*NullableRuntime) UnmarshalJSON

func (v *NullableRuntime) UnmarshalJSON(src []byte) error

func (*NullableRuntime) Unset

func (v *NullableRuntime) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTaskResponse

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

func NewNullableTaskResponse

func NewNullableTaskResponse(val *TaskResponse) *NullableTaskResponse

func (NullableTaskResponse) Get

func (NullableTaskResponse) IsSet

func (v NullableTaskResponse) IsSet() bool

func (NullableTaskResponse) MarshalJSON

func (v NullableTaskResponse) MarshalJSON() ([]byte, error)

func (*NullableTaskResponse) Set

func (v *NullableTaskResponse) Set(val *TaskResponse)

func (*NullableTaskResponse) UnmarshalJSON

func (v *NullableTaskResponse) UnmarshalJSON(src []byte) error

func (*NullableTaskResponse) Unset

func (v *NullableTaskResponse) Unset()

type NullableTaskStatus

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

func NewNullableTaskStatus

func NewNullableTaskStatus(val *TaskStatus) *NullableTaskStatus

func (NullableTaskStatus) Get

func (v NullableTaskStatus) Get() *TaskStatus

func (NullableTaskStatus) IsSet

func (v NullableTaskStatus) IsSet() bool

func (NullableTaskStatus) MarshalJSON

func (v NullableTaskStatus) MarshalJSON() ([]byte, error)

func (*NullableTaskStatus) Set

func (v *NullableTaskStatus) Set(val *TaskStatus)

func (*NullableTaskStatus) UnmarshalJSON

func (v *NullableTaskStatus) UnmarshalJSON(src []byte) error

func (*NullableTaskStatus) Unset

func (v *NullableTaskStatus) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUploadResponse

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

func NewNullableUploadResponse

func NewNullableUploadResponse(val *UploadResponse) *NullableUploadResponse

func (NullableUploadResponse) Get

func (NullableUploadResponse) IsSet

func (v NullableUploadResponse) IsSet() bool

func (NullableUploadResponse) MarshalJSON

func (v NullableUploadResponse) MarshalJSON() ([]byte, error)

func (*NullableUploadResponse) Set

func (*NullableUploadResponse) UnmarshalJSON

func (v *NullableUploadResponse) UnmarshalJSON(src []byte) error

func (*NullableUploadResponse) Unset

func (v *NullableUploadResponse) Unset()

type Runtime

type Runtime struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	CreatedAt int64  `json:"created_at"`
	UpdatedAt int64  `json:"updated_at"`
}

Runtime struct for Runtime

func NewRuntime

func NewRuntime(id string, name string, createdAt int64, updatedAt int64) *Runtime

NewRuntime instantiates a new Runtime object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRuntimeWithDefaults

func NewRuntimeWithDefaults() *Runtime

NewRuntimeWithDefaults instantiates a new Runtime object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Runtime) GetCreatedAt

func (o *Runtime) GetCreatedAt() int64

GetCreatedAt returns the CreatedAt field value

func (*Runtime) GetCreatedAtOk

func (o *Runtime) GetCreatedAtOk() (*int64, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value and a boolean to check if the value has been set.

func (*Runtime) GetId

func (o *Runtime) GetId() string

GetId returns the Id field value

func (*Runtime) GetIdOk

func (o *Runtime) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Runtime) GetName

func (o *Runtime) GetName() string

GetName returns the Name field value

func (*Runtime) GetNameOk

func (o *Runtime) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Runtime) GetUpdatedAt

func (o *Runtime) GetUpdatedAt() int64

GetUpdatedAt returns the UpdatedAt field value

func (*Runtime) GetUpdatedAtOk

func (o *Runtime) GetUpdatedAtOk() (*int64, bool)

GetUpdatedAtOk returns a tuple with the UpdatedAt field value and a boolean to check if the value has been set.

func (Runtime) MarshalJSON

func (o Runtime) MarshalJSON() ([]byte, error)

func (*Runtime) SetCreatedAt

func (o *Runtime) SetCreatedAt(v int64)

SetCreatedAt sets field value

func (*Runtime) SetId

func (o *Runtime) SetId(v string)

SetId sets field value

func (*Runtime) SetName

func (o *Runtime) SetName(v string)

SetName sets field value

func (*Runtime) SetUpdatedAt

func (o *Runtime) SetUpdatedAt(v int64)

SetUpdatedAt sets field value

type RuntimeApiService

type RuntimeApiService service

RuntimeApiService RuntimeApi service

func (*RuntimeApiService) CreateRuntime

CreateRuntime Create runtime

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateRuntimeRequest

func (*RuntimeApiService) CreateRuntimeExecute

func (a *RuntimeApiService) CreateRuntimeExecute(r ApiCreateRuntimeRequest) (*Runtime, *http.Response, error)

Execute executes the request

@return Runtime

func (*RuntimeApiService) GetRuntime

GetRuntime Get runtime

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id Runtime id
@return ApiGetRuntimeRequest

func (*RuntimeApiService) GetRuntimeExecute

func (a *RuntimeApiService) GetRuntimeExecute(r ApiGetRuntimeRequest) (*Runtime, *http.Response, error)

Execute executes the request

@return Runtime

func (*RuntimeApiService) ListRuntimes

ListRuntimes List runtimes

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListRuntimesRequest

func (*RuntimeApiService) ListRuntimesExecute

func (a *RuntimeApiService) ListRuntimesExecute(r ApiListRuntimesRequest) ([]Runtime, *http.Response, error)

Execute executes the request

@return []Runtime

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type TaskApiService

type TaskApiService service

TaskApiService TaskApi service

func (*TaskApiService) GetTask

GetTask Get task status

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param id task id
@return ApiGetTaskRequest

func (*TaskApiService) GetTaskExecute

func (a *TaskApiService) GetTaskExecute(r ApiGetTaskRequest) (*TaskStatus, *http.Response, error)

Execute executes the request

@return TaskStatus

type TaskResponse

type TaskResponse struct {
	Task string `json:"task"`
}

TaskResponse struct for TaskResponse

func NewTaskResponse

func NewTaskResponse(task string) *TaskResponse

NewTaskResponse instantiates a new TaskResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTaskResponseWithDefaults

func NewTaskResponseWithDefaults() *TaskResponse

NewTaskResponseWithDefaults instantiates a new TaskResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TaskResponse) GetTask

func (o *TaskResponse) GetTask() string

GetTask returns the Task field value

func (*TaskResponse) GetTaskOk

func (o *TaskResponse) GetTaskOk() (*string, bool)

GetTaskOk returns a tuple with the Task field value and a boolean to check if the value has been set.

func (TaskResponse) MarshalJSON

func (o TaskResponse) MarshalJSON() ([]byte, error)

func (*TaskResponse) SetTask

func (o *TaskResponse) SetTask(v string)

SetTask sets field value

type TaskStatus

type TaskStatus struct {
	Status     string                 `json:"status"`
	StartedAt  int64                  `json:"started_at"`
	FinishedAt *int64                 `json:"finished_at,omitempty"`
	Details    map[string]interface{} `json:"details,omitempty"`
}

TaskStatus struct for TaskStatus

func NewTaskStatus

func NewTaskStatus(status string, startedAt int64) *TaskStatus

NewTaskStatus instantiates a new TaskStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTaskStatusWithDefaults

func NewTaskStatusWithDefaults() *TaskStatus

NewTaskStatusWithDefaults instantiates a new TaskStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TaskStatus) GetDetails

func (o *TaskStatus) GetDetails() map[string]interface{}

GetDetails returns the Details field value if set, zero value otherwise.

func (*TaskStatus) GetDetailsOk

func (o *TaskStatus) GetDetailsOk() (map[string]interface{}, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskStatus) GetFinishedAt

func (o *TaskStatus) GetFinishedAt() int64

GetFinishedAt returns the FinishedAt field value if set, zero value otherwise.

func (*TaskStatus) GetFinishedAtOk

func (o *TaskStatus) GetFinishedAtOk() (*int64, bool)

GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*TaskStatus) GetStartedAt

func (o *TaskStatus) GetStartedAt() int64

GetStartedAt returns the StartedAt field value

func (*TaskStatus) GetStartedAtOk

func (o *TaskStatus) GetStartedAtOk() (*int64, bool)

GetStartedAtOk returns a tuple with the StartedAt field value and a boolean to check if the value has been set.

func (*TaskStatus) GetStatus

func (o *TaskStatus) GetStatus() string

GetStatus returns the Status field value

func (*TaskStatus) GetStatusOk

func (o *TaskStatus) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*TaskStatus) HasDetails

func (o *TaskStatus) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*TaskStatus) HasFinishedAt

func (o *TaskStatus) HasFinishedAt() bool

HasFinishedAt returns a boolean if a field has been set.

func (TaskStatus) MarshalJSON

func (o TaskStatus) MarshalJSON() ([]byte, error)

func (*TaskStatus) SetDetails

func (o *TaskStatus) SetDetails(v map[string]interface{})

SetDetails gets a reference to the given map[string]interface{} and assigns it to the Details field.

func (*TaskStatus) SetFinishedAt

func (o *TaskStatus) SetFinishedAt(v int64)

SetFinishedAt gets a reference to the given int64 and assigns it to the FinishedAt field.

func (*TaskStatus) SetStartedAt

func (o *TaskStatus) SetStartedAt(v int64)

SetStartedAt sets field value

func (*TaskStatus) SetStatus

func (o *TaskStatus) SetStatus(v string)

SetStatus sets field value

type UploadApiService

type UploadApiService service

UploadApiService UploadApi service

func (*UploadApiService) Upload

Upload Upload file

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiUploadRequest

func (*UploadApiService) UploadExecute

Execute executes the request

@return UploadResponse

type UploadResponse

type UploadResponse struct {
	Id string `json:"id"`
}

UploadResponse struct for UploadResponse

func NewUploadResponse

func NewUploadResponse(id string) *UploadResponse

NewUploadResponse instantiates a new UploadResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUploadResponseWithDefaults

func NewUploadResponseWithDefaults() *UploadResponse

NewUploadResponseWithDefaults instantiates a new UploadResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UploadResponse) GetId

func (o *UploadResponse) GetId() string

GetId returns the Id field value

func (*UploadResponse) GetIdOk

func (o *UploadResponse) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (UploadResponse) MarshalJSON

func (o UploadResponse) MarshalJSON() ([]byte, error)

func (*UploadResponse) SetId

func (o *UploadResponse) SetId(v string)

SetId sets field value

Jump to

Keyboard shortcuts

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