v1alpha1

package
v0.1.0-build.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ImageBlank = (&ImageDie{}).DieFeed(syncv1alpha1.Image{})
View Source
var ImageSyncBlank = (&ImageSyncDie{}).DieFeed(syncv1alpha1.ImageSync{})
View Source
var ImageSyncSpecBlank = (&ImageSyncSpecDie{}).DieFeed(syncv1alpha1.ImageSyncSpec{})
View Source
var ImageSyncStatusBlank = (&ImageSyncStatusDie{}).DieFeed(syncv1alpha1.ImageSyncStatus{})

Functions

This section is empty.

Types

type ImageDie

type ImageDie struct {
	// contains filtered or unexported fields
}

func (*ImageDie) DeepCopy

func (d *ImageDie) DeepCopy() *ImageDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ImageDie) DieFeed

func (d *ImageDie) DieFeed(r syncv1alpha1.Image) *ImageDie

DieFeed returns a new die with the provided resource.

func (*ImageDie) DieFeedJSON

func (d *ImageDie) DieFeedJSON(j []byte) *ImageDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ImageDie) DieFeedPtr

func (d *ImageDie) DieFeedPtr(r *syncv1alpha1.Image) *ImageDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ImageDie) DieFeedRawExtension

func (d *ImageDie) DieFeedRawExtension(raw runtime.RawExtension) *ImageDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ImageDie) DieFeedYAML

func (d *ImageDie) DieFeedYAML(y []byte) *ImageDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ImageDie) DieFeedYAMLFile

func (d *ImageDie) DieFeedYAMLFile(name string) *ImageDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ImageDie) DieImmutable

func (d *ImageDie) DieImmutable(immutable bool) *ImageDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ImageDie) DieRelease

func (d *ImageDie) DieRelease() syncv1alpha1.Image

DieRelease returns the resource managed by the die.

func (*ImageDie) DieReleaseJSON

func (d *ImageDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ImageDie) DieReleasePtr

func (d *ImageDie) DieReleasePtr() *syncv1alpha1.Image

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ImageDie) DieReleaseRawExtension

func (d *ImageDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ImageDie) DieReleaseYAML

func (d *ImageDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ImageDie) DieStamp

func (d *ImageDie) DieStamp(fn func(r *syncv1alpha1.Image)) *ImageDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ImageDie) DieStampAt

func (d *ImageDie) DieStampAt(jp string, fn interface{}) *ImageDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*ImageDie) DieWith

func (d *ImageDie) DieWith(fns ...func(d *ImageDie)) *ImageDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*ImageDie) Image

func (d *ImageDie) Image(v string) *ImageDie

Image is a reference to an image in a remote repository

func (*ImageDie) Insecure

func (d *ImageDie) Insecure(v bool) *ImageDie

Insecure allows connecting to a non-TLS HTTP container registry.

func (*ImageDie) IsBundleImage

func (d *ImageDie) IsBundleImage(v bool) *ImageDie

IsBundleImage allows synchronizing bundle images.

func (*ImageDie) SecretRef

func (d *ImageDie) SecretRef(v ...corev1.LocalObjectReference) *ImageDie

SecretRef contains the names of the Kubernetes Secrets containing registry login

information to resolve image metadata.

func (*ImageDie) ServiceAccountName

func (d *ImageDie) ServiceAccountName(v string) *ImageDie

ServiceAccountName is the name of the Kubernetes ServiceAccount 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

type ImageSyncDie

type ImageSyncDie struct {
	v1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*ImageSyncDie) APIVersion

func (d *ImageSyncDie) APIVersion(v string) *ImageSyncDie

APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources

func (*ImageSyncDie) DeepCopy

func (d *ImageSyncDie) DeepCopy() *ImageSyncDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ImageSyncDie) DeepCopyObject

func (d *ImageSyncDie) DeepCopyObject() runtime.Object

func (*ImageSyncDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ImageSyncDie) DieFeedJSON

func (d *ImageSyncDie) DieFeedJSON(j []byte) *ImageSyncDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ImageSyncDie) DieFeedPtr

func (d *ImageSyncDie) DieFeedPtr(r *syncv1alpha1.ImageSync) *ImageSyncDie

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ImageSyncDie) DieFeedRawExtension

func (d *ImageSyncDie) DieFeedRawExtension(raw runtime.RawExtension) *ImageSyncDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ImageSyncDie) DieFeedYAML

func (d *ImageSyncDie) DieFeedYAML(y []byte) *ImageSyncDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ImageSyncDie) DieFeedYAMLFile

