Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +k8s:openapi-gen=true +groupName=captainhook.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder for building the schema :). SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme helper AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: captainhookio.GroupName, Version: captainhookio.Version}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type Hook ¶
type Hook struct { metav1.TypeMeta `json:",inline"` // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"` Spec HookSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"` Status HookStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` }
Hook represents a webhook.
func (*Hook) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Hook.
func (*Hook) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Hook) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HookList ¶
type HookList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Hook `json:"items"` }
HookList is a list of TypeMeta resources.
func (*HookList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HookList.
func (*HookList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HookList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HookPhase ¶
type HookPhase string
HookStatusType is the status of a hook; usually success or failed at completion.
const ( // HookPhaseNone an hook step has not started yet. HookPhaseNone HookPhase = "" // HookPhasePending the hook currently being relayed. HookPhasePending HookPhase = "Pending" // HookPhaseStatus the hook has been relayed. HookPhaseSending HookPhase = "Sending" // HookPhaseStatus the hook has been relayed. HookPhaseSuccess HookPhase = "Success" // HookPhaseStatus the hook has failed to be relayed. HookPhaseFailed HookPhase = "Failed" )
type HookSpec ¶
type HookSpec struct { ForwardURL string `json:"forwardURL" protobuf:"bytes,1,opt,name=forwardURL"` Body string `json:"body" protobuf:"bytes,2,opt,name=body"` Headers map[string][]string `json:"headers,omitempty" protobuf:"bytes,3,opt,name=headers"` }
HookSpec is the specification of a Hook.
func (*HookSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HookSpec.
func (*HookSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HookStatus ¶
type HookStatus struct { Phase HookPhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=PodPhase"` Attempts int `json:"attempts,omitempty" protobuf:"bytes,2,opt,name=attempts"` Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"` NoRetryBefore *metav1.Time `json:"noRetryBefore,omitempty" protobuf:"bytes,4,opt,name=noRetryBefore"` CompletedTimestamp *metav1.Time `json:"completedTimestamp,omitempty" protobuf:"bytes,5,opt,name=completedTimestamp"` }
HookStatus is the status for a Hook resource.
func (*HookStatus) DeepCopy ¶
func (in *HookStatus) DeepCopy() *HookStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HookStatus.
func (*HookStatus) DeepCopyInto ¶
func (in *HookStatus) DeepCopyInto(out *HookStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.