v1alpha1

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/controller-tools/examples/godocbot/pkg/apis/code +k8s:defaulter-gen=TypeMeta +groupName=code.godocs.io

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/controller-tools/examples/godocbot/pkg/apis/code +k8s:defaulter-gen=TypeMeta +groupName=code.godocs.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var KnownTypes = []runtime.Object{}
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "code.godocs.io", 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 PullRequest

type PullRequest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PullRequestSpec   `json:"spec,omitempty"`
	Status PullRequestStatus `json:"status,omitempty"`
}

PullRequest +k8s:openapi-gen=true

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"`
}

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 {
	// URL of the PULL Request
	URL string `json:"url"`

	// Latest commit ID on the PR. This is optional.
	CommitID string `json:"commit_id, omitempty"`
}

PullRequestSpec defines the desired state of PullRequest

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 PullRequestStatus

type PullRequestStatus struct {
	// The URL which is serving the godoc for the PR.
	GoDocLink string `json:"godoc_link"`

	// CommitID for which the godoc is being served
	CommitID string `json:"commit_id"`
}

PullRequestStatus defines the observed state of PullRequest

func (*PullRequestStatus) DeepCopy

func (in *PullRequestStatus) DeepCopy() *PullRequestStatus

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

func (*PullRequestStatus) DeepCopyInto

func (in *PullRequestStatus) DeepCopyInto(out *PullRequestStatus)

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