Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=caching.internal.knative.dev
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Image
- func (in *Image) DeepCopy() *Image
- func (in *Image) DeepCopyInto(out *Image)
- func (in *Image) DeepCopyObject() runtime.Object
- func (i *Image) GetConditionSet() apis.ConditionSet
- func (i *Image) GetGroupVersionKind() schema.GroupVersionKind
- func (i *Image) GetStatus() *duckv1.Status
- func (i *Image) IsReady() bool
- func (r *Image) SetDefaults(ctx context.Context)
- func (rt *Image) Validate(ctx context.Context) *apis.FieldError
- type ImageList
- type ImageSpec
- type ImageStatus
Constants ¶
const ( // ImageConditionReady is set when the revision is starting to materialize // runtime resources, and becomes true when those resources are ready. ImageConditionReady = apis.ConditionReady )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: caching.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 Image ¶
type Image struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // Spec holds the desired state of the Image (from the client). // +optional Spec ImageSpec `json:"spec,omitempty"` // Status communicates the observed state of the Image (from the controller). // +optional Status ImageStatus `json:"status,omitempty"` }
Image is a Knative abstraction that encapsulates the interface by which Knative components express a desire to have a particular image cached.
func (*Image) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Image.
func (*Image) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Image) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Image) GetConditionSet ¶
func (i *Image) GetConditionSet() apis.ConditionSet
GetConditionSet retrieves the condition set for this resource. Implements the KRShaped interface.
func (*Image) GetGroupVersionKind ¶
func (i *Image) GetGroupVersionKind() schema.GroupVersionKind
GetGroupVersionKind implements kmeta.OwnerRefable
func (*Image) GetStatus ¶
GetStatus retrieves the status of the Image. Implements the KRShaped interface.
func (*Image) IsReady ¶
IsReady looks at the conditions and if the Status has a condition ImageConditionReady returns true if ConditionStatus is True
func (*Image) SetDefaults ¶
type ImageList ¶
type ImageList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Image `json:"items"` }
ImageList is a list of Image resources
func (*ImageList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageList.
func (*ImageList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ImageSpec ¶
type ImageSpec struct { // Image is the name of the container image url to cache across the cluster. Image string `json:"image"` // ServiceAccountName is the name of the Kubernetes ServiceAccount as which the Pods // will run this container. This is potentially used to authenticate the image pull // if the service account has attached pull secrets. For more information: // https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/#add-imagepullsecrets-to-a-service-account // +optional ServiceAccountName string `json:"serviceAccountName,omitempty"` // ImagePullSecrets contains the names of the Kubernetes Secrets containing login // information used by the Pods which will run this container. // +optional ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets,omitempty"` }
ImageSpec holds the desired state of the Image (from the client).
func (*ImageSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageSpec.
func (*ImageSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageStatus ¶
ImageStatus communicates the observed state of the Image (from the controller).
func (*ImageStatus) DeepCopy ¶
func (in *ImageStatus) DeepCopy() *ImageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageStatus.
func (*ImageStatus) DeepCopyInto ¶
func (in *ImageStatus) DeepCopyInto(out *ImageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ImageStatus) InitializeConditions ¶
func (is *ImageStatus) InitializeConditions()
InitializeConditions sets the initial values to the conditions.
func (*ImageStatus) MarkReadyFalse ¶
func (is *ImageStatus) MarkReadyFalse(reason, message string)
MarkImageFailed marks the "ImageConditionReady" condition to false.
func (*ImageStatus) MarkReadyTrue ¶
func (is *ImageStatus) MarkReadyTrue()
MarkImageReady marks the "ImageConditionReady" condition to unknown.
func (*ImageStatus) MarkReadyUnknown ¶
func (is *ImageStatus) MarkReadyUnknown()
MarkImageNotReady marks the "ImageConditionReady" condition to unknown.