Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: githook.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type ArgoWorkflowSpec ¶
type ArgoWorkflowSpec struct { RevisionParameterName string `json:"revisionParameterName"` BranchParameterName string `json:"branchParameterName"` }
ArgoWorkflowSpec is the spec for an ArgoWorkflow
func (*ArgoWorkflowSpec) DeepCopy ¶
func (in *ArgoWorkflowSpec) DeepCopy() *ArgoWorkflowSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArgoWorkflowSpec.
func (*ArgoWorkflowSpec) DeepCopyInto ¶
func (in *ArgoWorkflowSpec) DeepCopyInto(out *ArgoWorkflowSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHook ¶
type GitHook struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitHookSpec `json:"spec"` Status GitHookStatus `json:"status"` }
GitHook is a specification for a GitHook resource
func (*GitHook) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHook.
func (*GitHook) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitHook) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitHookList ¶
type GitHookList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []GitHook `json:"items"` }
GitHookList is a list of GitHook resources
func (*GitHookList) DeepCopy ¶
func (in *GitHookList) DeepCopy() *GitHookList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHookList.
func (*GitHookList) DeepCopyInto ¶
func (in *GitHookList) DeepCopyInto(out *GitHookList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitHookList) DeepCopyObject ¶
func (in *GitHookList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitHookSpec ¶
type GitHookSpec struct { Repository string `json:"repository"` Branches []string `json:"branches"` Manifest string `json:"manifest"` TimestampSuffix bool `json:"timestampSuffix"` ArgoWorkflow *ArgoWorkflowSpec `json:"argoWorkflow"` UsernameSecret Secret `json:"usernameSecret"` PasswordSecret Secret `json:"passwordSecret"` SshPrivateKeySecret Secret `json:"sshPrivateKeySecret"` Notification NotificationSpec `json:"notification"` }
GitHookSpec is the spec for a GitHook resource
func (*GitHookSpec) DeepCopy ¶
func (in *GitHookSpec) DeepCopy() *GitHookSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHookSpec.
func (*GitHookSpec) DeepCopyInto ¶
func (in *GitHookSpec) DeepCopyInto(out *GitHookSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHookStatus ¶
type GitHookStatus struct { LastCommit string `json:"lastCommit"` Branch string `json:"branch"` Author string `json:"author"` AppliedResource ResourceSpec `json:"appliedResource"` TriggerCount int64 `json:"triggerCount"` LastTrigger metav1.Time `json:"lastTrigger,omitempty"` }
GitHookStatus is the status for a GitHook resource
func (*GitHookStatus) DeepCopy ¶
func (in *GitHookStatus) DeepCopy() *GitHookStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHookStatus.
func (*GitHookStatus) DeepCopyInto ¶
func (in *GitHookStatus) DeepCopyInto(out *GitHookStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NotificationSpec ¶
NotificationSpec is the resource that will be used for GitHook status and where it will be notified
func (*NotificationSpec) DeepCopy ¶
func (in *NotificationSpec) DeepCopy() *NotificationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NotificationSpec.
func (*NotificationSpec) DeepCopyInto ¶
func (in *NotificationSpec) DeepCopyInto(out *NotificationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSpec ¶
type ResourceSpec struct { APIVersion string `json:"apiVersion"` Kind string `json:"kind"` Name string `json:"name"` Namespace string `json:"namespace"` }
ResourceSpec is the spec of a k8s resource that is used by GitHook
func (*ResourceSpec) DeepCopy ¶
func (in *ResourceSpec) DeepCopy() *ResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec.
func (*ResourceSpec) DeepCopyInto ¶
func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Secret ¶
Secret is a secret type for the repository auth of a GitHook resource
func (*Secret) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Secret.
func (*Secret) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.