v1alpha1

package
v0.0.0-...-f69cff6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

+groupName=git.kube.ci

Index

Constants

View Source
const (
	ResourceKindBranch = "Branch"
	ResourceBranches   = "branches"
)
View Source
const (
	ResourceKindPullRequest = "PullRequest"
	ResourcePullRequests    = "pullrequests"
)
View Source
const (
	ResourceKindRepository = "Repository"
	ResourceRepositories   = "repositories"
)
View Source
const (
	ResourceKindTag = "Tag"
	ResourceTags    = "tags"
)

Variables

View Source
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
)
View Source
var (
	EnableStatusSubresource bool
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: git.GroupName, Version: "v1alpha1"}

Functions

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

func (in *Branch) DeepCopy() *Branch

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

func (*Branch) DeepCopyInto

func (in *Branch) DeepCopyInto(out *Branch)

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

func (*Branch) DeepCopyObject

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

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

func (in *Tag) DeepCopy() *Tag

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

func (*Tag) DeepCopyInto

func (in *Tag) DeepCopyInto(out *Tag)

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

func (*Tag) DeepCopyObject

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

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

func (in *TagList) DeepCopy() *TagList

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

func (*TagList) DeepCopyInto

func (in *TagList) DeepCopyInto(out *TagList)

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

func (*TagList) DeepCopyObject

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

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

func (in *TagSpec) DeepCopy() *TagSpec

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

func (*TagSpec) DeepCopyInto

func (in *TagSpec) DeepCopyInto(out *TagSpec)

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