Documentation ¶
Index ¶
- Constants
- func ExtractJobID(jobName string) string
- func ExtractParentName(jobName string) string
- func GenerateJobName(scheduler *v1.CloudSchedulerSource) string
- func GeneratePubSubTargetTopic(scheduler *v1.CloudSchedulerSource, topic string) string
- func GenerateTopicName(scheduler *v1.CloudSchedulerSource) string
Constants ¶
const (
JobPrefix = "jobs/cre-scheduler"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractJobID ¶
ExtractJobID extracts the JobID from the job name. Example: given projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID, returns jobs/JOB_ID.
func ExtractParentName ¶
ExtractParentName extracts the parent from the job name. Example: given projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID, returns projects/PROJECT_ID/locations/LOCATION_ID.
func GenerateJobName ¶
func GenerateJobName(scheduler *v1.CloudSchedulerSource) string
GenerateJobName generates a job name like this: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.
func GeneratePubSubTargetTopic ¶
func GeneratePubSubTargetTopic(scheduler *v1.CloudSchedulerSource, topic string) string
GeneratePubSubTarget generates a topic name for the PubsubTarget used to create the CloudSchedulerSource job.
func GenerateTopicName ¶
func GenerateTopicName(scheduler *v1.CloudSchedulerSource) string
GenerateTopicName generates a topic name for the scheduler. This refers to the underlying Pub/Sub topic, and not our Topic resource.
Types ¶
This section is empty.