v1alpha1

package
v0.0.0-...-b219a09 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: githook.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 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

func (in *GitHook) DeepCopy() *GitHook

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

func (*GitHook) DeepCopyInto

func (in *GitHook) DeepCopyInto(out *GitHook)

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

func (*GitHook) DeepCopyObject

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

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

type NotificationSpec struct {
	Github string `json:"github"`
	Slack  string `json:"slack"`
}

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

type Secret struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

Secret is a secret type for the repository auth of a GitHook resource

func (*Secret) DeepCopy

func (in *Secret) DeepCopy() *Secret

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

func (*Secret) DeepCopyInto

func (in *Secret) DeepCopyInto(out *Secret)

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