Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the types v1alpha1 API group this group is a duck type only package that hosts common objects and interfaces in katanomi very similar to knative.dev/pkg/apis/duck/v1 or k8s.io/apimachinery/pkg/apis/meta/v1 +kubebuilder:object:generate=true +k8s:deepcopy-gen=package +groupName=meta.katanomi.dev
Index ¶
- Constants
- Variables
- func ArtifactResourceAttributes(verb string) authv1.ResourceAttributes
- func CopyAnnotations(object, dest metav1.Object)
- func CopyLabels(object, dest metav1.Object)
- func CopyMapStringString(object, dest map[string]string) map[string]string
- func GetNamespacedNameFromObject(obj metav1.Object) (named types.NamespacedName)
- func GetNamespacedNameFromRef(ref *corev1.ObjectReference) (named types.NamespacedName)
- func GetObjectReferenceFromObject(obj metav1.Object, opts ...ObjectRefOptionsFunc) (ref corev1.ObjectReference)
- func GitRepositoryResourceAttributes(verb string) authv1.ResourceAttributes
- func HasAnnotation(obj metav1.Object, key, value string) bool
- func HasLabel(obj metav1.Object, key, value string) bool
- func IsConditionChanged(current, old apis.ConditionAccessor, conditionType apis.ConditionType) bool
- func IsTheSameObject(obj, compared corev1.ObjectReference) bool
- func IsTheSameObjectReference(obj, compared *corev1.ObjectReference) bool
- func MapContainsKeyValue(mapObj map[string]string, key, value string) bool
- func PropagateCondition(conditionManager apis.ConditionManager, conditionType apis.ConditionType, ...)
- func ReasonForError(err error) string
- func RepositoryResourceAttributes(verb string) authv1.ResourceAttributes
- func SetConditionByError(conditionManager apis.ConditionManager, condition apis.ConditionType, ...)
- type Artifact
- type ArtifactList
- type ArtifactOptions
- type ArtifactSpec
- type AuthType
- type CloudEvent
- type CreateBranchParams
- type CreateBranchPayload
- type CreateCommitCommentParam
- type CreateCommitCommentPayload
- type CreateCommitStatusParam
- type CreateCommitStatusPayload
- type CreatePullRequestCommentParam
- type CreatePullRequestCommentPayload
- type CreatePullRequestPayload
- type CreateRepoFileParams
- type CreateRepoFilePayload
- type DefinitionTriggeredType
- type GitBranch
- type GitBranchBaseInfo
- type GitBranchList
- type GitBranchOption
- type GitBranchSpec
- type GitCommit
- type GitCommitBasicInfo
- type GitCommitComment
- type GitCommitCommentList
- type GitCommitCommentSpec
- type GitCommitList
- type GitCommitOption
- type GitCommitSpec
- type GitCommitStatus
- type GitCommitStatusList
- type GitCommitStatusSpec
- type GitOperateLogBaseInfo
- type GitPullRequest
- type GitPullRequestList
- type GitPullRequestListOption
- type GitPullRequestNote
- type GitPullRequestNoteList
- type GitPullRequestNoteSpec
- type GitPullRequestOption
- type GitPullRequestSpec
- type GitRepo
- type GitRepoFile
- type GitRepoFileOption
- type GitRepoFileSpec
- type GitRepository
- type GitRepositoryList
- type GitRepositorySpec
- type GitUserBaseInfo
- type ListMeta
- type ListOptions
- type ObjectCondition
- type ObjectConditionAccessor
- type ObjectConditionChanger
- type ObjectConditionManager
- type ObjectConditionSet
- func (o *ObjectConditionSet) GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition
- func (o *ObjectConditionSet) GetObjectConditions() ObjectConditions
- func (o *ObjectConditionSet) MarkFalse(objref corev1.ObjectReference, reason, messageFormat string, ...)
- func (o *ObjectConditionSet) MarkTrue(objref corev1.ObjectReference)
- func (o *ObjectConditionSet) MarkTrueWithReason(objref corev1.ObjectReference, reason, messageFormat string, ...)
- func (o *ObjectConditionSet) MarkUnknown(objref corev1.ObjectReference, reason, messageFormat string, ...)
- func (o *ObjectConditionSet) RemoveObjectConditionByObjRef(objref corev1.ObjectReference)
- func (o *ObjectConditionSet) SetConditionType(objref corev1.ObjectReference, conditionType apis.ConditionType)
- func (o *ObjectConditionSet) SetObjectCondition(objc ObjectCondition)
- func (o *ObjectConditionSet) SetObjectConditions(objcs ObjectConditions)
- func (o *ObjectConditionSet) SetSeverity(objref corev1.ObjectReference, severity apis.ConditionSeverity)
- type ObjectConditions
- func (in ObjectConditions) DeepCopy() ObjectConditions
- func (in ObjectConditions) DeepCopyInto(out *ObjectConditions)
- func (o ObjectConditions) GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition
- func (o ObjectConditions) Manage(accessor ObjectConditionAccessor) ObjectConditionManager
- func (o ObjectConditions) RemoveObjectConditionByObjRef(objref corev1.ObjectReference) ObjectConditions
- func (o ObjectConditions) SetObjectCondition(objc ObjectCondition) ObjectConditions
- type ObjectRefOptionsFunc
- type Project
- type ProjectList
- type ProjectSpec
- type PullRequestState
- type Repository
- type RepositoryList
- type RepositoryOptions
- type RepositorySpec
- type Resource
- type ResourceList
- type ResourceSpec
- type ResourceSubType
- type ResourceURI
- type TopLevelConditionObject
- type TriggeredBy
- func (in *TriggeredBy) DeepCopy() *TriggeredBy
- func (in *TriggeredBy) DeepCopyInto(out *TriggeredBy)
- func (by *TriggeredBy) FromAnnotation(annotations map[string]string) (*TriggeredBy, error)
- func (by TriggeredBy) IsZero() bool
- func (by TriggeredBy) SetIntoAnnotation(annotations map[string]string) (map[string]string, error)
- type WebhookRegisterSpec
- type WebhookRegisterStatus
Constants ¶
const ( AuthTypeBasic = AuthType(corev1.SecretTypeBasicAuth) AuthTypeOAuth2 = AuthType("katanomi.dev/oauth2") )
const ( CloudEventPrefix = "dev.katanomi.cloudevents" CloudEventExtGitReference = "reference" CloudEventExtGitBranch = "branch" CloudEventExtGitCommitMessage = "commitmessage" CloudEventExtGitCommitID = "commit" CloudEventExtGitSourceBranch = "sourcebranch" CloudEventExtGitTargetBranch = "targetbranch" CloudEventExtGitTag = "tag" CloudEventExtAction = "action" CloudEventExtSender = "sender" CloudEventExtPullRequestNumber = "number" CloudEventExtCodeRepository = "repository" // Triggered when a pull request's head branch is updated. // For example, when the head branch is updated from the base branch, when new commits are pushed to the head branch, or when the base branch is changed. // Used for matching events in trigger filter CloudEventExtPullRequestActionSynchronize = "synchronize" // pull request title changed or description changed. // Used for matching events in trigger filter CloudEventExtPullRequestActionEdited = "edited" // Triggered when a pull request is closed // Used for matching events in trigger filter CloudEventExtPullRequestActionClosed = "closed" // Triggered when a pull request is merged // Used for matching events in trigger filter CloudEventExtPullRequestActionMerged = "merged" // event type of open pull request CloudEventExtPullRequestActionOpened = "opened" // event type of reopen pull request CloudEventExtPullRequestActionReOpened = "reopened" // action of create branch // Used for matching events in trigger filter CloudEventExtBranchActionCreate = "create" // action of delete branch // Used for matching events in trigger filter CloudEventExtBranchActionDelete = "delete" // action of create tag // Used for matching events in trigger filter CloudEventExtTagActionCreate = "create" // action of delete tag // Used for matching events in trigger filter CloudEventExtTagActionDelete = "delete" )
const ( IntegrationLabel = IntegrationLabelKey ClusterIntegrationLabel = ClusterIntegrationLabelKey ProjectLabel = ProjectLabelKey RepositoryLabel = RepositoryLabelKey )
const ( // SecretLabelKey secret resource name SecretLabelKey = "core.kubernetes.io/secret" //nolint:gosec // NamespaceLabelKey namespace of a resource NamespaceLabelKey = "core.kubernetes.io/namespace" // SecretTypeLabelKey secret type label for an existed secret with different type SecretTypeLabelKey = "core.katanomi.dev/secretType" //nolint:gosec // IntegrationClassLabelKey for integrationclass resource IntegrationClassLabelKey = "core.katanomi.dev/integrationClass" // ClusterIntegrationLabelKey for cluster integration resources ClusterIntegrationLabelKey = "integrations.katanomi.dev/clusterIntegration" // IntegrationLabelKey for integration resources IntegrationLabelKey = "integrations.katanomi.dev/integration" // ProjectLabelKey for integration resources ProjectLabelKey = "integrations.katanomi.dev/project" // RepositoryLabelKey for integration resources RepositoryLabelKey = "integrations.katanomi.dev/repository" // IntegrationAddressAnnotation annotation key to store integration server address IntegrationAddressAnnotation = "integrations.katanomi.dev/integration.address" )
Common labels
const ( // CreatedTimeAnnotationKey creation time for objects CreatedTimeAnnotationKey = "katanomi.dev/creationTime" // CrossClusterAnnotationKey annotates a cross cluster resource/action CrossClusterAnnotationKey = "katanomi.dev/crossCluster" // ReconcileTriggeredAnnotationKey annotation key to trigger reconcile of objects ReconcileTriggeredAnnotationKey = "katanomi.dev/reconcileTriggeredOn" // NamespaceAnnotationKey namespace of objects NamespaceAnnotationKey = "katanomi.dev/namespace" // TriggeredByAnnotationKey annotation to store a TriggeredBy struct json TriggeredByAnnotationKey = "katanomi.dev/triggeredBy" // CreatedByAnnotationKey annotation key to store resource creation username CreatedByAnnotationKey = "katanomi.dev/createdBy" // CreatedByAnnotationKey annotation key to store resource update username UpdatedByAnnotationKey = "katanomi.dev/updatedBy" )
Common Annotations
const ( // Keys used in IntegrationClass.status.attributes AuthAttributeKey = "auth" ReplicationPolicyTypesAttributeKey = "replicationPolicyTypes" ResourceTypesAttributeKey = "resourceTypes" MethodsAttributeKey = "methods" )
Attribute keys for Integrations
const (
ConditionReasonNotSet = "NotSet"
)
Variables ¶
var ( GitBranchGVK = GroupVersion.WithKind("GitBranch") GitBranchListGVK = GroupVersion.WithKind("GitBranchList") )
var ( GitCommitGVK = GroupVersion.WithKind("GitCommit") GitCommitListGVK = GroupVersion.WithKind("GitCommitList") )
var ( GitCommitCommentGVK = GroupVersion.WithKind("GitCommitComment") GitCommitCommentListGVK = GroupVersion.WithKind("GitCommitCommentList") )
var ( GitCommitStatusGVK = GroupVersion.WithKind("GitCommitStatus") GitCommitStatusListGVK = GroupVersion.WithKind("GitCommitStatusList") )
var ( GitPullRequestsGVK = GroupVersion.WithKind("GitPullRequest") GitPullRequestsListGVK = GroupVersion.WithKind("GitPullRequestList") GitPullRequestNotesGVK = GroupVersion.WithKind("GitPullRequestNote") GitPullRequestNoteListGVK = GroupVersion.WithKind("GitPullRequestNoteList") )
var ( GitRepoFileGVK = GroupVersion.WithKind("GitRepositoryFile") GitRepoFileListGVK = GroupVersion.WithKind("GitRepositoryFileList") )
var ( GitRepoGVK = GroupVersion.WithKind("GitRepository") GitRepoListGVK = GroupVersion.WithKind("GitRepositoryList") )
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "meta.katanomi.dev", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var ArtifactGVK = GroupVersion.WithKind("Artifact")
var ArtifactListGVK = GroupVersion.WithKind("ArtifactList")
var DefinitionTriggeredTypeValues = definitionTriggeredTypeValuesType{
Manual: "Manual",
Automated: "Automated",
}
var ProjectGVK = GroupVersion.WithKind("Project")
var ProjectListGVK = GroupVersion.WithKind("ProjectList")
var RepositoryGVK = GroupVersion.WithKind("Repository")
var RepositoryListGVK = GroupVersion.WithKind("RepositoryList")
var ResourceGVK = GroupVersion.WithKind("Resource")
var ResourceListGVK = GroupVersion.WithKind("ResourceList")
Functions ¶
func ArtifactResourceAttributes ¶
func ArtifactResourceAttributes(verb string) authv1.ResourceAttributes
ArtifactResourceAttributes returns a ResourceAttribute object to be used in a filter
func CopyAnnotations ¶
CopyAnnotations from the left side object to the righ side will override any existing values
func CopyLabels ¶
CopyLabels from the left side object to the righ side will override any existing labels
func CopyMapStringString ¶
CopyMapStringString copies content from a map to annother
func GetNamespacedNameFromObject ¶
func GetNamespacedNameFromObject(obj metav1.Object) (named types.NamespacedName)
GetNamespacedNameFromObject returns a types.NamespacedName from an object
func GetNamespacedNameFromRef ¶
func GetNamespacedNameFromRef(ref *corev1.ObjectReference) (named types.NamespacedName)
GetNamespacedNameFromRef returns a types.NamespacedName from an object reference
func GetObjectReferenceFromObject ¶
func GetObjectReferenceFromObject(obj metav1.Object, opts ...ObjectRefOptionsFunc) (ref corev1.ObjectReference)
GetObjectReferenceFromObject extracts an object reference from an object
func GitRepositoryResourceAttributes ¶
func GitRepositoryResourceAttributes(verb string) authv1.ResourceAttributes
GitRepositoryResourceAttributes returns a ResourceAttribute object to be used in a filter
func HasAnnotation ¶
HasAnnotation returns true if the object has the annotation and the values matches
func IsConditionChanged ¶
func IsConditionChanged(current, old apis.ConditionAccessor, conditionType apis.ConditionType) bool
IsConditionChanged given two condition accessors and a condition type will check if conditions changed
func IsTheSameObject ¶
func IsTheSameObject(obj, compared corev1.ObjectReference) bool
IsTheSameObjRef compares two corev1.ObjectReference comparing: APIVersion, Kind, Name and Namespace. All other attributes are ignored
func IsTheSameObjectReference ¶
func IsTheSameObjectReference(obj, compared *corev1.ObjectReference) bool
IsTheSameObjectReference uses pointers to make comparison of objects
func MapContainsKeyValue ¶
MapContainsKeyValue checks if a map[string]string has a key with a specific value
func PropagateCondition ¶
func PropagateCondition(conditionManager apis.ConditionManager, conditionType apis.ConditionType, condition *apis.Condition)
PropagateCondition propagates a condition based on an external conditions used mainly when a resource depends on another and its conditions needs to be synced
func ReasonForError ¶
ReasonForError returns a string for Reason from an error. If the error is a apimachinery.StatusError will return its reason, otherwise will return unknown
func RepositoryResourceAttributes ¶
func RepositoryResourceAttributes(verb string) authv1.ResourceAttributes
RepositoryResourceAttributes returns a ResourceAttribute object to be used in a filter
func SetConditionByError ¶
func SetConditionByError(conditionManager apis.ConditionManager, condition apis.ConditionType, err error)
SetConditionByError sets a condition using an error to determine if it is True or False. If the given error is not nil will examine its reason and mark the condition as False otherwise will set condition to True
Types ¶
type Artifact ¶
type Artifact struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ArtifactSpec `json:"spec"` }
Artifact object for plugins
func (*Artifact) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Artifact.
func (*Artifact) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactList ¶
type ArtifactList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []Artifact `json:"items"` }
ArtifactList list of artifacts
func (*ArtifactList) DeepCopy ¶
func (in *ArtifactList) DeepCopy() *ArtifactList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactList.
func (*ArtifactList) DeepCopyInto ¶
func (in *ArtifactList) DeepCopyInto(out *ArtifactList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactOptions ¶
type ArtifactOptions struct { RepositoryOptions // repository name Repository string `json:"repository"` // artifact name Artifact string `json:"artifact"` }
ArtifactOptions path params
func (*ArtifactOptions) DeepCopy ¶
func (in *ArtifactOptions) DeepCopy() *ArtifactOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactOptions.
func (*ArtifactOptions) DeepCopyInto ¶
func (in *ArtifactOptions) DeepCopyInto(out *ArtifactOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ArtifactSpec ¶
type ArtifactSpec struct { // Address API related access URL // +optional Address *duckv1.Addressable `json:"address,omitempty"` // Access stores the webconsole address if any // +optional Access *duckv1.Addressable `json:"access,omitempty"` // Type of repository content Type string `json:"type"` // Version of specified artifact Version string `json:"version"` // UpdatedTime updated time for repository // +optional UpdatedTime metav1.Time `json:"updatedTime"` // Properties extended properties for Artifact // +optional Properties *runtime.RawExtension `json:"properties,omitempty"` }
ArtifactSpec spec for repository TODO: add more necessary spec data
func (*ArtifactSpec) DeepCopy ¶
func (in *ArtifactSpec) DeepCopy() *ArtifactSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ArtifactSpec.
func (*ArtifactSpec) DeepCopyInto ¶
func (in *ArtifactSpec) DeepCopyInto(out *ArtifactSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudEvent ¶
type CloudEvent struct { ID string `json:"id,omitempty"` Source string `json:"source,omitempty"` Subject string `json:"subject,omitempty"` // Type of event Type string `json:"type,omitempty"` // Data event payload Data string `json:"data,omitempty"` Time metav1.Time `json:"time,omitempty"` SpecVersion string `json:"specversion,omitempty"` DataContentType string `json:"datacontenttype,omitempty"` Extensions map[string]string `json:"extensions,omitempty"` }
func (*CloudEvent) DeepCopy ¶
func (in *CloudEvent) DeepCopy() *CloudEvent
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudEvent.
func (*CloudEvent) DeepCopyInto ¶
func (in *CloudEvent) DeepCopyInto(out *CloudEvent)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudEvent) From ¶
func (evt *CloudEvent) From(event cloudevents.Event) *CloudEvent
type CreateBranchParams ¶
type CreateBranchParams struct { // Branch new branch name Branch string `json:"branch"` // Ref source branch name Ref string `json:"ref"` }
CreateBranchParams params for create branch in server
func (*CreateBranchParams) DeepCopy ¶
func (in *CreateBranchParams) DeepCopy() *CreateBranchParams
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateBranchParams.
func (*CreateBranchParams) DeepCopyInto ¶
func (in *CreateBranchParams) DeepCopyInto(out *CreateBranchParams)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateBranchPayload ¶
type CreateBranchPayload struct { GitRepo CreateBranchParams }
CreateBranchPayload payload for create branch
func (*CreateBranchPayload) DeepCopy ¶
func (in *CreateBranchPayload) DeepCopy() *CreateBranchPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateBranchPayload.
func (*CreateBranchPayload) DeepCopyInto ¶
func (in *CreateBranchPayload) DeepCopyInto(out *CreateBranchPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateCommitCommentParam ¶
type CreateCommitCommentParam struct { Note *string `json:"note,omitempty"` Path *string `json:"path"` Line *int `json:"line"` LineType *string `json:"lineType"` }
CreateCommitCommentParam param for create commit's comment
func (*CreateCommitCommentParam) DeepCopy ¶
func (in *CreateCommitCommentParam) DeepCopy() *CreateCommitCommentParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateCommitCommentParam.
func (*CreateCommitCommentParam) DeepCopyInto ¶
func (in *CreateCommitCommentParam) DeepCopyInto(out *CreateCommitCommentParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateCommitCommentPayload ¶
type CreateCommitCommentPayload struct { GitRepo GitCommitBasicInfo CreateCommitCommentParam }
CreateCommitCommentPayload payload for create commit's Comment
func (*CreateCommitCommentPayload) DeepCopy ¶
func (in *CreateCommitCommentPayload) DeepCopy() *CreateCommitCommentPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateCommitCommentPayload.
func (*CreateCommitCommentPayload) DeepCopyInto ¶
func (in *CreateCommitCommentPayload) DeepCopyInto(out *CreateCommitCommentPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateCommitStatusParam ¶
type CreateCommitStatusParam struct { State string `json:"state"` Ref *string `json:"ref,omitempty"` Name *string `json:"name,omitempty"` Context *string `json:"context,omitempty"` TargetURL *string `json:"targetUrl,omitempty"` Description *string `json:"description,omitempty"` Coverage *float64 `json:"coverage,omitempty"` PipelineID *int `json:"pipelineId,omitempty"` }
CreateCommitStatusParam param for create commit's status
func (*CreateCommitStatusParam) DeepCopy ¶
func (in *CreateCommitStatusParam) DeepCopy() *CreateCommitStatusParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateCommitStatusParam.
func (*CreateCommitStatusParam) DeepCopyInto ¶
func (in *CreateCommitStatusParam) DeepCopyInto(out *CreateCommitStatusParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateCommitStatusPayload ¶
type CreateCommitStatusPayload struct { GitRepo GitCommitBasicInfo CreateCommitStatusParam }
CreateCommitStatusPayload payload for create commit's status
func (*CreateCommitStatusPayload) DeepCopy ¶
func (in *CreateCommitStatusPayload) DeepCopy() *CreateCommitStatusPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateCommitStatusPayload.
func (*CreateCommitStatusPayload) DeepCopyInto ¶
func (in *CreateCommitStatusPayload) DeepCopyInto(out *CreateCommitStatusPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreatePullRequestCommentParam ¶
type CreatePullRequestCommentParam struct {
Body string `json:"body"`
}
CreatePullRequestCommentParam param for create pr's comment
func (*CreatePullRequestCommentParam) DeepCopy ¶
func (in *CreatePullRequestCommentParam) DeepCopy() *CreatePullRequestCommentParam
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreatePullRequestCommentParam.
func (*CreatePullRequestCommentParam) DeepCopyInto ¶
func (in *CreatePullRequestCommentParam) DeepCopyInto(out *CreatePullRequestCommentParam)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreatePullRequestCommentPayload ¶
type CreatePullRequestCommentPayload struct { GitRepo CreatePullRequestCommentParam Index int `json:"index"` }
CreatePullRequestCommentPayload payload for create pr's Comment
func (*CreatePullRequestCommentPayload) DeepCopy ¶
func (in *CreatePullRequestCommentPayload) DeepCopy() *CreatePullRequestCommentPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreatePullRequestCommentPayload.
func (*CreatePullRequestCommentPayload) DeepCopyInto ¶
func (in *CreatePullRequestCommentPayload) DeepCopyInto(out *CreatePullRequestCommentPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreatePullRequestPayload ¶
type CreatePullRequestPayload struct { Source GitBranchBaseInfo `json:"source"` Target GitBranchBaseInfo `json:"target"` Title string `json:"title"` Description string `json:"description,omitempty"` }
CreatePullRequestPayload option for create PullRequest
func (*CreatePullRequestPayload) DeepCopy ¶
func (in *CreatePullRequestPayload) DeepCopy() *CreatePullRequestPayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreatePullRequestPayload.
func (*CreatePullRequestPayload) DeepCopyInto ¶
func (in *CreatePullRequestPayload) DeepCopyInto(out *CreatePullRequestPayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateRepoFileParams ¶
type CreateRepoFileParams struct { // Branch target branch to create file Branch string `json:"branch"` // Message commit message for create the file Message string `json:"message"` // Content must be base64 encoded Content []byte `json:"content"` }
CreateBranchParams params for create file in server
func (*CreateRepoFileParams) DeepCopy ¶
func (in *CreateRepoFileParams) DeepCopy() *CreateRepoFileParams
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateRepoFileParams.
func (*CreateRepoFileParams) DeepCopyInto ¶
func (in *CreateRepoFileParams) DeepCopyInto(out *CreateRepoFileParams)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CreateRepoFilePayload ¶
type CreateRepoFilePayload struct { GitRepo CreateRepoFileParams FilePath string `json:"filepath"` }
CreateRepoFilePayload option for create file and commit + push
func (*CreateRepoFilePayload) DeepCopy ¶
func (in *CreateRepoFilePayload) DeepCopy() *CreateRepoFilePayload
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CreateRepoFilePayload.
func (*CreateRepoFilePayload) DeepCopyInto ¶
func (in *CreateRepoFilePayload) DeepCopyInto(out *CreateRepoFilePayload)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DefinitionTriggeredType ¶
type DefinitionTriggeredType string
func (DefinitionTriggeredType) String ¶
func (triggeredType DefinitionTriggeredType) String() string
type GitBranch ¶
type GitBranch struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitBranchSpec `json:"spec"` }
GitBranch object for plugin
func (*GitBranch) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitBranch.
func (*GitBranch) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitBranchBaseInfo ¶
GitBranchBaseInfo branch base info
func (*GitBranchBaseInfo) DeepCopy ¶
func (in *GitBranchBaseInfo) DeepCopy() *GitBranchBaseInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitBranchBaseInfo.
func (*GitBranchBaseInfo) DeepCopyInto ¶
func (in *GitBranchBaseInfo) DeepCopyInto(out *GitBranchBaseInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitBranchList ¶
type GitBranchList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []GitBranch `json:"items"` }
GitBranchList list of branch
func (*GitBranchList) DeepCopy ¶
func (in *GitBranchList) DeepCopy() *GitBranchList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitBranchList.
func (*GitBranchList) DeepCopyInto ¶
func (in *GitBranchList) DeepCopyInto(out *GitBranchList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitBranchOption ¶
GitBranchOption option for list branch
type GitBranchSpec ¶
type GitBranchSpec struct { GitBranchBaseInfo // Protected the branch is protected Protected *bool `json:"protected,omitempty" yaml:"protected,omitempty"` // Default the branch is default branch (repo only have one default branch like main) Default *bool `json:"default,omitempty" yaml:"default,omitempty"` // DevelopersCanPush developer can push to this branch DevelopersCanPush *bool `json:"developersCanPush,omitempty" yaml:"developersCanPush,omitempty"` // DevelopersCanMerge developer can merge to this branch DevelopersCanMerge *bool `json:"developersCanMerge,omitempty" yaml:"developersCanMerge,omitempty"` // Commit latest commit's sha in this branch Commit GitCommitBasicInfo `json:"commit"` Properties *runtime.RawExtension `json:"properties,omitempty"` }
GitBranchSpec spec of branch
func (*GitBranchSpec) DeepCopy ¶
func (in *GitBranchSpec) DeepCopy() *GitBranchSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitBranchSpec.
func (*GitBranchSpec) DeepCopyInto ¶
func (in *GitBranchSpec) DeepCopyInto(out *GitBranchSpec)
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"` }
GitCommit object for plugin
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.
type GitCommitBasicInfo ¶
type GitCommitBasicInfo struct { // SHA commit's sha SHA *string `json:"sha,omitempty"` }
GitCommitBasicInfo github support field is SHA & web_URL
func (*GitCommitBasicInfo) DeepCopy ¶
func (in *GitCommitBasicInfo) DeepCopy() *GitCommitBasicInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitBasicInfo.
func (*GitCommitBasicInfo) DeepCopyInto ¶
func (in *GitCommitBasicInfo) DeepCopyInto(out *GitCommitBasicInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitComment ¶
type GitCommitComment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitCommitCommentSpec `json:"spec"` }
GitCommitComment object for plugin
func (*GitCommitComment) DeepCopy ¶
func (in *GitCommitComment) DeepCopy() *GitCommitComment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitComment.
func (*GitCommitComment) DeepCopyInto ¶
func (in *GitCommitComment) DeepCopyInto(out *GitCommitComment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitCommentList ¶
type GitCommitCommentList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []GitCommitComment `json:"items"` }
GitCommitCommentList list of commit comment
func (*GitCommitCommentList) DeepCopy ¶
func (in *GitCommitCommentList) DeepCopy() *GitCommitCommentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitCommentList.
func (*GitCommitCommentList) DeepCopyInto ¶
func (in *GitCommitCommentList) DeepCopyInto(out *GitCommitCommentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitCommentSpec ¶
type GitCommitCommentSpec struct { // Note content Note string `json:"note"` // Path file path Path string `json:"path"` // Line comment line number Line int `json:"line"` // LineType LineType *string `json:"lineType"` // Author comment author Author GitUserBaseInfo `json:"author"` Properties *runtime.RawExtension `json:"properties,omitempty"` }
GitCommitCommentSpec spec for commit comment
func (*GitCommitCommentSpec) DeepCopy ¶
func (in *GitCommitCommentSpec) DeepCopy() *GitCommitCommentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitCommentSpec.
func (*GitCommitCommentSpec) DeepCopyInto ¶
func (in *GitCommitCommentSpec) DeepCopyInto(out *GitCommitCommentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitList ¶
type GitCommitList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []GitCommit `json:"items"` }
GitCommitList list of commits
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.
type GitCommitOption ¶
type GitCommitOption struct { GitRepo GitCommitBasicInfo }
GitCommitOption option for get one commit by sha
func (*GitCommitOption) DeepCopy ¶
func (in *GitCommitOption) DeepCopy() *GitCommitOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitOption.
func (*GitCommitOption) DeepCopyInto ¶
func (in *GitCommitOption) DeepCopyInto(out *GitCommitOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitSpec ¶
type GitCommitSpec struct { GitCommitBasicInfo // Coverage code coverage for test Coverage *float64 `json:"coverage,omitempty"` // Author commit author Author *GitUserBaseInfo `json:"author,omitempty"` // Committer commit committer Committer *GitUserBaseInfo `json:"committer,omitempty"` // Message commit message Message *string `json:"message,omitempty"` Properties *runtime.RawExtension `json:"properties,omitempty"` }
GitCommitSpec spec for commit
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 { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitCommitStatusSpec `json:"spec"` }
GitCommitStatus object for plugin
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 GitCommitStatusList ¶
type GitCommitStatusList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []GitCommitStatus `json:"items"` }
GitCommitStatusList list of commit status
func (*GitCommitStatusList) DeepCopy ¶
func (in *GitCommitStatusList) DeepCopy() *GitCommitStatusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitStatusList.
func (*GitCommitStatusList) DeepCopyInto ¶
func (in *GitCommitStatusList) DeepCopyInto(out *GitCommitStatusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitCommitStatusSpec ¶
type GitCommitStatusSpec struct { // ID status id ID int `json:"id"` // SHA commit sha SHA string `json:"sha"` // Ref commit ref Ref string `json:"ref"` // Status Status string `json:"status"` // CreatedAt status create time CreatedAt metav1.Time `json:"createdAt"` // Name status name Name string `json:"name"` // Author status author Author GitUserBaseInfo `json:"author"` // Description status description Description string `json:"description"` // TargetURL TargetURL string `json:"targetUrl"` Properties *runtime.RawExtension `json:"properties,omitempty"` }
func (*GitCommitStatusSpec) DeepCopy ¶
func (in *GitCommitStatusSpec) DeepCopy() *GitCommitStatusSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitCommitStatusSpec.
func (*GitCommitStatusSpec) DeepCopyInto ¶
func (in *GitCommitStatusSpec) DeepCopyInto(out *GitCommitStatusSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitOperateLogBaseInfo ¶
type GitOperateLogBaseInfo struct { User *GitUserBaseInfo `json:"user,omitempty"` Time *metav1.Time `json:"time,omitempty"` }
GitOperateLogBaseInfo a simple log for operate
func (*GitOperateLogBaseInfo) DeepCopy ¶
func (in *GitOperateLogBaseInfo) DeepCopy() *GitOperateLogBaseInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitOperateLogBaseInfo.
func (*GitOperateLogBaseInfo) DeepCopyInto ¶
func (in *GitOperateLogBaseInfo) DeepCopyInto(out *GitOperateLogBaseInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequest ¶
type GitPullRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitPullRequestSpec `json:"spec"` }
GitPullRequest object for plugins
func (*GitPullRequest) DeepCopy ¶
func (in *GitPullRequest) DeepCopy() *GitPullRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequest.
func (*GitPullRequest) DeepCopyInto ¶
func (in *GitPullRequest) DeepCopyInto(out *GitPullRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestList ¶
type GitPullRequestList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []GitPullRequest `json:"items"` }
GitPullRequestList list of pr
func (*GitPullRequestList) DeepCopy ¶
func (in *GitPullRequestList) DeepCopy() *GitPullRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestList.
func (*GitPullRequestList) DeepCopyInto ¶
func (in *GitPullRequestList) DeepCopyInto(out *GitPullRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestListOption ¶
type GitPullRequestListOption struct { GitRepo State *PullRequestState `json:"state,omitempty"` }
type GitPullRequestNote ¶
type GitPullRequestNote struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitPullRequestNoteSpec `json:"spec"` }
GitPullRequestNote note for pr
func (*GitPullRequestNote) DeepCopy ¶
func (in *GitPullRequestNote) DeepCopy() *GitPullRequestNote
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestNote.
func (*GitPullRequestNote) DeepCopyInto ¶
func (in *GitPullRequestNote) DeepCopyInto(out *GitPullRequestNote)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestNoteList ¶
type GitPullRequestNoteList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []GitPullRequestNote `json:"items"` }
GitPullRequestNoteList note list for pr
func (*GitPullRequestNoteList) DeepCopy ¶
func (in *GitPullRequestNoteList) DeepCopy() *GitPullRequestNoteList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestNoteList.
func (*GitPullRequestNoteList) DeepCopyInto ¶
func (in *GitPullRequestNoteList) DeepCopyInto(out *GitPullRequestNoteList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestNoteSpec ¶
type GitPullRequestNoteSpec struct { // ID note id ID int `json:"id"` // Body note content Body string `json:"body"` Properties *runtime.RawExtension `json:"properties,omitempty"` }
GitPullRequestNoteSpec note's spec for pr
func (*GitPullRequestNoteSpec) DeepCopy ¶
func (in *GitPullRequestNoteSpec) DeepCopy() *GitPullRequestNoteSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestNoteSpec.
func (*GitPullRequestNoteSpec) DeepCopyInto ¶
func (in *GitPullRequestNoteSpec) DeepCopyInto(out *GitPullRequestNoteSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestOption ¶
GitPullRequestOption option for one pr by id
func (*GitPullRequestOption) DeepCopy ¶
func (in *GitPullRequestOption) DeepCopy() *GitPullRequestOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestOption.
func (*GitPullRequestOption) DeepCopyInto ¶
func (in *GitPullRequestOption) DeepCopyInto(out *GitPullRequestOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitPullRequestSpec ¶
type GitPullRequestSpec struct { GitRepo // ID num for pr in platform ID int64 `json:"id"` // Number num for pr in repo Number int64 `json:"num"` // Title pr title Title string `json:"title"` // State pr state (different between platforms) State string `json:"state"` // CreatedAt pr create time CreatedAt metav1.Time `json:"createdAt"` // UpdateAt pr latest update time UpdateAt *metav1.Time `json:"updateAt,omitempty"` // ClosedAt pr close time ClosedAt *metav1.Time `json:"closedAt,omitempty"` // Target pr target branch and repo Target GitBranchBaseInfo `json:"target"` // Source pr source branch and repo Source GitBranchBaseInfo `json:"source"` // Author pr author Author GitUserBaseInfo `json:"author,omitempty"` // MergeLog pr merge info(user and time) MergeLog *GitOperateLogBaseInfo `json:"mergeLog,omitempty"` Properties *runtime.RawExtension `json:"properties,omitempty"` // HasConflicts means source and target branch has conflict change HasConflicts bool `json:"hasConflicts,omitempty"` }
GitPullRequestSpec spec for pull request
func (*GitPullRequestSpec) DeepCopy ¶
func (in *GitPullRequestSpec) DeepCopy() *GitPullRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitPullRequestSpec.
func (*GitPullRequestSpec) DeepCopyInto ¶
func (in *GitPullRequestSpec) DeepCopyInto(out *GitPullRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepo ¶
type GitRepo struct { // Project gitlab is empty string, github,gogs,gitea is owner name Project string `json:"project,omitempty" yaml:"project,omitempty"` // Repository is different between platforms. gitlab is number;github,gogs,gitea is repo name Repository string `json:"repository,omitempty" yaml:"repository,omitempty"` }
GitRepo Repo base info
func (*GitRepo) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepo.
func (*GitRepo) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepoFile ¶
type GitRepoFile struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitRepoFileSpec `json:"spec"` }
GitRepoFile object for plugins
func (*GitRepoFile) DeepCopy ¶
func (in *GitRepoFile) DeepCopy() *GitRepoFile
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoFile.
func (*GitRepoFile) DeepCopyInto ¶
func (in *GitRepoFile) DeepCopyInto(out *GitRepoFile)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepoFileOption ¶
type GitRepoFileOption struct { GitRepo // Ref commit/branch/tag name Ref string `json:"ref"` Path string `json:"path"` }
GitRepoFileOption option for get repo's file
func (*GitRepoFileOption) DeepCopy ¶
func (in *GitRepoFileOption) DeepCopy() *GitRepoFileOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoFileOption.
func (*GitRepoFileOption) DeepCopyInto ¶
func (in *GitRepoFileOption) DeepCopyInto(out *GitRepoFileOption)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepoFileSpec ¶
type GitRepoFileSpec struct { GitCommitBasicInfo // FileName file name FileName string `json:"fileName" yaml:"fileName"` // FilePath file path FilePath string `json:"filePath" yaml:"filePath"` // Size file size Size int64 `json:"size"` // Encoding maybe text or base64 when path is a file Encoding *string `json:"encoding"` // Content file content Content []byte `json:"content"` Properties *runtime.RawExtension `json:"properties,omitempty"` }
GitRepoFileSpec spec for repository's file
func (*GitRepoFileSpec) DeepCopy ¶
func (in *GitRepoFileSpec) DeepCopy() *GitRepoFileSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepoFileSpec.
func (*GitRepoFileSpec) DeepCopyInto ¶
func (in *GitRepoFileSpec) DeepCopyInto(out *GitRepoFileSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepository ¶
type GitRepository struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitRepositorySpec `json:"spec"` }
GitRepository repository
func (*GitRepository) DeepCopy ¶
func (in *GitRepository) DeepCopy() *GitRepository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepository.
func (*GitRepository) DeepCopyInto ¶
func (in *GitRepository) DeepCopyInto(out *GitRepository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositoryList ¶
type GitRepositoryList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []GitRepository `json:"items"` }
GitRepositoryList list of repo
func (*GitRepositoryList) DeepCopy ¶
func (in *GitRepositoryList) DeepCopy() *GitRepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositoryList.
func (*GitRepositoryList) DeepCopyInto ¶
func (in *GitRepositoryList) DeepCopyInto(out *GitRepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitRepositorySpec ¶
type GitRepositorySpec struct { // Name repo name Name string `json:"name"` // HtmlURL repo URL HtmlURL string `json:"htmlUrl"` // HttpCloneURL clone with http HttpCloneURL string `json:"httpCloneUrl"` // SshCloneURL clone with ssh SshCloneURL string `json:"sshCloneUrl"` // DefaultBranch main branch name DefaultBranch string `json:"defaultBranch"` // CreatedAt repo create time CreatedAt metav1.Time `json:"createdAt"` // Owner repo owner Owner GitUserBaseInfo `json:"owner"` Properties *runtime.RawExtension `json:"properties,omitempty"` }
GitRepositorySpec spec for repository
func (*GitRepositorySpec) DeepCopy ¶
func (in *GitRepositorySpec) DeepCopy() *GitRepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitRepositorySpec.
func (*GitRepositorySpec) DeepCopyInto ¶
func (in *GitRepositorySpec) DeepCopyInto(out *GitRepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitUserBaseInfo ¶
type GitUserBaseInfo struct { // Name is the login Name Name string `json:"name"` Email string `json:"email"` }
GitUserBaseInfo user base info
func (*GitUserBaseInfo) DeepCopy ¶
func (in *GitUserBaseInfo) DeepCopy() *GitUserBaseInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitUserBaseInfo.
func (*GitUserBaseInfo) DeepCopyInto ¶
func (in *GitUserBaseInfo) DeepCopyInto(out *GitUserBaseInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ListMeta ¶
type ListMeta struct { metav1.ListMeta `json:",inline"` // TotalItems returned in the list TotalItems int `json:"totalItems"` }
ListMeta extension of the metav1.ListMeta with paging related data
func (*ListMeta) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListMeta.
func (*ListMeta) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ListOptions ¶
type ListOptions struct { // ItemsPerPage desired number of items to be returned in each page ItemsPerPage int `json:"itemsPerPage"` // Page desired to be returned Page int `json:"page"` // Custom search options // +optional Search map[string][]string `json:",inline"` }
ListOptions options for list
func (*ListOptions) DeepCopy ¶
func (in *ListOptions) DeepCopy() *ListOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ListOptions.
func (*ListOptions) DeepCopyInto ¶
func (in *ListOptions) DeepCopyInto(out *ListOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ObjectCondition ¶
type ObjectCondition struct { apis.Condition `json:",inline"` corev1.ObjectReference `json:",inline"` // Annotations necessary annotations for ObjectCondition // +optional Annotations map[string]string `json:"annotations,omitempty"` }
ObjectCondition is integration of an ObjectReference and a apis.Condition to give a condition for a specific object
func (*ObjectCondition) DeepCopy ¶
func (in *ObjectCondition) DeepCopy() *ObjectCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectCondition.
func (*ObjectCondition) DeepCopyInto ¶
func (in *ObjectCondition) DeepCopyInto(out *ObjectCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ObjectCondition) FromTopLevelConditionObject ¶
func (o *ObjectCondition) FromTopLevelConditionObject(obj TopLevelConditionObject) *ObjectCondition
func (ObjectCondition) IsTheSame ¶
func (o ObjectCondition) IsTheSame(obj ObjectCondition) bool
IsTheSame compares both object conditions and returns true if its the same object it uses the ObjectReference as comparisons method and ignore all condition related attributes making this useful when managing ObjectConditions
type ObjectConditionAccessor ¶
type ObjectConditionAccessor interface { GetObjectConditions() ObjectConditions SetObjectConditions(ObjectConditions) }
ObjectConditionAccessor sets and gets ObjectConditions +k8s:deepcopy-gen=false
type ObjectConditionChanger ¶
type ObjectConditionChanger interface { SetObjectCondition(objc ObjectCondition) GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition RemoveObjectConditionByObjRef(objref corev1.ObjectReference) }
ObjectConditionChanger sets and removes objects +k8s:deepcopy-gen=false
type ObjectConditionManager ¶
type ObjectConditionManager interface { ObjectConditionAccessor ObjectConditionChanger // MarkTrue sets the status of t to true, and then marks the happy condition to // true if all dependents are true. MarkTrue(t corev1.ObjectReference) // MarkTrueWithReason sets the status of t to true with the reason, and then marks the happy // condition to true if all dependents are true. MarkTrueWithReason(t corev1.ObjectReference, reason, messageFormat string, messageA ...interface{}) // MarkUnknown sets the status of t to Unknown and also sets the happy condition // to Unknown if no other dependent condition is in an error state. MarkUnknown(t corev1.ObjectReference, reason, messageFormat string, messageA ...interface{}) // MarkFalse sets the status of t and the happy condition to False. MarkFalse(t corev1.ObjectReference, reason, messageFormat string, messageA ...interface{}) // SetConditionType sets a condition type for object condition SetConditionType(t corev1.ObjectReference, conditionType apis.ConditionType) // SetSeverity sets a severity for object condition SetSeverity(t corev1.ObjectReference, severity apis.ConditionSeverity) }
ObjectConditionManager manages +k8s:deepcopy-gen=false
func ManageObjectCondition ¶
func ManageObjectCondition(accessor ObjectConditionAccessor) ObjectConditionManager
ManageObjectCondition returns a ObjectConditionManager
type ObjectConditionSet ¶
type ObjectConditionSet struct {
// contains filtered or unexported fields
}
ObjectConditionSet set of object conditions managed in a controller and added to specific object types it helps iterate and update its contents +k8s:deepcopy-gen=false
func (*ObjectConditionSet) GetObjectConditionByObjRef ¶
func (o *ObjectConditionSet) GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition
GetObjectConditionByObjRef returns object condition by object reference, returns nil if not found
func (*ObjectConditionSet) GetObjectConditions ¶
func (o *ObjectConditionSet) GetObjectConditions() ObjectConditions
GetObjectConditions get conditions
func (*ObjectConditionSet) MarkFalse ¶
func (o *ObjectConditionSet) MarkFalse(objref corev1.ObjectReference, reason, messageFormat string, messageA ...interface{})
MarkFalse sets the status of t and the happy condition to False.
func (*ObjectConditionSet) MarkTrue ¶
func (o *ObjectConditionSet) MarkTrue(objref corev1.ObjectReference)
MarkTrue sets the status of t to true, and then marks the happy condition to true if all dependents are true.
func (*ObjectConditionSet) MarkTrueWithReason ¶
func (o *ObjectConditionSet) MarkTrueWithReason(objref corev1.ObjectReference, reason, messageFormat string, messageA ...interface{})
MarkTrueWithReason sets the status of t to true with the reason
func (*ObjectConditionSet) MarkUnknown ¶
func (o *ObjectConditionSet) MarkUnknown(objref corev1.ObjectReference, reason, messageFormat string, messageA ...interface{})
MarkUnknown sets the status of t to Unknown and also sets the happy condition to Unknown if no other dependent condition is in an error state.
func (*ObjectConditionSet) RemoveObjectConditionByObjRef ¶
func (o *ObjectConditionSet) RemoveObjectConditionByObjRef(objref corev1.ObjectReference)
RemoveObjectConditionByObjRef removes item by corev1.ObjectReference
func (*ObjectConditionSet) SetConditionType ¶
func (o *ObjectConditionSet) SetConditionType(objref corev1.ObjectReference, conditionType apis.ConditionType)
SetConditionType sets a condition type for object condition
func (*ObjectConditionSet) SetObjectCondition ¶
func (o *ObjectConditionSet) SetObjectCondition(objc ObjectCondition)
SetObjectCondition sets object into condition slice in a upsert method
func (*ObjectConditionSet) SetObjectConditions ¶
func (o *ObjectConditionSet) SetObjectConditions(objcs ObjectConditions)
GetObjectConditions set conditions
func (*ObjectConditionSet) SetSeverity ¶
func (o *ObjectConditionSet) SetSeverity(objref corev1.ObjectReference, severity apis.ConditionSeverity)
SetSeverity sets a severity for object condition
type ObjectConditions ¶
type ObjectConditions []ObjectCondition
ObjectConditions collection of object conditions useful to store and iterate over different object conditions in the status of an object
func (ObjectConditions) DeepCopy ¶
func (in ObjectConditions) DeepCopy() ObjectConditions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ObjectConditions.
func (ObjectConditions) DeepCopyInto ¶
func (in ObjectConditions) DeepCopyInto(out *ObjectConditions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ObjectConditions) GetObjectConditionByObjRef ¶
func (o ObjectConditions) GetObjectConditionByObjRef(objref corev1.ObjectReference) *ObjectCondition
GetObjectConditionByObjRef get object condition by object reference, returns nil if not found
func (ObjectConditions) Manage ¶
func (o ObjectConditions) Manage(accessor ObjectConditionAccessor) ObjectConditionManager
Manage returns a ObjectConditionSet to manage its contents
func (ObjectConditions) RemoveObjectConditionByObjRef ¶
func (o ObjectConditions) RemoveObjectConditionByObjRef(objref corev1.ObjectReference) ObjectConditions
RemoveObjectConditionByObjRef removes a conditions based on a object reference and returns a new slice
func (ObjectConditions) SetObjectCondition ¶
func (o ObjectConditions) SetObjectCondition(objc ObjectCondition) ObjectConditions
SetObjectCondition updates a condition using the object reference, and if not found will append to the end and return a new slice
type ObjectRefOptionsFunc ¶
type ObjectRefOptionsFunc func(obj metav1.Object, ref *corev1.ObjectReference)
+k8s:deepcopy-gen=false
func ObjectRefWithNamespace ¶
func ObjectRefWithNamespace() ObjectRefOptionsFunc
func ObjectRefWithTypeMeta ¶
func ObjectRefWithTypeMeta() ObjectRefOptionsFunc
func ObjectRefWithUID ¶
func ObjectRefWithUID() ObjectRefOptionsFunc
type Project ¶
type Project struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ProjectSpec `json:"spec"` }
Project object for plugins
func (*Project) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Project.
func (*Project) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectList ¶
type ProjectList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []Project `json:"items"` }
ProjectList list of projects
func (*ProjectList) DeepCopy ¶
func (in *ProjectList) DeepCopy() *ProjectList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectList.
func (*ProjectList) DeepCopyInto ¶
func (in *ProjectList) DeepCopyInto(out *ProjectList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProjectSpec ¶
type ProjectSpec struct { // Public defines if a project is public or not Public bool `json:"public"` // Address API related access URL // +optional Address *duckv1.Addressable `json:"address,omitempty"` // Access stores the webconsole address if any // +optional Access *duckv1.Addressable `json:"access,omitempty"` // project subtype // +optional SubType string `json:"subType"` // NamespaceRefs for which this project is already bound to // +optional NamespaceRefs []corev1.ObjectReference `json:"namespaceRefs,omitempty"` // Properties extended properties for Project Properties *runtime.RawExtension `json:"properties,omitempty"` }
ProjectSpec spec for project TODO: add more necessary spec data
func (*ProjectSpec) DeepCopy ¶
func (in *ProjectSpec) DeepCopy() *ProjectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProjectSpec.
func (*ProjectSpec) DeepCopyInto ¶
func (in *ProjectSpec) DeepCopyInto(out *ProjectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PullRequestState ¶
type PullRequestState string
const ( PullRequestOpenedState PullRequestState = "opened" PullRequestClosedState PullRequestState = "closed" PullRequestMergedState PullRequestState = "merged" PullRequestAllState PullRequestState = "all" )
func String2PullRequestState ¶
func String2PullRequestState(state string) *PullRequestState
type Repository ¶
type Repository struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RepositorySpec `json:"spec"` }
Repository object for plugins
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.
type RepositoryList ¶
type RepositoryList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []Repository `json:"items"` }
RepositoryList list of repositories
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.
type RepositoryOptions ¶
type RepositoryOptions struct { // project name Project string `json:"project"` }
RepositoryOptions list repositroy path params
func (*RepositoryOptions) DeepCopy ¶
func (in *RepositoryOptions) DeepCopy() *RepositoryOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryOptions.
func (*RepositoryOptions) DeepCopyInto ¶
func (in *RepositoryOptions) DeepCopyInto(out *RepositoryOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositorySpec ¶
type RepositorySpec struct { // Address API related access URL // +optional Address *duckv1.Addressable `json:"address,omitempty"` // Access stores the webconsole address if any // +optional Access *duckv1.Addressable `json:"access,omitempty"` // Type of repository content Type string `json:"type"` // UpdatedTime updated time for repository // +optional UpdatedTime metav1.Time `json:"updatedTime"` // Properties extended properties for Repository // +optional Properties *runtime.RawExtension `json:"properties,omitempty"` }
RepositorySpec spec for repository TODO: add more necessary spec data
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 Resource ¶
type Resource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResourceSpec `json:"spec"` }
Resource object for plugins
func (*Resource) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resource.
func (*Resource) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceList ¶
type ResourceList struct { metav1.TypeMeta `json:",inline"` ListMeta `json:"metadata,omitempty"` Items []Resource `json:"items"` }
ResourceList list of resources
func (*ResourceList) DeepCopy ¶
func (in *ResourceList) DeepCopy() *ResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceList.
func (*ResourceList) DeepCopyInto ¶
func (in *ResourceList) DeepCopyInto(out *ResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceSpec ¶
type ResourceSpec struct { // Address API related access URL // +optional Address *duckv1.Addressable `json:"address,omitempty"` // Access stores the webconsole address if any // +optional Access *duckv1.Addressable `json:"access,omitempty"` // Type of resource Type string `json:"type"` // SubType of resource SubType string `json:"subType"` // Version of specified resource // +optional Version string `json:"version,omitempty"` // Properties extended properties for Resource // +optional Properties *runtime.RawExtension `json:"properties,omitempty"` }
ResourceSpec spec for a generic resource response
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 ResourceSubType ¶
type ResourceSubType string
const ( // OCI artifact registry project ResourceSubTypeImageRegistry ResourceSubType = "ImageRegistry" // Code repository project ResourceSubTypeCodeRepository ResourceSubType = "CodeRepository" )
type ResourceURI ¶
type ResourceURI struct { // Unique resource identification for webhook resource, i.e // a code repository uri: https://github.com/katanomi/core URI *apis.URL `json:"uri"` // SecretRef stores a reference to a secret object // that contain authentication data for the described resource SecretRef *corev1.ObjectReference `json:"secretRef"` }
ResourceURI stores a resource URI together with secret references for usage
func (*ResourceURI) DeepCopy ¶
func (in *ResourceURI) DeepCopy() *ResourceURI
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceURI.
func (*ResourceURI) DeepCopyInto ¶
func (in *ResourceURI) DeepCopyInto(out *ResourceURI)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TopLevelConditionObject ¶
type TopLevelConditionObject interface { metav1.Object // GetTopLevelCondition finds and returns the top level Condition (happy Condition). GetTopLevelCondition() *apis.Condition }
TopLevelConditionObject shoule be an metav1.Object that implement func GetTopLevelCondition() *apis.Condition +k8s:deepcopy-gen=false
type TriggeredBy ¶
type TriggeredBy struct { // Reference to the user that triggered the object. Any Kubernetes `Subject` is accepted. // +optional User *rbacv1.Subject `json:"user,omitempty"` // Cloud Event data for the event that triggered. // +optional CloudEvent *CloudEvent `json:"cloudEvent,omitempty"` // Reference to another object that might have triggered this object // +optional Ref *corev1.ObjectReference `json:"ref,omitempty"` // Date time of creation of triggered event. Will match a resource's metadata.creationTimestamp // it is added here for convinience only // +optional TriggeredTimestamp *metav1.Time `json:"triggeredTimestamp,omitempty"` // Indicates trigger type, such as Manual Automated. // +optional TriggeredType DefinitionTriggeredType `json:"triggeredType,omitempty"` }
Stores a list of triggered information such as: Entity that triggered, reference of an object that could have triggered, and event that triggered.
func (*TriggeredBy) DeepCopy ¶
func (in *TriggeredBy) DeepCopy() *TriggeredBy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggeredBy.
func (*TriggeredBy) DeepCopyInto ¶
func (in *TriggeredBy) DeepCopyInto(out *TriggeredBy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TriggeredBy) FromAnnotation ¶
func (by *TriggeredBy) FromAnnotation(annotations map[string]string) (*TriggeredBy, error)
FromAnnotation will set `by` from annotations it will find TriggeredByAnnotationKey and unmarshl content into struct type *TriggeredBy if not found TriggeredByAnnotationKey, error would be nil, and *TriggeredBy would be nil also. if some errors happened, error will not be nil and *TriggerreBy will be nil
func (TriggeredBy) IsZero ¶
func (by TriggeredBy) IsZero() bool
IsZero basic function returns true when all attributes of the object are empty
func (TriggeredBy) SetIntoAnnotation ¶
SetIntoAnnotation will set TriggeredBy into annotations return annotations that with triggeredby.
type WebhookRegisterSpec ¶
type WebhookRegisterSpec struct { // URI stores the Uniform Resource Identifier for webhook resource URI apis.URL `json:"uri"` // Events holds a list of event types desired for registration Events []string `json:"events"` // WebhookID is only used in update and can be blank for creation // +optional WebhookID string `json:"webhookID"` // Address stores the target address for the webhook Address apis.URL `json:"addressURL"` // RequestSecret will hold information for a request header that should be used // by the registring webhook // this data will be used during request to validate webhook requests // +optional RequestSecret string `json:"requestSecret"` }
WebhookRegisterSpec specifications to register a webhook
func (*WebhookRegisterSpec) DeepCopy ¶
func (in *WebhookRegisterSpec) DeepCopy() *WebhookRegisterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookRegisterSpec.
func (*WebhookRegisterSpec) DeepCopyInto ¶
func (in *WebhookRegisterSpec) DeepCopyInto(out *WebhookRegisterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookRegisterStatus ¶
type WebhookRegisterStatus struct { // WebhookID will return the registered webhook id during create WebhookID string `json:"webhookID"` // Address stores the target address for the webhook Address apis.URL `json:"addressURL"` // StatusCode for the API request // +optional StatusCode int `json:"statusCode"` // Body response body returned from the request // +optional Body []byte `json:"body"` }
WebhookRegisterStatus stores a registration request result
func (*WebhookRegisterStatus) DeepCopy ¶
func (in *WebhookRegisterStatus) DeepCopy() *WebhookRegisterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookRegisterStatus.
func (*WebhookRegisterStatus) DeepCopyInto ¶
func (in *WebhookRegisterStatus) DeepCopyInto(out *WebhookRegisterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
- artifact_types.go
- auth_types.go
- cloudevent.go
- condition.go
- createmeta_types.go
- gitbase_types.go
- gitbranch_types.go
- gitcommit_types.go
- gitcommitcomment_types.go
- gitcommitstatus_types.go
- gitoption_types.go
- gitpullrequest_types.go
- gitrepofile_types.go
- gitrepositories_types.go
- groupversion_info.go
- labels.go
- labels_annotations.go
- labels_annotations_funcs.go
- listmeta_types.go
- object.go
- objectcondition_set.go
- objectcondition_types.go
- objectreference.go
- project_types.go
- repository_types.go
- resource_object_types.go
- resource_types.go
- triggeredby_types.go
- webhook_types.go
- zz_generated.deepcopy.go