Documentation
      ¶
    
    
  
    
  
    Overview ¶
+k8s:deepcopy-gen=package +groupName=gitwatcher.cattle.io
+k8s:deepcopy-gen=package +groupName=gitwatcher.cattle.io
+k8s:deepcopy-gen=package +groupName=gitwatcher.cattle.io
Index ¶
Constants ¶
Variables ¶
var ( GitCommitResourceName = "gitcommits" GitWatcherResourceName = "gitwatchers" )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: gitwatcher.GroupName, Version: "v1"}
    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 Condition ¶
type Condition struct {
	// Type of the condition.
	Type string `json:"type"`
	// Status of the condition, one of True, False, Unknown.
	Status v1.ConditionStatus `json:"status"`
	// The last time this condition was updated.
	LastUpdateTime string `json:"lastUpdateTime,omitempty"`
	// Last time the condition transitioned from one status to another.
	LastTransitionTime string `json:"lastTransitionTime,omitempty"`
	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`
	// Human-readable message indicating details about last transition
	Message string `json:"message,omitempty"`
}
    func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommit ¶
type GitCommit struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec   GitCommitSpec   `json:"spec,omitempty"`
	Status GitCommitStatus `json:"status,omitempty"`
}
    func NewGitCommit ¶
func (*GitCommit) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommit.
func (*GitCommit) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitCommit) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitCommitList ¶
type GitCommitList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items []GitCommit `json:"items"`
}
    GitCommitList is a list of GitCommit resources
func (*GitCommitList) DeepCopy ¶
func (in *GitCommitList) DeepCopy() *GitCommitList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitList.
func (*GitCommitList) DeepCopyInto ¶
func (in *GitCommitList) DeepCopyInto(out *GitCommitList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitCommitList) DeepCopyObject ¶
func (in *GitCommitList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitCommitSpec ¶
type GitCommitSpec struct {
	Action         string `json:"action,omitempty"`
	Payload        string `json:"payload,omitempty"`
	GitWatcherName string `json:"gitWatcherName,omitempty"`
	Commit         string `json:"commit,omitempty"`
	Branch         string `json:"branch,omitempty"`
	Tag            string `json:"tag,omitempty"`
	PR             string `json:"pr,omitempty"`
	Merged         bool   `json:"merged,omitempty"`
	Closed         bool   `json:"closed,omitempty"`
	SourceLink     string `json:"sourceLink,omitempty"`
	RepositoryURL  string `json:"repositoryUrl,omitempty"`
	Title          string `json:"title,omitempty"`
	Message        string `json:"message,omitempty"`
	Author         string `json:"author,omitempty"`
	AuthorEmail    string `json:"authorEmail,omitempty"`
	AuthorAvatar   string `json:"authorAvatar,omitempty"`
}
    func (*GitCommitSpec) DeepCopy ¶
func (in *GitCommitSpec) DeepCopy() *GitCommitSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitSpec.
func (*GitCommitSpec) DeepCopyInto ¶
func (in *GitCommitSpec) DeepCopyInto(out *GitCommitSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitStatus ¶
type GitCommitStatus struct {
	Conditions    []Condition   `json:"conditions,omitempty"`
	StatusURL     string        `json:"statusUrl,omitempty"`
	AppliedStatus string        `json:"appliedStatus,omitempty"`
	BuildStatus   string        `json:"buildStatus,omitempty"`
	GithubStatus  *GithubStatus `json:"githubStatus,omitempty"`
}
    func (*GitCommitStatus) DeepCopy ¶
func (in *GitCommitStatus) DeepCopy() *GitCommitStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitStatus.
func (*GitCommitStatus) DeepCopyInto ¶
func (in *GitCommitStatus) DeepCopyInto(out *GitCommitStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitWatcher ¶
type GitWatcher struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec   GitWatcherSpec   `json:"spec"`
	Status GitWatcherStatus `json:"status"`
}
    func NewGitWatcher ¶
func NewGitWatcher(namespace, name string, obj GitWatcher) *GitWatcher
func (*GitWatcher) DeepCopy ¶
func (in *GitWatcher) DeepCopy() *GitWatcher
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitWatcher.
func (*GitWatcher) DeepCopyInto ¶
func (in *GitWatcher) DeepCopyInto(out *GitWatcher)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitWatcher) DeepCopyObject ¶
func (in *GitWatcher) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitWatcherList ¶
type GitWatcherList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items []GitWatcher `json:"items"`
}
    GitWatcherList is a list of GitWatcher resources
func (*GitWatcherList) DeepCopy ¶
func (in *GitWatcherList) DeepCopy() *GitWatcherList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitWatcherList.
func (*GitWatcherList) DeepCopyInto ¶
func (in *GitWatcherList) DeepCopyInto(out *GitWatcherList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitWatcherList) DeepCopyObject ¶
func (in *GitWatcherList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitWatcherSpec ¶
type GitWatcherSpec struct {
	ReceiverURL                    string            `json:"receiverURL,omitempty"`
	RepositoryURL                  string            `json:"repositoryUrl,omitempty"`
	RepositoryCredentialSecretName string            `json:"repositoryCredentialSecretName,omitempty"`
	GithubWebhookToken             string            `json:"githubWebhookToken,omitempty"`
	Provider                       string            `json:"provider,omitempty"`
	Push                           bool              `json:"push,omitempty"`
	PR                             bool              `json:"pr,omitempty"`
	Branch                         string            `json:"branch,omitempty"`
	Tag                            bool              `json:"tag,omitempty"`
	TagIncludeRegexp               string            `json:"tagInclude,omitempty"`
	TagExcludeRegexp               string            `json:"tagExclude,omitempty"`
	ExecutionLabels                map[string]string `json:"executionLabels,omitempty"`
	Enabled                        bool              `json:"enabled,omitempty"`
	GithubDeployment               bool              `json:"githubDeployment,omitempty"`
}
    func (*GitWatcherSpec) DeepCopy ¶
func (in *GitWatcherSpec) DeepCopy() *GitWatcherSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitWatcherSpec.
func (*GitWatcherSpec) DeepCopyInto ¶
func (in *GitWatcherSpec) DeepCopyInto(out *GitWatcherSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitWatcherStatus ¶
type GitWatcherStatus struct {
	Conditions  []Condition `json:"conditions,omitempty"`
	Token       string      `json:"token,omitempty"`
	HookID      string      `json:"hookId,omitempty"`
	FirstCommit string      `json:"firstCommit,omitempty"`
}
    func (*GitWatcherStatus) DeepCopy ¶
func (in *GitWatcherStatus) DeepCopy() *GitWatcherStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitWatcherStatus.
func (*GitWatcherStatus) DeepCopyInto ¶
func (in *GitWatcherStatus) DeepCopyInto(out *GitWatcherStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GithubStatus ¶ added in v0.4.0
type GithubStatus struct {
	DeploymentID    int64  `json:"deploymentId,omitempty"`
	DeploymentState string `json:"deploymentState,omitempty"`
	EnvironmentURL  string `json:"environmentUrl,omitempty"`
	LogURL          string `json:"logUrl,omitempty"`
}
    func (*GithubStatus) DeepCopy ¶ added in v0.4.0
func (in *GithubStatus) DeepCopy() *GithubStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GithubStatus.
func (*GithubStatus) DeepCopyInto ¶ added in v0.4.0
func (in *GithubStatus) DeepCopyInto(out *GithubStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.