v1alpha1

package
v0.0.0-...-bec6c07 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=bindings.projectriff.io

Index

Constants

View Source
const (
	ImageBindingConditionReady            = apis.ConditionReady
	ImageBindingConditionBindingAvailable = "BindingAvailable"
	ImageBindingAnnotationKeyPrefix       = "imagebindings." + GroupName + "/"
)
View Source
const (
	GroupName = "bindings.projectriff.io"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
)

Functions

func GetLatestImage

func GetLatestImage(ctx context.Context) string

GetLatestImage accesses the resolved image that have been associated with this context.

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

func WithLatestImage

func WithLatestImage(ctx context.Context, img string) context.Context

WithLatestImage notes the resolved image on the context for binding

Types

type ImageBinding

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

	Spec   ImageBindingSpec   `json:"spec,omitempty"`
	Status ImageBindingStatus `json:"status,omitempty"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ImageBinding) DeepCopy

func (in *ImageBinding) DeepCopy() *ImageBinding

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

func (*ImageBinding) DeepCopyInto

func (in *ImageBinding) DeepCopyInto(out *ImageBinding)

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

func (*ImageBinding) DeepCopyObject

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

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

func (*ImageBinding) Do

func (b *ImageBinding) Do(ctx context.Context, ps *duckv1.WithPod)

func (*ImageBinding) GetBindingStatus

func (b *ImageBinding) GetBindingStatus() duck.BindableStatus

func (*ImageBinding) GetConditionSet

func (b *ImageBinding) GetConditionSet() apis.ConditionSet

func (*ImageBinding) GetGroupVersionKind

func (b *ImageBinding) GetGroupVersionKind() schema.GroupVersionKind

func (*ImageBinding) GetStatus

func (b *ImageBinding) GetStatus() *duckv1.Status

func (*ImageBinding) GetSubject

func (b *ImageBinding) GetSubject() tracker.Reference

func (*ImageBinding) SetDefaults

func (b *ImageBinding) SetDefaults(context.Context)

func (*ImageBinding) Undo

func (b *ImageBinding) Undo(ctx context.Context, ps *duckv1.WithPod)

func (*ImageBinding) Validate

func (b *ImageBinding) Validate(context.Context) (errs *apis.FieldError)

type ImageBindingList

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

func (*ImageBindingList) DeepCopy

func (in *ImageBindingList) DeepCopy() *ImageBindingList

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

func (*ImageBindingList) DeepCopyInto

func (in *ImageBindingList) DeepCopyInto(out *ImageBindingList)

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

func (*ImageBindingList) DeepCopyObject

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

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

type ImageBindingSpec

type ImageBindingSpec struct {
	Subject       *tracker.Reference `json:"subject,omitempty"`
	Provider      *tracker.Reference `json:"provider,omitempty"`
	ContainerName string             `json:"containerName,omitempty"`
}

func (*ImageBindingSpec) DeepCopy

func (in *ImageBindingSpec) DeepCopy() *ImageBindingSpec

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

func (*ImageBindingSpec) DeepCopyInto

func (in *ImageBindingSpec) DeepCopyInto(out *ImageBindingSpec)

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

type ImageBindingStatus

type ImageBindingStatus struct {
	duckv1.Status `json:",inline"`
}

func (*ImageBindingStatus) DeepCopy

func (in *ImageBindingStatus) DeepCopy() *ImageBindingStatus

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

func (*ImageBindingStatus) DeepCopyInto

func (in *ImageBindingStatus) DeepCopyInto(out *ImageBindingStatus)

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

func (*ImageBindingStatus) InitializeConditions

func (bs *ImageBindingStatus) InitializeConditions()

func (*ImageBindingStatus) MarkBindingAvailable

func (bs *ImageBindingStatus) MarkBindingAvailable()

func (*ImageBindingStatus) MarkBindingUnavailable

func (bs *ImageBindingStatus) MarkBindingUnavailable(reason string, message string)

func (*ImageBindingStatus) SetObservedGeneration

func (bs *ImageBindingStatus) SetObservedGeneration(gen int64)

Jump to

Keyboard shortcuts

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