resources

package
Version: v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

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 *v1alpha1.CloudSchedulerSource) string

GenerateJobName generates a job name like this: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

func GeneratePubSubTargetTopic

func GeneratePubSubTargetTopic(scheduler *v1alpha1.CloudSchedulerSource, topic string) string

GeneratePubSubTarget generates a topic name for the PubsubTarget used to create the CloudSchedulerSource job.

func GenerateTopicName

func GenerateTopicName(scheduler *v1alpha1.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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to