Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloud.spaceship.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "cloud.spaceship.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type CreateEventFilter ¶
type CreateEventFilter struct { // CreationTimeout sets what will be the maximum duration can past for the objects in create queue. // It also helps to minimize number of object that will be re-sent when application restarts. CreationTimeout *string `json:"creationTimeout,omitempty" yaml:"creationTimeout"` Compiled struct { CreationTimeout time.Duration } `json:"-"` }
func (*CreateEventFilter) DeepCopy ¶
func (in *CreateEventFilter) DeepCopy() *CreateEventFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateEventFilter.
func (*CreateEventFilter) DeepCopyInto ¶
func (in *CreateEventFilter) DeepCopyInto(out *CreateEventFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CustomObjectFilter ¶ added in v1.0.0
type CustomObjectFilter struct { // Template is the template that will be used to compare result with Result and filter accordingly. Template string `json:"template,omitempty" yaml:"template"` // Result is the result that will be used to compare with the result of the Template. Result string `json:"result,omitempty" yaml:"result"` Compiled struct { Template *template.Template } `json:"-"` }
func (*CustomObjectFilter) DeepCopy ¶ added in v1.0.0
func (in *CustomObjectFilter) DeepCopy() *CustomObjectFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomObjectFilter.
func (*CustomObjectFilter) DeepCopyInto ¶ added in v1.0.0
func (in *CustomObjectFilter) DeepCopyInto(out *CustomObjectFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Destination ¶
type Destination struct { // URLTemplate is the template field to set where will be the destination. URLTemplate string `json:"urlTemplate,omitempty" yaml:"urlTemplate"` // BodyTemplate is the template field to set what will be sent the destination. BodyTemplate string `json:"bodyTemplate,omitempty" yaml:"bodyTemplate"` // Method is the HTTP method will be used while calling the destination endpoints. Method string `json:"method,omitempty" yaml:"method"` // Method is the HTTP headers will be used while calling the destination endpoints. Headers map[string][]string `json:"headers,omitempty" yaml:"headers"` Compiled struct { URLTemplate *template.Template BodyTemplate *template.Template } `json:"-"` }
func (*Destination) DeepCopy ¶
func (in *Destination) DeepCopy() *Destination
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Destination.
func (*Destination) DeepCopyInto ¶
func (in *Destination) DeepCopyInto(out *Destination)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EventFilter ¶
type EventFilter struct { // Create allows you to set create event based filters Create CreateEventFilter `json:"create,omitempty" yaml:"create"` // Update allows you to set update event based filters Update UpdateEventFilter `json:"update,omitempty" yaml:"update"` }
func (*EventFilter) DeepCopy ¶
func (in *EventFilter) DeepCopy() *EventFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EventFilter.
func (*EventFilter) DeepCopyInto ¶
func (in *EventFilter) DeepCopyInto(out *EventFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Filter ¶
type Filter struct { // Event allows you to set event based filters Event EventFilter `json:"event,omitempty" yaml:"event"` // Object allows you to set object based filters Object ObjectFilter `json:"object,omitempty" yaml:"object"` }
func (*Filter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Filter.
func (*Filter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectFilter ¶
type ObjectFilter struct { // Name is the regular expression to filter object Its name. Name *string `json:"name,omitempty" yaml:"name"` // Namespace is the regular expression to filter object Its namespace. Namespace *string `json:"namespace,omitempty" yaml:"namespace"` // Labels are the labels to filter object by labels. Labels *map[string]string `json:"labels,omitempty" yaml:"labels"` // Annotations are the labels to filter object by annotation. Annotations *map[string]string `json:"annotations,omitempty" yaml:"annotations"` // Custom is the most advanced way of filtering object by their contents and multiple fields by templating. Custom *CustomObjectFilter `json:"custom,omitempty" yaml:"custom"` Compiled struct { Name *regexp.Regexp Namespace *regexp.Regexp } `json:"-"` }
func (*ObjectFilter) DeepCopy ¶
func (in *ObjectFilter) DeepCopy() *ObjectFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectFilter.
func (*ObjectFilter) DeepCopyInto ¶
func (in *ObjectFilter) DeepCopyInto(out *ObjectFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OnSuccessSourceOptions ¶ added in v1.0.0
type OnSuccessSourceOptions struct { // DeleteObject will delete the object after it successfully processed. DeleteObject bool `json:"deleteObject,omitempty" yaml:"deleteObject"` }
func (*OnSuccessSourceOptions) DeepCopy ¶ added in v1.0.0
func (in *OnSuccessSourceOptions) DeepCopy() *OnSuccessSourceOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OnSuccessSourceOptions.
func (*OnSuccessSourceOptions) DeepCopyInto ¶ added in v1.0.0
func (in *OnSuccessSourceOptions) DeepCopyInto(out *OnSuccessSourceOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretKeySelector ¶
type SecretKeySelector struct { Name string `json:"name"` Namespace string `json:"namespace"` Key string `json:"key"` }
func (*SecretKeySelector) DeepCopy ¶
func (in *SecretKeySelector) DeepCopy() *SecretKeySelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretKeySelector.
func (*SecretKeySelector) DeepCopyInto ¶
func (in *SecretKeySelector) DeepCopyInto(out *SecretKeySelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Source ¶
type Source struct { // APIVersion is api version of the object like apps/v1, v1 etc. APIVersion string `json:"apiVersion,omitempty" yaml:"apiVersion"` // Kind is the kind of the object like Deployment, Secret, MyCustomResource etc. Kind string `json:"kind,omitempty" yaml:"kind"` // Concurrency is how many concurrent workers will be working on processing this source. Concurrency *int `json:"concurrency,omitempty" yaml:"concurrency"` // Options allows you to set source specific options Options SourceOptions `json:"options,omitempty" yaml:"options"` }
func (*Source) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Source.
func (*Source) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Source) NewObject ¶
func (s *Source) NewObject() *unstructured.Unstructured
type SourceOptions ¶ added in v1.0.0
type SourceOptions struct { // OnSuccess options will be used when the source is successfully processed. OnSuccess OnSuccessSourceOptions `json:"onSuccess,omitempty" yaml:"onSuccess"` }
func (*SourceOptions) DeepCopy ¶ added in v1.0.0
func (in *SourceOptions) DeepCopy() *SourceOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceOptions.
func (*SourceOptions) DeepCopyInto ¶ added in v1.0.0
func (in *SourceOptions) DeepCopyInto(out *SourceOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type UpdateEventFilter ¶
type UpdateEventFilter struct { // GenerationChanged sets if generation should be different or same according to value. // It's useful when you want/don't want to send objects when their sub-resources are updated, like status updates. // By default, It's not set. GenerationChanged *bool `json:"generationChanged,omitempty" yaml:"generationChanged"` // ResourceVersionChanged sets if resource version should be different or same according to value. // It's useful when you don't want to re-send objects if their resource version is not changed, // like it will happen on full re-synchronization. By default, It's not set. ResourceVersionChanged *bool `json:"resourceVersionChanged,omitempty" yaml:"resourceVersion"` }
func (*UpdateEventFilter) DeepCopy ¶
func (in *UpdateEventFilter) DeepCopy() *UpdateEventFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpdateEventFilter.
func (*UpdateEventFilter) DeepCopyInto ¶
func (in *UpdateEventFilter) DeepCopyInto(out *UpdateEventFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ValuesFrom ¶
type ValuesFrom struct { // Secrets are the references that will be merged from. Secrets []SecretKeySelector `json:"secrets,omitempty"` }
func (*ValuesFrom) DeepCopy ¶
func (in *ValuesFrom) DeepCopy() *ValuesFrom
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValuesFrom.
func (*ValuesFrom) DeepCopyInto ¶
func (in *ValuesFrom) DeepCopyInto(out *ValuesFrom)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Watcher ¶
type Watcher struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WatcherSpec `json:"spec,omitempty"` }
func (*Watcher) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Watcher.
func (*Watcher) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Watcher) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WatcherList ¶
type WatcherList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Watcher `json:"items"` }
func (*WatcherList) DeepCopy ¶
func (in *WatcherList) DeepCopy() *WatcherList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatcherList.
func (*WatcherList) DeepCopyInto ¶
func (in *WatcherList) DeepCopyInto(out *WatcherList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WatcherList) DeepCopyObject ¶
func (in *WatcherList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WatcherSpec ¶
type WatcherSpec struct { // Source defines the source objects of the watching process. Source Source `json:"source,omitempty" yaml:"source"` // Filter helps filter objects during the watching process. Filter Filter `json:"filter,omitempty" yaml:"filter"` // Destination sets where the rendered objects will be sent. Destination Destination `json:"destination,omitempty" yaml:"destination"` // ValuesFrom allows merging variables from references. ValuesFrom ValuesFrom `json:"valuesFrom,omitempty"` }
func (*WatcherSpec) DeepCopy ¶
func (in *WatcherSpec) DeepCopy() *WatcherSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WatcherSpec.
func (*WatcherSpec) DeepCopyInto ¶
func (in *WatcherSpec) DeepCopyInto(out *WatcherSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WatcherSpec) GetConcurrency ¶
func (w *WatcherSpec) GetConcurrency() int