v1alpha1

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 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 (
	// GitHubBindingConditionReady is configured to indicate whether the Binding
	// has been configured for resources subject to its runtime contract.
	GitHubBindingConditionReady = 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 GitHubBinding

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

	Spec   GitHubBindingSpec   `json:"spec"`
	Status GitHubBindingStatus `json:"status"`
}

GitHubBinding 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 (*GitHubBinding) DeepCopy

func (in *GitHubBinding) DeepCopy() *GitHubBinding

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

func (*GitHubBinding) DeepCopyInto

func (in *GitHubBinding) DeepCopyInto(out *GitHubBinding)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GitHubBinding) DeepCopyObject

func (in *GitHubBinding) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*GitHubBinding) Do

func (sb *GitHubBinding) Do(ctx context.Context, ps *duckv1.WithPod)

Do implements psbinding.Bindable

func (*GitHubBinding) GetBindingStatus

func (sb *GitHubBinding) GetBindingStatus() duck.BindableStatus

GetBindingStatus implements psbinding.Bindable

func (*GitHubBinding) GetGroupVersionKind

func (s *GitHubBinding) GetGroupVersionKind() schema.GroupVersionKind

GetGroupVersionKind returns the GroupVersionKind.

func (*GitHubBinding) GetSubject

func (sb *GitHubBinding) GetSubject() tracker.Reference

GetSubject implements psbinding.Bindable

func (*GitHubBinding) GetUntypedSpec

func (s *GitHubBinding) GetUntypedSpec() interface{}

GetUntypedSpec implements apis.HasSpec

func (*GitHubBinding) SetDefaults

func (fb *GitHubBinding) SetDefaults(ctx context.Context)

SetDefaults implements apis.Defaultable

func (*GitHubBinding) Undo

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

func (*GitHubBinding) Validate

func (fb *GitHubBinding) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type GitHubBindingList

type GitHubBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []GitHubBinding `json:"items"`
}

GitHubBindingList contains a list of GitHubBinding

func (*GitHubBindingList) DeepCopy

func (in *GitHubBindingList) DeepCopy() *GitHubBindingList

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

func (*GitHubBindingList) DeepCopyInto

func (in *GitHubBindingList) DeepCopyInto(out *GitHubBindingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GitHubBindingList) DeepCopyObject

func (in *GitHubBindingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type GitHubBindingSpec

type GitHubBindingSpec struct {
	duckv1alpha1.BindingSpec `json:",inline"`

	// AccessToken is the Kubernetes secret containing the GitHub
	// access token
	AccessToken SecretValueFromSource `json:"accessToken"`
}

GitHubBindingSpec holds the desired state of the GitHubBinding (from the client).

func (*GitHubBindingSpec) DeepCopy

func (in *GitHubBindingSpec) DeepCopy() *GitHubBindingSpec

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

func (*GitHubBindingSpec) DeepCopyInto

func (in *GitHubBindingSpec) DeepCopyInto(out *GitHubBindingSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GitHubBindingSpec) Validate

func (fbs *GitHubBindingSpec) Validate(ctx context.Context) *apis.FieldError

Validate implements apis.Validatable

type GitHubBindingStatus

type GitHubBindingStatus struct {
	duckv1.SourceStatus `json:",inline"`
}

GitHubBindingStatus communicates the observed state of the GitHubBinding (from the controller).

func (*GitHubBindingStatus) DeepCopy

func (in *GitHubBindingStatus) DeepCopy() *GitHubBindingStatus

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

func (*GitHubBindingStatus) DeepCopyInto

func (in *GitHubBindingStatus) DeepCopyInto(out *GitHubBindingStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GitHubBindingStatus) InitializeConditions

func (sbs *GitHubBindingStatus) InitializeConditions()

InitializeConditions populates the GitHubBindingStatus's conditions field with all of its conditions configured to Unknown.

func (*GitHubBindingStatus) MarkBindingAvailable

func (sbs *GitHubBindingStatus) MarkBindingAvailable()

MarkBindingAvailable marks the GitHubBinding's Ready condition to True.

func (*GitHubBindingStatus) MarkBindingUnavailable

func (sbs *GitHubBindingStatus) MarkBindingUnavailable(reason, message string)

MarkBindingUnavailable marks the GitHubBinding's Ready condition to False with the provided reason and message.

func (*GitHubBindingStatus) SetObservedGeneration

func (sbs *GitHubBindingStatus) 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