v1alpha1

package
v0.0.0-...-027e5d0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 5 Imported by: 9

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=sources.aikas.org

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: cloudschedulersource.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type CloudSchedulerSource

type CloudSchedulerSource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   CloudSchedulerSourceSpec   `json:"spec"`
	Status CloudSchedulerSourceStatus `json:"status"`
}

CloudSchedulerSource is a specification for a CloudSchedulerSource resource

func (*CloudSchedulerSource) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudSchedulerSource.

func (*CloudSchedulerSource) DeepCopyInto

func (in *CloudSchedulerSource) DeepCopyInto(out *CloudSchedulerSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CloudSchedulerSource) DeepCopyObject

func (in *CloudSchedulerSource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*CloudSchedulerSource) GetGroupVersionKind

func (csr *CloudSchedulerSource) GetGroupVersionKind() schema.GroupVersionKind

type CloudSchedulerSourceList

type CloudSchedulerSourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []CloudSchedulerSource `json:"items"`
}

CloudSchedulerSourceList is a list of CloudSchedulerSource resources

func (*CloudSchedulerSourceList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudSchedulerSourceList.

func (*CloudSchedulerSourceList) DeepCopyInto

func (in *CloudSchedulerSourceList) DeepCopyInto(out *CloudSchedulerSourceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*CloudSchedulerSourceList) DeepCopyObject

func (in *CloudSchedulerSourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type CloudSchedulerSourceSpec

type CloudSchedulerSourceSpec struct {
	// ServiceAccountName holds the name of the Kubernetes service account
	// as which the underlying K8s resources should be run. If unspecified
	// this will default to the "default" service account for the namespace
	// in which the CloudSchedulerSource exists.
	// +optional
	ServiceAccountName string `json:"serviceAccountName,omitempty"`

	// GoogleCloudProject is the ID of the Google Cloud Project that the PubSub Topic exists in.
	GoogleCloudProject string `json:"googleCloudProject,omitempty"`

	// Location where to create the Job in.
	Location string `json:"location"`

	// Schedule in cron format, for example: "* * * * *" would be run
	// every minute.
	Schedule string `json:"schedule"`
	// Timezone to apply to the schedule. If omitted, uses UTC
	TimeZone string `json:"timezone,omitempty"`

	// Which method to use to call. GET,PUT or POST. If omitted uses POST
	// +optional
	HTTPMethod string `json:"httpMethod,omitempty"`
	// What data to send in the call body (PUT/POST).
	// +optional
	Body string `json:"body,omitempty"`

	// Sink is a reference to an object that will resolve to a domain name to use
	// as the sink.
	// +optional
	Sink *corev1.ObjectReference `json:"sink,omitempty"`
}

CloudSchedulerSourceSpec is the spec for a CloudSchedulerSource resource

func (*CloudSchedulerSourceSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudSchedulerSourceSpec.

func (*CloudSchedulerSourceSpec) DeepCopyInto

func (in *CloudSchedulerSourceSpec) DeepCopyInto(out *CloudSchedulerSourceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type CloudSchedulerSourceStatus

type CloudSchedulerSourceStatus struct {
	// TODO: add conditions and other stuff here...
	// Job is the URI for the created Cloud Scheduler Job
	Job string `json:"job"`

	// SinkURI is the current active sink URI that has been configured
	// for the CloudSchedulerSource
	// +optional
	SinkURI string `json:"sinkUri,omitempty"`
}

CloudSchedulerSourceStatus is the status for a CloudSchedulerSource resource

func (*CloudSchedulerSourceStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudSchedulerSourceStatus.

func (*CloudSchedulerSourceStatus) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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