v1alpha1

package
v0.7.0-build.1 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WorkloadConditionReadyBlank             = diemetav1.ConditionBlank.Type(cartov1alpha1.WorkloadConditionReady)
	WorkloadConditionResourceSubmittedBlank = diemetav1.ConditionBlank.Type(cartov1alpha1.ConditionResourceSubmitted)
	WorkloadConditionResourceReadyBlank     = diemetav1.ConditionBlank.Type(cartov1alpha1.ConditionResourceReady)
)
View Source
var ClusterSupplyChainBlank = (&ClusterSupplyChainDie{}).DieFeed(cartographerv1alpha1.ClusterSupplyChain{})
View Source
var (
	ClusterSupplyChainConditionReadyBlank = diemetav1.ConditionBlank.Type(cartov1alpha1.SupplyChainReady)
)
View Source
var RealizedResourceBlank = (&RealizedResourceDie{}).DieFeed(cartographerv1alpha1.RealizedResource{})
View Source
var SupplyChainSpecBlank = (&SupplyChainSpecDie{}).DieFeed(cartographerv1alpha1.SupplyChainSpec{})
View Source
var SupplyChainStatusBlank = (&SupplyChainStatusDie{}).DieFeed(cartographerv1alpha1.SupplyChainStatus{})
View Source
var WorkloadBlank = (&WorkloadDie{}).DieFeed(cartographerv1alpha1.Workload{})
View Source
var WorkloadSpecBlank = (&WorkloadSpecDie{}).DieFeed(cartographerv1alpha1.WorkloadSpec{})
View Source
var WorkloadStatusBlank = (&WorkloadStatusDie{}).DieFeed(cartographerv1alpha1.WorkloadStatus{})

Functions

This section is empty.

Types

type ClusterSupplyChainDie

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

func (*ClusterSupplyChainDie) DeepCopy

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

func (*ClusterSupplyChainDie) DeepCopyObject

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

func (*ClusterSupplyChainDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ClusterSupplyChainDie) DieFeedPtr

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

func (*ClusterSupplyChainDie) DieImmutable

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

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

func (*ClusterSupplyChainDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ClusterSupplyChainDie) DieReleasePtr

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

func (*ClusterSupplyChainDie) DieReleaseUnstructured

func (d *ClusterSupplyChainDie) DieReleaseUnstructured() runtime.Unstructured

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

func (*ClusterSupplyChainDie) DieStamp

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

func (*ClusterSupplyChainDie) GetObjectKind

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

func (*ClusterSupplyChainDie) MarshalJSON

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

func (*ClusterSupplyChainDie) MetadataDie

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

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

func (*ClusterSupplyChainDie) Spec

func (*ClusterSupplyChainDie) SpecDie

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

func (*ClusterSupplyChainDie) Status

func (*ClusterSupplyChainDie) StatusDie

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

func (*ClusterSupplyChainDie) UnmarshalJSON

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

type RealizedResourceDie

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

func (*RealizedResourceDie) Conditions

Conditions describing this resource's reconcile state. The top level condition is of type `Ready`, and follows these Kubernetes conventions: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties

func (*RealizedResourceDie) ConditionsDie

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

func (*RealizedResourceDie) DeepCopy

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

func (*RealizedResourceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*RealizedResourceDie) DieFeedPtr

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

func (*RealizedResourceDie) DieImmutable

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

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

func (*RealizedResourceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*RealizedResourceDie) DieReleasePtr

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

func (*RealizedResourceDie) DieStamp

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

func (*RealizedResourceDie) Inputs

Inputs are references to resources that were used to template the object in StampedRef

func (*RealizedResourceDie) Name

Name is the name of the resource in the blueprint

func (*RealizedResourceDie) Outputs

Outputs are values from the object in StampedRef that can be consumed by other resources

func (*RealizedResourceDie) StampedRef

StampedRef is a reference to the object that was created by the resource

func (*RealizedResourceDie) TemplateRef

TemplateRef is a reference to the template used to create the object in StampedRef

type SupplyChainSpecDie

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

func (*SupplyChainSpecDie) DeepCopy

func (d *SupplyChainSpecDie) DeepCopy() *SupplyChainSpecDie

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

func (*SupplyChainSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*SupplyChainSpecDie) DieFeedPtr

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

func (*SupplyChainSpecDie) DieImmutable

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

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

func (*SupplyChainSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*SupplyChainSpecDie) DieReleasePtr

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

func (*SupplyChainSpecDie) DieStamp

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

func (*SupplyChainSpecDie) Params

func (*SupplyChainSpecDie) Resources

func (*SupplyChainSpecDie) Selector

func (d *SupplyChainSpecDie) Selector(v map[string]string) *SupplyChainSpecDie

func (*SupplyChainSpecDie) SelectorMatchExpressions

