v1alpha1

package
v0.39.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 2

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

View Source
const (
	// GitLabBindingConditionReady is configured to indicate whether the Binding
	// has been configured for resources subject to its runtime contract.
	GitLabBindingConditionReady = apis.ConditionReady
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: bindings.GroupName, 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 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) Undo

func (sb *GitLabBinding) Undo(ctx context.Context, ps *duckv1.WithPod)

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL