Documentation ¶
Index ¶
- Constants
- func GetMetadataName(name, resource string) string
- func NewCronJobSpec(parameters templateParameters) (*batchv1.CronJob, error)
- type Client
- func (c *Client) Create(ctx context.Context, id, name, namespace string, options CronJobOptions) error
- func (c *Client) Delete(ctx context.Context, name, namespace string) error
- func (c *Client) Get(ctx context.Context, name, namespace string) (*batchv1.CronJob, error)
- func (c *Client) Update(ctx context.Context, cronJob *batchv1.CronJob, id, name, namespace string, ...) error
- type CronJobOptions
Constants ¶
View Source
const ( // TestResourceURI is test resource uri for cron job call TestResourceURI = "tests" // TestSuiteResourceURI is test suite resource uri for cron job call TestSuiteResourceURI = "test-suites" )
Variables ¶
This section is empty.
Functions ¶
func GetMetadataName ¶
GetMetadataName returns cron job metadata name
func NewCronJobSpec ¶
NewCronJobSpec is a method to return cron job spec
Types ¶
type Client ¶
Client data struct for managing running cron jobs
func NewClient ¶
func NewClient(cli client.Client, serviceName string, servicePort int, cronJobTemplate, registry string) *Client
NewClient is a method to create new cron job client
func (*Client) Create ¶
func (c *Client) Create(ctx context.Context, id, name, namespace string, options CronJobOptions) error
Create is a method to create a cron job
Click to show internal directories.
Click to hide internal directories.