Documentation ¶
Index ¶
- Variables
- func ActionName() string
- func ContainerName() string
- func NewQualifiedNameError(entityName string, err error) error
- func ScaleMemory(memory int) falco.ScaleOptions
- func StringWithCharset(length int, charset string) string
- type DockerDeployment
- type InitMessage
- type OpenWhisk
- func (ow *OpenWhisk) Apply(opt OpenWhiskOption)
- func (ow *OpenWhisk) Collect(job *falco.Job, activations <-chan map[string]interface{}, ...) error
- func (ow *OpenWhisk) Deploy(deployable falco.Deployable) (falco.Deployment, error)
- func (ow *OpenWhisk) Invoke(deployment falco.Deployment, payload falco.InvocationPayload, ...) error
- func (ow *OpenWhisk) Remove(deployment falco.Deployment) error
- func (ow *OpenWhisk) Scale(deployment falco.Deployment, options ...falco.ScaleOptions) (falco.Deployment, error)
- func (ow *OpenWhisk) Submit(job *falco.Job, payload falco.InvocationPayload, ...) error
- type OpenWhiskDeployment
- type OpenWhiskDockerRunner
- func (o OpenWhiskDockerRunner) Deploy(deployable falco.Deployable) (falco.Deployment, error)
- func (o OpenWhiskDockerRunner) Invoke(deployment falco.Deployment, payload falco.InvocationPayload, ...) error
- func (o OpenWhiskDockerRunner) Remove(deployment falco.Deployment) error
- func (o OpenWhiskDockerRunner) Scale(deployment falco.Deployment, options ...falco.ScaleOptions) (falco.Deployment, error)
- type OpenWhiskMessage
- type OpenWhiskOption
- type QualifiedName
- type RunMessage
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ActionName ¶
func ActionName() string
func ContainerName ¶
func ContainerName() string
func NewQualifiedNameError ¶
NewQualifiedNameError(entityName, err) returns specific whisk error
for invalid qualified names.
func ScaleMemory ¶
func ScaleMemory(memory int) falco.ScaleOptions
func StringWithCharset ¶
Types ¶
type DockerDeployment ¶
type DockerDeployment struct { ContainerID string // contains filtered or unexported fields }
func (DockerDeployment) ID ¶
func (d DockerDeployment) ID() string
type InitMessage ¶
type OpenWhisk ¶
type OpenWhisk struct { Host string Token string Verbose bool BACKOFF time.Duration // contains filtered or unexported fields }
func NewOpenWhisk ¶
func NewOpenWhisk(options ...OpenWhiskOption) (*OpenWhisk, error)
func (*OpenWhisk) Apply ¶
func (ow *OpenWhisk) Apply(opt OpenWhiskOption)
func (*OpenWhisk) Collect ¶
func (ow *OpenWhisk) Collect(job *falco.Job, activations <-chan map[string]interface{}, writer falco.ResultCollector, options ...falco.InvocableOptions) error
func (*OpenWhisk) Deploy ¶
func (ow *OpenWhisk) Deploy(deployable falco.Deployable) (falco.Deployment, error)
func (*OpenWhisk) Invoke ¶
func (ow *OpenWhisk) Invoke(deployment falco.Deployment, payload falco.InvocationPayload, writer falco.ResultCollector) error
func (*OpenWhisk) Scale ¶
func (ow *OpenWhisk) Scale(deployment falco.Deployment, options ...falco.ScaleOptions) (falco.Deployment, error)
type OpenWhiskDeployment ¶
type OpenWhiskDeployment struct { ActionName string Memory int // contains filtered or unexported fields }
func (OpenWhiskDeployment) ID ¶
func (o OpenWhiskDeployment) ID() string
type OpenWhiskDockerRunner ¶
type OpenWhiskDockerRunner struct {
// contains filtered or unexported fields
}
func NewOpenWhiskDockerRunner ¶
func NewOpenWhiskDockerRunner(ctx context.Context) *OpenWhiskDockerRunner
func (OpenWhiskDockerRunner) Deploy ¶
func (o OpenWhiskDockerRunner) Deploy(deployable falco.Deployable) (falco.Deployment, error)
func (OpenWhiskDockerRunner) Invoke ¶
func (o OpenWhiskDockerRunner) Invoke(deployment falco.Deployment, payload falco.InvocationPayload, collector falco.ResultCollector) error
func (OpenWhiskDockerRunner) Remove ¶
func (o OpenWhiskDockerRunner) Remove(deployment falco.Deployment) error
func (OpenWhiskDockerRunner) Scale ¶
func (o OpenWhiskDockerRunner) Scale(deployment falco.Deployment, options ...falco.ScaleOptions) (falco.Deployment, error)
Not available in docker (in this case)
type OpenWhiskMessage ¶
type OpenWhiskMessage struct {
Value InitMessage `json:"value"`
}
type OpenWhiskOption ¶
type OpenWhiskOption func(*OpenWhisk)
func WithAuthToken ¶
func WithAuthToken(token string) OpenWhiskOption
func WithHost ¶
func WithHost(host string) OpenWhiskOption
func WithVerboseLogging ¶
func WithVerboseLogging() OpenWhiskOption
type QualifiedName ¶
type QualifiedName struct { EntityName string // pkg+entity // contains filtered or unexported fields }
func NewQualifiedName ¶
func NewQualifiedName(name string) (*QualifiedName, error)
NewQualifiedName(name) initializes and constructs a (possibly fully qualified)
QualifiedName struct. NOTE: If the given qualified name is None, then this is a default qualified name and it is resolved from properties. NOTE: If the namespace is missing from the qualified name, the namespace is also resolved from the property file.
Examples:
foo => qualifiedName {namespace: "_", entityName: foo} pkg/foo => qualifiedName {namespace: "_", entityName: pkg/foo} /ns/foo => qualifiedName {namespace: ns, entityName: foo} /ns/pkg/foo => qualifiedName {namespace: ns, entityName: pkg/foo}
func (*QualifiedName) GetEntity ¶
func (qualifiedName *QualifiedName) GetEntity() string
GetEntity() returns the name of entity in qualifiedName without a leading '/'
func (*QualifiedName) GetEntityName ¶
func (qualifiedName *QualifiedName) GetEntityName() string
GetEntityName() returns the entity name ([package/]entity) of qualifiedName
without a leading '/'
func (*QualifiedName) GetFullQualifiedName ¶
func (qualifiedName *QualifiedName) GetFullQualifiedName() string
GetFullQualifiedName() returns a full qualified name in proper string format
from qualifiedName with proper syntax.
Example: /namespace/[package/]entity
func (*QualifiedName) GetNamespace ¶
func (qualifiedName *QualifiedName) GetNamespace() string
GetNamespace() returns the name of the namespace in qualifiedName without
a leading '/'
func (*QualifiedName) GetPackageName ¶
func (qualifiedName *QualifiedName) GetPackageName() string
GetPackageName() returns the package name from qualifiedName without a
leading '/'
Click to show internal directories.
Click to hide internal directories.