Documentation
¶
Overview ¶
+groupName=git.kube.ci
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Resource(resource string) schema.GroupResource
- type Branch
- type BranchList
- type BranchSpec
- type PullRequest
- type PullRequestList
- type PullRequestSpec
- type Repository
- func (c Repository) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Repository) DeepCopy() *Repository
- func (in *Repository) DeepCopyInto(out *Repository)
- func (in *Repository) DeepCopyObject() runtime.Object
- func (repo *Repository) GetToken(kubeClient kubernetes.Interface) (string, error)
- func (r Repository) IsValid() error
- type RepositoryList
- type RepositorySpec
- type RepositoryStatus
- type Tag
- type TagList
- type TagSpec
Constants ¶
const ( ResourceKindBranch = "Branch" ResourceBranches = "branches" )
const ( ResourceKindPullRequest = "PullRequest" ResourcePullRequests = "pullrequests" )
const ( ResourceKindRepository = "Repository" ResourceRepositories = "repositories" )
const ( ResourceKindTag = "Tag" ResourceTags = "tags" )
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var (
EnableStatusSubresource bool
)
var SchemeGroupVersion = schema.GroupVersion{Group: git.GroupName, Version: "v1alpha1"}
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Branch ¶
type Branch struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BranchSpec `json:"spec,omitempty"` }
func (Branch) CustomResourceDefinition ¶
func (c Branch) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*Branch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Branch.
func (*Branch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Branch) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BranchList ¶
type BranchList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Branch `json:"items,omitempty"` }
func (*BranchList) DeepCopy ¶
func (in *BranchList) DeepCopy() *BranchList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchList.
func (*BranchList) DeepCopyInto ¶
func (in *BranchList) DeepCopyInto(out *BranchList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BranchList) DeepCopyObject ¶
func (in *BranchList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BranchSpec ¶
type BranchSpec struct {
LastCommitHash string `json:"lastCommitHash,omitempty"`
}
func (*BranchSpec) DeepCopy ¶
func (in *BranchSpec) DeepCopy() *BranchSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchSpec.
func (*BranchSpec) DeepCopyInto ¶
func (in *BranchSpec) DeepCopyInto(out *BranchSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequest ¶
type PullRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PullRequestSpec `json:"spec,omitempty"` }
func (PullRequest) CustomResourceDefinition ¶
func (c PullRequest) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*PullRequest) DeepCopy ¶
func (in *PullRequest) DeepCopy() *PullRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequest.
func (*PullRequest) DeepCopyInto ¶
func (in *PullRequest) DeepCopyInto(out *PullRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PullRequest) DeepCopyObject ¶
func (in *PullRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PullRequestList ¶
type PullRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PullRequest `json:"items,omitempty"` }
func (*PullRequestList) DeepCopy ¶
func (in *PullRequestList) DeepCopy() *PullRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestList.
func (*PullRequestList) DeepCopyInto ¶
func (in *PullRequestList) DeepCopyInto(out *PullRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PullRequestList) DeepCopyObject ¶
func (in *PullRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PullRequestSpec ¶
type PullRequestSpec struct { Number int `json:"number,omitempty"` HeadRef string `json:"headRef,omitempty"` HeadSHA string `json:"headSHA,omitempty"` }
func (*PullRequestSpec) DeepCopy ¶
func (in *PullRequestSpec) DeepCopy() *PullRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PullRequestSpec.
func (*PullRequestSpec) DeepCopyInto ¶
func (in *PullRequestSpec) DeepCopyInto(out *PullRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Repository ¶
type Repository struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RepositorySpec `json:"spec,omitempty"` Status RepositoryStatus `json:"status,omitempty"` }
func (Repository) CustomResourceDefinition ¶
func (c Repository) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
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) GetToken ¶
func (repo *Repository) GetToken(kubeClient kubernetes.Interface) (string, error)
func (Repository) IsValid ¶
func (r Repository) IsValid() error
type RepositoryList ¶
type RepositoryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Repository `json:"items,omitempty"` }
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 { Host string `json:"host,omitempty"` // github, gitlab // TODO: use type Owner string `json:"owner,omitempty"` Repo string `json:"repo,omitempty"` CloneUrl string `json:"cloneUrl,omitempty"` TokenFormSecret *string `json:"tokenFormSecret,omitempty"` // secret name, secret must have field 'token' }
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 { // observedGeneration is the most recent generation observed for this resource. It corresponds to the // resource's generation, which is updated on mutation by the API Server. // +optional ObservedGeneration *types.IntHash `json:"observedGeneration,omitempty"` }
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.
type Tag ¶
type Tag struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TagSpec `json:"spec,omitempty"` }
func (Tag) CustomResourceDefinition ¶
func (c Tag) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*Tag) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tag.
func (*Tag) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Tag) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TagList ¶
type TagList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Tag `json:"items,omitempty"` }
func (*TagList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagList.
func (*TagList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TagList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TagSpec ¶
type TagSpec struct {
LastCommitHash string `json:"lastCommitHash,omitempty"`
}
func (*TagSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TagSpec.
func (*TagSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.