func (d *ImageSyncDie) DieFeedYAMLFile(name string) *ImageSyncDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ImageSyncDie) DieImmutable

func (d *ImageSyncDie) DieImmutable(immutable bool) *ImageSyncDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ImageSyncDie) DieRelease

func (d *ImageSyncDie) DieRelease() syncv1alpha1.ImageSync

DieRelease returns the resource managed by the die.

func (*ImageSyncDie) DieReleaseJSON

func (d *ImageSyncDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ImageSyncDie) DieReleasePtr

func (d *ImageSyncDie) DieReleasePtr() *syncv1alpha1.ImageSync

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ImageSyncDie) DieReleaseRawExtension

func (d *ImageSyncDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ImageSyncDie) DieReleaseUnstructured

func (d *ImageSyncDie) DieReleaseUnstructured() *unstructured.Unstructured

DieReleaseUnstructured returns the resource managed by the die as an unstructured object. Panics on error.

func (*ImageSyncDie) DieReleaseYAML

func (d *ImageSyncDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ImageSyncDie) DieStamp

func (d *ImageSyncDie) DieStamp(fn func(r *syncv1alpha1.ImageSync)) *ImageSyncDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ImageSyncDie) DieStampAt

func (d *ImageSyncDie) DieStampAt(jp string, fn interface{}) *ImageSyncDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*ImageSyncDie) DieWith

func (d *ImageSyncDie) DieWith(fns ...func(d *ImageSyncDie)) *ImageSyncDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*ImageSyncDie) GetObjectKind

func (d *ImageSyncDie) GetObjectKind() schema.ObjectKind

func (*ImageSyncDie) Kind

func (d *ImageSyncDie) Kind(v string) *ImageSyncDie

Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds

func (*ImageSyncDie) MarshalJSON

func (d *ImageSyncDie) MarshalJSON() ([]byte, error)

func (*ImageSyncDie) MetadataDie

func (d *ImageSyncDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *ImageSyncDie

MetadataDie stamps the resource's ObjectMeta field with a mutable die.

func (*ImageSyncDie) Spec

func (*ImageSyncDie) SpecDie

func (d *ImageSyncDie) SpecDie(fn func(d *ImageSyncSpecDie)) *ImageSyncDie

SpecDie stamps the resource's spec field with a mutable die.

func (*ImageSyncDie) Status

func (*ImageSyncDie) StatusDie

func (d *ImageSyncDie) StatusDie(fn func(d *ImageSyncStatusDie)) *ImageSyncDie

StatusDie stamps the resource's status field with a mutable die.

func (*ImageSyncDie) UnmarshalJSON

func (d *ImageSyncDie) UnmarshalJSON(b []byte) error

type ImageSyncSpecDie

type ImageSyncSpecDie struct {
	// contains filtered or unexported fields
}

func (*ImageSyncSpecDie) DeepCopy

func (d *ImageSyncSpecDie) DeepCopy() *ImageSyncSpecDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ImageSyncSpecDie) DestinationImage

func (d *ImageSyncSpecDie) DestinationImage(v syncv1alpha1.Image) *ImageSyncSpecDie

func (*ImageSyncSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ImageSyncSpecDie) DieFeedJSON

func (d *ImageSyncSpecDie) DieFeedJSON(j []byte) *ImageSyncSpecDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ImageSyncSpecDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ImageSyncSpecDie) DieFeedRawExtension

func (d *ImageSyncSpecDie) DieFeedRawExtension(raw runtime.RawExtension) *ImageSyncSpecDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ImageSyncSpecDie) DieFeedYAML

func (d *ImageSyncSpecDie) DieFeedYAML(y []byte) *ImageSyncSpecDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ImageSyncSpecDie) DieFeedYAMLFile

func (d *ImageSyncSpecDie) DieFeedYAMLFile(name string) *ImageSyncSpecDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ImageSyncSpecDie) DieImmutable

func (d *ImageSyncSpecDie) DieImmutable(immutable bool) *ImageSyncSpecDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ImageSyncSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ImageSyncSpecDie) DieReleaseJSON

func (d *ImageSyncSpecDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ImageSyncSpecDie) DieReleasePtr

func (d *ImageSyncSpecDie) DieReleasePtr() *syncv1alpha1.ImageSyncSpec

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ImageSyncSpecDie) DieReleaseRawExtension

func (d *ImageSyncSpecDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ImageSyncSpecDie) DieReleaseYAML

func (d *ImageSyncSpecDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ImageSyncSpecDie) DieStamp

