Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the sources v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:defaulter-gen=TypeMeta +groupName=bindings.knative.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type GitLabBinding
- func (in *GitLabBinding) DeepCopy() *GitLabBinding
- func (in *GitLabBinding) DeepCopyInto(out *GitLabBinding)
- func (in *GitLabBinding) DeepCopyObject() runtime.Object
- func (sb *GitLabBinding) Do(ctx context.Context, ps *duckv1.WithPod)
- func (sb *GitLabBinding) GetBindingStatus() duck.BindableStatus
- func (s *GitLabBinding) GetGroupVersionKind() schema.GroupVersionKind
- func (sb *GitLabBinding) GetSubject() tracker.Reference
- func (s *GitLabBinding) GetUntypedSpec() interface{}
- func (fb *GitLabBinding) SetDefaults(ctx context.Context)
- func (sb *GitLabBinding) Undo(ctx context.Context, ps *duckv1.WithPod)
- func (fb *GitLabBinding) Validate(ctx context.Context) *apis.FieldError
- type GitLabBindingList
- type GitLabBindingSpec
- type GitLabBindingStatus
- func (in *GitLabBindingStatus) DeepCopy() *GitLabBindingStatus
- func (in *GitLabBindingStatus) DeepCopyInto(out *GitLabBindingStatus)
- func (sbs *GitLabBindingStatus) InitializeConditions()
- func (sbs *GitLabBindingStatus) MarkBindingAvailable()
- func (sbs *GitLabBindingStatus) MarkBindingUnavailable(reason, message string)
- func (sbs *GitLabBindingStatus) SetObservedGeneration(gen int64)
- type SecretValueFromSource
Constants ¶
const ( // GitLabBindingConditionReady is configured to indicate whether the Binding // has been configured for resources subject to its runtime contract. GitLabBindingConditionReady = apis.ConditionReady )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: bindings.GroupName, Version: "v1alpha1"}
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 GitLabBinding ¶
type GitLabBinding struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GitLabBindingSpec `json:"spec"` Status GitLabBindingStatus `json:"status"` }
GitLabBinding describes a Binding that is also a Source. The `sink` (from the Source duck) is resolved to a URL and then projected into the `subject` by augmenting the runtime contract of the referenced containers to have a `K_SINK` environment variable holding the endpoint to which to send cloud events.
func (*GitLabBinding) DeepCopy ¶
func (in *GitLabBinding) DeepCopy() *GitLabBinding
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLabBinding.
func (*GitLabBinding) DeepCopyInto ¶
func (in *GitLabBinding) DeepCopyInto(out *GitLabBinding)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitLabBinding) DeepCopyObject ¶
func (in *GitLabBinding) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*GitLabBinding) Do ¶
func (sb *GitLabBinding) Do(ctx context.Context, ps *duckv1.WithPod)
Do implements psbinding.Bindable
func (*GitLabBinding) GetBindingStatus ¶
func (sb *GitLabBinding) GetBindingStatus() duck.BindableStatus
GetBindingStatus implements psbinding.Bindable
func (*GitLabBinding) GetGroupVersionKind ¶
func (s *GitLabBinding) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind returns the GroupVersionKind.
func (*GitLabBinding) GetSubject ¶
func (sb *GitLabBinding) GetSubject() tracker.Reference
GetSubject implements psbinding.Bindable
func (*GitLabBinding) GetUntypedSpec ¶
func (s *GitLabBinding) GetUntypedSpec() interface{}
GetUntypedSpec implements apis.HasSpec
func (*GitLabBinding) SetDefaults ¶
func (fb *GitLabBinding) SetDefaults(ctx context.Context)
SetDefaults implements apis.Defaultable
func (*GitLabBinding) Validate ¶
func (fb *GitLabBinding) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type GitLabBindingList ¶
type GitLabBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []GitLabBinding `json:"items"` }
GitLabBindingList contains a list of GitLabBinding
func (*GitLabBindingList) DeepCopy ¶
func (in *GitLabBindingList) DeepCopy() *GitLabBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLabBindingList.
func (*GitLabBindingList) DeepCopyInto ¶
func (in *GitLabBindingList) DeepCopyInto(out *GitLabBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitLabBindingList) DeepCopyObject ¶
func (in *GitLabBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GitLabBindingSpec ¶
type GitLabBindingSpec struct { duckv1alpha1.BindingSpec `json:",inline"` // AccessToken is the Kubernetes secret containing the GitLab // access token AccessToken SecretValueFromSource `json:"accessToken"` }
GitLabBindingSpec holds the desired state of the GitLabBinding (from the client).
func (*GitLabBindingSpec) DeepCopy ¶
func (in *GitLabBindingSpec) DeepCopy() *GitLabBindingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLabBindingSpec.
func (*GitLabBindingSpec) DeepCopyInto ¶
func (in *GitLabBindingSpec) DeepCopyInto(out *GitLabBindingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitLabBindingSpec) Validate ¶
func (fbs *GitLabBindingSpec) Validate(ctx context.Context) *apis.FieldError
Validate implements apis.Validatable
type GitLabBindingStatus ¶
type GitLabBindingStatus struct {
duckv1.SourceStatus `json:",inline"`
}
GitLabBindingStatus communicates the observed state of the GitLabBinding (from the controller).
func (*GitLabBindingStatus) DeepCopy ¶
func (in *GitLabBindingStatus) DeepCopy() *GitLabBindingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitLabBindingStatus.
func (*GitLabBindingStatus) DeepCopyInto ¶
func (in *GitLabBindingStatus) DeepCopyInto(out *GitLabBindingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GitLabBindingStatus) InitializeConditions ¶
func (sbs *GitLabBindingStatus) InitializeConditions()
InitializeConditions populates the GitLabBindingStatus's conditions field with all of its conditions configured to Unknown.
func (*GitLabBindingStatus) MarkBindingAvailable ¶
func (sbs *GitLabBindingStatus) MarkBindingAvailable()
MarkBindingAvailable marks the GitLabBinding's Ready condition to True.
func (*GitLabBindingStatus) MarkBindingUnavailable ¶
func (sbs *GitLabBindingStatus) MarkBindingUnavailable(reason, message string)
MarkBindingUnavailable marks the GitLabBinding's Ready condition to False with the provided reason and message.
func (*GitLabBindingStatus) SetObservedGeneration ¶
func (sbs *GitLabBindingStatus) SetObservedGeneration(gen int64)
SetObservedGeneration implements psbinding.BindableStatus
type SecretValueFromSource ¶
type SecretValueFromSource struct { // The Secret key to select from. SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty"` }
SecretValueFromSource represents the source of a secret value
func (*SecretValueFromSource) DeepCopy ¶
func (in *SecretValueFromSource) DeepCopy() *SecretValueFromSource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretValueFromSource.
func (*SecretValueFromSource) DeepCopyInto ¶
func (in *SecretValueFromSource) DeepCopyInto(out *SecretValueFromSource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.