func (d *SupplyChainSpecDie) SelectorMatchExpressions(v ...metav1.LabelSelectorRequirement) *SupplyChainSpecDie

func (*SupplyChainSpecDie) SelectorMatchFields

func (*SupplyChainSpecDie) ServiceAccountRef

type SupplyChainStatusDie

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

func (*SupplyChainStatusDie) Conditions

func (*SupplyChainStatusDie) ConditionsDie

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

func (*SupplyChainStatusDie) DeepCopy

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

func (*SupplyChainStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*SupplyChainStatusDie) DieFeedPtr

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

func (*SupplyChainStatusDie) DieImmutable

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

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

func (*SupplyChainStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*SupplyChainStatusDie) DieReleasePtr

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

func (*SupplyChainStatusDie) DieStamp

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

func (*SupplyChainStatusDie) ObservedGeneration

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

type WorkloadDie

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

func (*WorkloadDie) DeepCopy

func (d *WorkloadDie) DeepCopy() *WorkloadDie

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

func (*WorkloadDie) DeepCopyObject

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

func (*WorkloadDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*WorkloadDie) DieFeedPtr

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

func (*WorkloadDie) DieImmutable

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

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

func (*WorkloadDie) DieRelease

func (d *WorkloadDie) DieRelease() cartographerv1alpha1.Workload

DieRelease returns the resource managed by the die.

func (*WorkloadDie) DieReleasePtr

func (d *WorkloadDie) DieReleasePtr() *cartographerv1alpha1.Workload

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

func (*WorkloadDie) DieReleaseUnstructured

func (d *WorkloadDie) DieReleaseUnstructured() runtime.Unstructured

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

func (*WorkloadDie) DieStamp

func (d *WorkloadDie) DieStamp(fn func(r *cartographerv1alpha1.Workload)) *WorkloadDie

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

func (*WorkloadDie) GetObjectKind

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

func (*WorkloadDie) MarshalJSON

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

func (*WorkloadDie) MetadataDie

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

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

func (*WorkloadDie) Spec

func (*WorkloadDie) SpecDie

func (d *WorkloadDie) SpecDie(fn func(d *WorkloadSpecDie)) *WorkloadDie

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

func (*WorkloadDie) Status

func (*WorkloadDie) StatusDie

func (d *WorkloadDie) StatusDie(fn func(d *WorkloadStatusDie)) *WorkloadDie

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

func (*WorkloadDie) UnmarshalJSON

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

type WorkloadSpecDie

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

func (*WorkloadSpecDie) Build

func (*WorkloadSpecDie) DeepCopy

func (d *WorkloadSpecDie) DeepCopy() *WorkloadSpecDie

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

func (*WorkloadSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*WorkloadSpecDie) DieFeedPtr

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

func (*WorkloadSpecDie) DieImmutable

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

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

func (*WorkloadSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*WorkloadSpecDie) DieReleasePtr

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

func (*WorkloadSpecDie) DieStamp

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

func (*WorkloadSpecDie) Env

func (*WorkloadSpecDie) EnvDie

func (d *WorkloadSpecDie) EnvDie(name string, fn func(d *diecorev1.EnvVarDie)) *WorkloadSpecDie

func (*WorkloadSpecDie) Image

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

Image is a pre-built image in a registry. It is an alternative to defining source code.

func (*WorkloadSpecDie) Params

func (*WorkloadSpecDie) Resources

func (*WorkloadSpecDie) ServiceAccountName

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

func (*WorkloadSpecDie) ServiceClaims

func (*WorkloadSpecDie) Source

type WorkloadStatusDie

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

func (*WorkloadStatusDie) Conditions

func (d *WorkloadStatusDie) Conditions(v ...metav1.Condition) *WorkloadStatusDie

Conditions describing this resource's reconcile state. The top level condition is of type `Ready`, and follows these Kubernetes conventions: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties

func (*WorkloadStatusDie) ConditionsDie

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

func (*WorkloadStatusDie) DeepCopy

func (d *WorkloadStatusDie) DeepCopy() *WorkloadStatusDie

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

func (*WorkloadStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*WorkloadStatusDie) DieFeedPtr

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

func (*WorkloadStatusDie) DieImmutable

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

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

func (*WorkloadStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*WorkloadStatusDie) DieReleasePtr

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

func (*WorkloadStatusDie) DieStamp

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

func (*WorkloadStatusDie) ObservedGeneration

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

ObservedGeneration refers to the metadata.Generation of the spec that resulted in the current `status`.

func (*WorkloadStatusDie) Resources

Resources contain references to the objects created by the Supply Chain and the templates used to create them. It also contains Inputs and Outputs that were passed between the templates as the Supply Chain was processed.

func (*WorkloadStatusDie) SupplyChainRef

SupplyChainRef is the Supply Chain resource that was used when this status was set.

Jump to

Keyboard shortcuts

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