v1

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	StorageBackendS3      = "s3"
	StorageBackendGit     = "git"
	StorageBackendArchive = "archive"
)
View Source
const (
	WorkerTypeStandard = "standard"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Identifier string `json:"identifier,omitempty" anxcloud:"identifier"`
	Name       string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

Applications are an easy way to bring more structure to your configured functions by grouping them.

func (*Application) EndpointURL

func (a *Application) EndpointURL(ctx context.Context) (*url.URL, error)

EndpointURL returns the base URL path of the resources API

func (*Application) FilterAPIResponse

func (*Application) FilterAPIResponse(ctx context.Context, res *http.Response) (*http.Response, error)

func (*Application) GetIdentifier

func (o *Application) GetIdentifier(ctx context.Context) (string, error)

GetIdentifier returns the primary identifier of a Application object

type EnvironmentVariable

type EnvironmentVariable struct {
	Name   string `json:"name"`
	Value  string `json:"value"`
	Secret bool   `json:"secret"`
}

type Function

type Function struct {
	Identifier            string                 `json:"identifier,omitempty" anxcloud:"identifier"`
	State                 string                 `json:"state,omitempty"`
	DeploymentState       string                 `json:"deployment_state,omitempty"`
	Name                  string                 `json:"name,omitempty"`
	ApplicationIdentifier string                 `json:"application_identifier,omitempty"`
	Runtime               string                 `json:"runtime,omitempty"`
	Entrypoint            string                 `json:"entrypoint,omitempty"`
	StorageBackend        StorageBackend         `json:"storage_backend,omitempty"`
	StorageBackendMeta    *StorageBackendMeta    `json:"storage_backend_meta,omitempty"`
	EnvironmentVariables  *[]EnvironmentVariable `json:"environment_variables,omitempty"`
	Hostnames             *[]Hostname            `json:"hostnames,omitempty"`
	KeepAlive             int                    `json:"keep_alive,omitempty"`
	QuotaStorage          int                    `json:"quota_storage,omitempty"`
	QuotaMemory           int                    `json:"quota_memory,omitempty"`
	QuotaCPU              int                    `json:"quota_cpu,omitempty"`
	QuotaTimeout          int                    `json:"quota_timeout,omitempty"`
	QuotaConcurrency      int                    `json:"quota_concurrency,omitempty"`
	WorkerType            string                 `json:"worker_type,omitempty"`
	// contains filtered or unexported fields
}

Function represents the collection of all the metadata as well as the code itself that is needed to execute your application on the e5e platform.

func (*Function) EndpointURL

func (f *Function) EndpointURL(ctx context.Context) (*url.URL, error)

EndpointURL returns the base URL path of the resources API

func (*Function) FilterAPIResponse

func (*Function) FilterAPIResponse(ctx context.Context, res *http.Response) (*http.Response, error)

func (*Function) GetIdentifier

func (o *Function) GetIdentifier(ctx context.Context) (string, error)

GetIdentifier returns the primary identifier of a Function object

type Hostname

type Hostname struct {
	Hostname string `json:"hostname"`
	IP       string `json:"ip"`
}

type StorageBackend

type StorageBackend string

type StorageBackendMeta

type StorageBackendMeta struct {
	*StorageBackendMetaGit
	*StorageBackendMetaS3
	*StorageBackendMetaArchive `json:"archive_file,omitempty"`
}

StorageBackendMeta is used to configure a storage backend

type StorageBackendMetaArchive added in v0.6.3

type StorageBackendMetaArchive struct {
	// Data string containing the mime-type, encoding and encoded data
	// data:<mime type>;base64,<data>
	Content string `json:"content"`
	Name    string `json:"name"`
}

StorageBackendMetaArchive is used to configure an archive storage backend

type StorageBackendMetaGit

type StorageBackendMetaGit struct {
	URL        string `json:"git_url,omitempty"`
	Branch     string `json:"git_branch,omitempty"`
	PrivateKey string `json:"git_private_key,omitempty"`
	Username   string `json:"git_username,omitempty"`
	Password   string `json:"git_password,omitempty"`
}

StorageBackendMetaGit is used to configure a git storage backend

type StorageBackendMetaS3

type StorageBackendMetaS3 struct {
	Endpoint   string `json:"s3_endpoint,omitempty"`
	BucketName string `json:"s3_bucket_name,omitempty"`
	ObjectPath string `json:"s3_object_path,omitempty"`
	AccessKey  string `json:"s3_access_key,omitempty"`
	SecretKey  string `json:"s3_secret_key,omitempty"`
}

StorageBackendMetaS3 is used to configure a s3 storage backend

type WorkerType

type WorkerType string

Jump to

Keyboard shortcuts

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