Documentation ¶
Index ¶
Constants ¶
const ( StorageBackendS3 = "s3" StorageBackendGit = "git" StorageBackendArchive = "archive" )
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 ¶
EndpointURL returns the base URL path of the resources API
func (*Application) FilterAPIResponse ¶
func (*Application) GetIdentifier ¶
func (o *Application) GetIdentifier(ctx context.Context) (string, error)
GetIdentifier returns the primary identifier of a Application object
type EnvironmentVariable ¶
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 ¶
EndpointURL returns the base URL path of the resources API
func (*Function) FilterAPIResponse ¶
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