Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the polling v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=polling.tekton.dev
Package v1alpha1 contains API Schema definitions for the polling v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=polling.tekton.dev
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "polling.tekton.dev", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type AuthSecret ¶
type AuthSecret struct { corev1.SecretReference `json:"secretRef,omitempty"` Key string `json:"key,omitempty"` }
AuthSecret references a secret for authenticating the request.
func (*AuthSecret) DeepCopy ¶
func (in *AuthSecret) DeepCopy() *AuthSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthSecret.
func (*AuthSecret) DeepCopyInto ¶
func (in *AuthSecret) DeepCopyInto(out *AuthSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineRef ¶
type PipelineRef struct {
Name string `json:"name"`
}
PipelineRef links to the Pipeline to execute.
func (*PipelineRef) DeepCopy ¶
func (in *PipelineRef) DeepCopy() *PipelineRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineRef.
func (*PipelineRef) DeepCopyInto ¶
func (in *PipelineRef) DeepCopyInto(out *PipelineRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PollStatus ¶
type PollStatus struct { Ref string `json:"ref"` SHA string `json:"sha"` ETag string `json:"etag"` }
PollStatus represents the last polled state of the repo.
func (*PollStatus) DeepCopy ¶
func (in *PollStatus) DeepCopy() *PollStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PollStatus.
func (*PollStatus) DeepCopyInto ¶
func (in *PollStatus) DeepCopyInto(out *PollStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PollStatus) Equal ¶
func (p PollStatus) Equal(o PollStatus) bool
Equal returns true if two PollStatus values match.
type RepoType ¶
type RepoType int
RepoType defines the protocol to use to talk to the upstream server.
type Repository ¶
type Repository struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RepositorySpec `json:"spec,omitempty"` Status RepositoryStatus `json:"status,omitempty"` }
Repository is the Schema for the repositories API +kubebuilder:subresource:status +kubebuilder:resource:path=repositories,scope=Namespaced
func (*Repository) DeepCopy ¶
func (in *Repository) DeepCopy() *Repository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository.
func (*Repository) DeepCopyInto ¶
func (in *Repository) DeepCopyInto(out *Repository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Repository) DeepCopyObject ¶
func (in *Repository) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Repository) GetFrequency ¶
func (r *Repository) GetFrequency() time.Duration
GetFrequency returns the configured delay between polls.
type RepositoryList ¶
type RepositoryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Repository `json:"items"` }
RepositoryList contains a list of Repository
func (*RepositoryList) DeepCopy ¶
func (in *RepositoryList) DeepCopy() *RepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryList.
func (*RepositoryList) DeepCopyInto ¶
func (in *RepositoryList) DeepCopyInto(out *RepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RepositoryList) DeepCopyObject ¶
func (in *RepositoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RepositorySpec ¶
type RepositorySpec struct { URL string `json:"url"` Ref string `json:"ref,omitempty"` Auth *AuthSecret `json:"auth,omitempty"` Type RepoType `json:"type,omitempty"` Frequency *metav1.Duration `json:"frequency,omitempty"` Pipeline PipelineRef `json:"pipelineRef"` }
RepositorySpec defines a repository to poll.
func (*RepositorySpec) DeepCopy ¶
func (in *RepositorySpec) DeepCopy() *RepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositorySpec.
func (*RepositorySpec) DeepCopyInto ¶
func (in *RepositorySpec) DeepCopyInto(out *RepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryStatus ¶
type RepositoryStatus struct { LastError string `json:"lastError,omitempty"` PollStatus `json:"pollStatus,omitempty"` ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
RepositoryStatus defines the observed state of Repository
func (*RepositoryStatus) DeepCopy ¶
func (in *RepositoryStatus) DeepCopy() *RepositoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryStatus.
func (*RepositoryStatus) DeepCopyInto ¶
func (in *RepositoryStatus) DeepCopyInto(out *RepositoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.