a4c

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAddress = "http://127.0.0.1:8088"
View Source
const DefaultPassword = "admin"
View Source
const DefaultUser = "admin"

Variables

This section is empty.

Functions

func IsUnauthorizedError added in v0.2.0

func IsUnauthorizedError(e error) bool

Types

type Config

type Config struct {
	Address    string `mapstructure:"address"`
	User       string `mapstructure:"user"`
	Password   string `mapstructure:"password"`
	CaFile     string `mapstructure:"ca_file"`
	SkipSecure bool   `mapstructure:"skip_secure"`
}

type Manager

type Manager interface {
	GetWorkflows(ctx context.Context) ([]api.Workflow, error)
	TriggerWorkflow(ctx context.Context, id string, inputs map[string]interface{}) (string, error)

	GetExecution(ctx context.Context, id string) (alien4cloud.Execution, error)
	GetExecutionLogs(ctx context.Context, id string, fromIndex, size int, levels ...string) ([]alien4cloud.Log, int, error)
	CancelExecution(ctx context.Context, id string) error
}

func GetManager

func GetManager(c Config) (
	Manager, error)

Jump to

Keyboard shortcuts

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