Documentation ¶
Index ¶
- Constants
- Variables
- func GetEvent(jobName string, appInstance *v1.AppInstance) string
- func GetJobOutputSecretName(ctx context.Context, namespace, jobName string) string
- func GetOutputFor(ctx context.Context, c kclient.Client, appInstance *v1.AppInstance, ...) (err error)
- func ShouldRun(jobName string, appInstance *v1.AppInstance) bool
- func ShouldRunForEvent(eventName string, container v1.Container) bool
Constants ¶
View Source
const (
Helper = "acorn-job-output-helper"
)
Variables ¶
View Source
var ( ErrJobNotDone = errors.New("job not complete") ErrJobNoOutput = errors.New("job has no output") )
Functions ¶
func GetEvent ¶
func GetEvent(jobName string, appInstance *v1.AppInstance) string
GetEvent determines the event type for the job based on the app's status.
func GetJobOutputSecretName ¶
func GetOutputFor ¶
func GetOutputFor(ctx context.Context, c kclient.Client, appInstance *v1.AppInstance, name, serviceName string, obj interface{}) (err error)
GetOutputFor obj must be acorn internal v1.Secret, v1.Service, or string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.