func (d *ImageSyncSpecDie) DieStamp(fn func(r *syncv1alpha1.ImageSyncSpec)) *ImageSyncSpecDie

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ImageSyncSpecDie) DieStampAt

func (d *ImageSyncSpecDie) DieStampAt(jp string, fn interface{}) *ImageSyncSpecDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*ImageSyncSpecDie) DieWith

func (d *ImageSyncSpecDie) DieWith(fns ...func(d *ImageSyncSpecDie)) *ImageSyncSpecDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*ImageSyncSpecDie) SourceImage

func (*ImageSyncSpecDie) Timeout

The timeout for remote OCI Repository operations like pulling, defaults to 60s.

type ImageSyncStatusDie

type ImageSyncStatusDie struct {
	// contains filtered or unexported fields
}

func (*ImageSyncStatusDie) ConditionsDie

func (d *ImageSyncStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *ImageSyncStatusDie

func (*ImageSyncStatusDie) DeepCopy

func (d *ImageSyncStatusDie) DeepCopy() *ImageSyncStatusDie

DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.

func (*ImageSyncStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ImageSyncStatusDie) DieFeedJSON

func (d *ImageSyncStatusDie) DieFeedJSON(j []byte) *ImageSyncStatusDie

DieFeedJSON returns a new die with the provided JSON. Panics on error.

func (*ImageSyncStatusDie) DieFeedPtr

DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.

func (*ImageSyncStatusDie) DieFeedRawExtension

func (d *ImageSyncStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ImageSyncStatusDie

DieFeedRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ImageSyncStatusDie) DieFeedYAML

func (d *ImageSyncStatusDie) DieFeedYAML(y []byte) *ImageSyncStatusDie

DieFeedYAML returns a new die with the provided YAML. Panics on error.

func (*ImageSyncStatusDie) DieFeedYAMLFile

func (d *ImageSyncStatusDie) DieFeedYAMLFile(name string) *ImageSyncStatusDie

DieFeedYAMLFile returns a new die loading YAML from a file path. Panics on error.

func (*ImageSyncStatusDie) DieImmutable

func (d *ImageSyncStatusDie) DieImmutable(immutable bool) *ImageSyncStatusDie

DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).

func (*ImageSyncStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ImageSyncStatusDie) DieReleaseJSON

func (d *ImageSyncStatusDie) DieReleaseJSON() []byte

DieReleaseJSON returns the resource managed by the die as JSON. Panics on error.

func (*ImageSyncStatusDie) DieReleasePtr

func (d *ImageSyncStatusDie) DieReleasePtr() *syncv1alpha1.ImageSyncStatus

DieReleasePtr returns a pointer to the resource managed by the die.

func (*ImageSyncStatusDie) DieReleaseRawExtension

func (d *ImageSyncStatusDie) DieReleaseRawExtension() runtime.RawExtension

DieReleaseRawExtension returns the resource managed by the die as an raw extension. Panics on error.

func (*ImageSyncStatusDie) DieReleaseYAML

func (d *ImageSyncStatusDie) DieReleaseYAML() []byte

DieReleaseYAML returns the resource managed by the die as YAML. Panics on error.

func (*ImageSyncStatusDie) DieStamp

DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.

func (*ImageSyncStatusDie) DieStampAt

func (d *ImageSyncStatusDie) DieStampAt(jp string, fn interface{}) *ImageSyncStatusDie

Experimental: DieStampAt uses a JSON path (http://goessner.net/articles/JsonPath/) expression to stamp portions of the resource. The callback is invoked with each JSON path match. Panics if the callback function does not accept a single argument of the same type or a pointer to that type as found on the resource at the target location.

Future iterations will improve type coercion from the resource to the callback argument.

func (*ImageSyncStatusDie) DieWith

func (d *ImageSyncStatusDie) DieWith(fns ...func(d *ImageSyncStatusDie)) *ImageSyncStatusDie

DieWith returns a new die after passing the current die to the callback function. The passed die is mutable.

func (*ImageSyncStatusDie) LastSyncTime

func (d *ImageSyncStatusDie) LastSyncTime(v metav1.Time) *ImageSyncStatusDie

LastSyncTime to the destination repository

func (*ImageSyncStatusDie) ObservedGeneration

func (d *ImageSyncStatusDie) ObservedGeneration(v int64) *ImageSyncStatusDie

func (*ImageSyncStatusDie) Status

func (*ImageSyncStatusDie) URL

URL is the destination link for the latest Artifact.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