resources

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const (
	JobPrefix = "jobs/cre-scheduler"
)

Variables

This section is empty.

Functions

func ExtractJobID

func ExtractJobID(jobName string) string

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

func ExtractParentName(jobName string) string

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.

Jump to

Keyboard shortcuts

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