Documentation ¶
Index ¶
- Constants
- func Run(ctx context.Context, tr TaskRunner) error
- type Error
- type Task
- func (c *Task) Close() error
- func (c *Task) Config() *config.Service
- func (c *Task) Context() *taskcontext.Service
- func (c *Task) Docker() *docker.Service
- func (c *Task) JSONStore(name string) *jsonstore.Store
- func (c *Task) KV() *kv.Service
- func (c *Task) Lock() *lock.Service
- func (c *Task) Log(ctx context.Context, format string, v ...interface{}) error
- func (c *Task) Secret() *secret.Service
- type TaskRunner
- type TaskRunnerFunc
Constants ¶
View Source
const ( DefaultOrgName = "Default" DefaultTeamName = "default" DefaultTeamID = "00000000-0000-0000-0000-000000000000" )
View Source
const ( EnvGRPCAddress = "GRPC_ADDR" EnvMagicKey = "GRPC_MAGIC_KEY" EnvMagicValue = "d0c08ee0-a663-4a6b-ad5e-00a5fca1e5cf" EnvCAFile = "GRPC_CA_CERT_FILE" EnvCertFile = "GRPC_CLIENT_CERT_FILE" EnvKeyFile = "GRPC_CLIENT_KEY_FILE" EnvOrgName = "CONCORD_ORG_NAME" EnvProcessID = "CONCORD_PROCESS_ID" EnvWorkingDir = "CONCORD_WORKING_DIRECTORY" EnvServerVersion = "GOODWILL_SERVER_VERSION" )
View Source
const ( ErrNoMagicKey = Error("no magic key provided") ErrNoGRPCAddr = Error("no grpc address provided") )
View Source
const (
MinServerVersion = "0.4.0"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Task ¶
type Task struct { OrgName string WorkingDir string ProcessID string ServerVersion string // contains filtered or unexported fields }
func (*Task) Context ¶
func (c *Task) Context() *taskcontext.Service
Context returns a service for interacting with the process context such as setting and getting variabes, and evaluating the results of Java Expressions in JEL 3.0
func (*Task) JSONStore ¶ added in v0.2.0
JSONStore returns a jsonstore.Store for the given store name The store should already exist, otherwise operations will fail. This store should be in the current Org of the process.
type TaskRunner ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.