Documentation ¶
Index ¶
- Variables
- type ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) DeepCopy() *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) DeepCopyObject() runtime.Object
- func (d *ClusterSupplyChainDie) DieFeed(r cartographerv1alpha1.ClusterSupplyChain) *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) DieFeedPtr(r *cartographerv1alpha1.ClusterSupplyChain) *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) DieImmutable(immutable bool) *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) DieRelease() cartographerv1alpha1.ClusterSupplyChain
- func (d *ClusterSupplyChainDie) DieReleasePtr() *cartographerv1alpha1.ClusterSupplyChain
- func (d *ClusterSupplyChainDie) DieReleaseUnstructured() runtime.Unstructured
- func (d *ClusterSupplyChainDie) DieStamp(fn func(r *cartographerv1alpha1.ClusterSupplyChain)) *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) GetObjectKind() schema.ObjectKind
- func (d *ClusterSupplyChainDie) MarshalJSON() ([]byte, error)
- func (d *ClusterSupplyChainDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) Spec(v cartographerv1alpha1.SupplyChainSpec) *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) SpecDie(fn func(d *SupplyChainSpecDie)) *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) Status(v cartographerv1alpha1.SupplyChainStatus) *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) StatusDie(fn func(d *SupplyChainStatusDie)) *ClusterSupplyChainDie
- func (d *ClusterSupplyChainDie) UnmarshalJSON(b []byte) error
- type RealizedResourceDie
- func (d *RealizedResourceDie) Conditions(v ...metav1.Condition) *RealizedResourceDie
- func (d *RealizedResourceDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *RealizedResourceDie
- func (d *RealizedResourceDie) DeepCopy() *RealizedResourceDie
- func (d *RealizedResourceDie) DieFeed(r cartographerv1alpha1.RealizedResource) *RealizedResourceDie
- func (d *RealizedResourceDie) DieFeedPtr(r *cartographerv1alpha1.RealizedResource) *RealizedResourceDie
- func (d *RealizedResourceDie) DieImmutable(immutable bool) *RealizedResourceDie
- func (d *RealizedResourceDie) DieRelease() cartographerv1alpha1.RealizedResource
- func (d *RealizedResourceDie) DieReleasePtr() *cartographerv1alpha1.RealizedResource
- func (d *RealizedResourceDie) DieStamp(fn func(r *cartographerv1alpha1.RealizedResource)) *RealizedResourceDie
- func (d *RealizedResourceDie) Inputs(v ...cartographerv1alpha1.Input) *RealizedResourceDie
- func (d *RealizedResourceDie) Name(v string) *RealizedResourceDie
- func (d *RealizedResourceDie) Outputs(v ...cartographerv1alpha1.Output) *RealizedResourceDie
- func (d *RealizedResourceDie) StampedRef(v *corev1.ObjectReference) *RealizedResourceDie
- func (d *RealizedResourceDie) TemplateRef(v *corev1.ObjectReference) *RealizedResourceDie
- type SupplyChainSpecDie
- func (d *SupplyChainSpecDie) DeepCopy() *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) DieFeed(r cartographerv1alpha1.SupplyChainSpec) *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) DieFeedPtr(r *cartographerv1alpha1.SupplyChainSpec) *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) DieImmutable(immutable bool) *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) DieRelease() cartographerv1alpha1.SupplyChainSpec
- func (d *SupplyChainSpecDie) DieReleasePtr() *cartographerv1alpha1.SupplyChainSpec
- func (d *SupplyChainSpecDie) DieStamp(fn func(r *cartographerv1alpha1.SupplyChainSpec)) *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) Params(v ...cartographerv1alpha1.DelegatableParam) *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) Resources(v ...cartographerv1alpha1.SupplyChainResource) *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) Selector(v map[string]string) *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) SelectorMatchExpressions(v ...metav1.LabelSelectorRequirement) *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) SelectorMatchFields(v ...cartographerv1alpha1.FieldSelectorRequirement) *SupplyChainSpecDie
- func (d *SupplyChainSpecDie) ServiceAccountRef(v cartographerv1alpha1.ServiceAccountRef) *SupplyChainSpecDie
- type SupplyChainStatusDie
- func (d *SupplyChainStatusDie) Conditions(v ...metav1.Condition) *SupplyChainStatusDie
- func (d *SupplyChainStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *SupplyChainStatusDie
- func (d *SupplyChainStatusDie) DeepCopy() *SupplyChainStatusDie
- func (d *SupplyChainStatusDie) DieFeed(r cartographerv1alpha1.SupplyChainStatus) *SupplyChainStatusDie
- func (d *SupplyChainStatusDie) DieFeedPtr(r *cartographerv1alpha1.SupplyChainStatus) *SupplyChainStatusDie
- func (d *SupplyChainStatusDie) DieImmutable(immutable bool) *SupplyChainStatusDie
- func (d *SupplyChainStatusDie) DieRelease() cartographerv1alpha1.SupplyChainStatus
- func (d *SupplyChainStatusDie) DieReleasePtr() *cartographerv1alpha1.SupplyChainStatus
- func (d *SupplyChainStatusDie) DieStamp(fn func(r *cartographerv1alpha1.SupplyChainStatus)) *SupplyChainStatusDie
- func (d *SupplyChainStatusDie) ObservedGeneration(v int64) *SupplyChainStatusDie
- type WorkloadDie
- func (d *WorkloadDie) DeepCopy() *WorkloadDie
- func (d *WorkloadDie) DeepCopyObject() runtime.Object
- func (d *WorkloadDie) DieFeed(r cartographerv1alpha1.Workload) *WorkloadDie
- func (d *WorkloadDie) DieFeedPtr(r *cartographerv1alpha1.Workload) *WorkloadDie
- func (d *WorkloadDie) DieImmutable(immutable bool) *WorkloadDie
- func (d *WorkloadDie) DieRelease() cartographerv1alpha1.Workload
- func (d *WorkloadDie) DieReleasePtr() *cartographerv1alpha1.Workload
- func (d *WorkloadDie) DieReleaseUnstructured() runtime.Unstructured
- func (d *WorkloadDie) DieStamp(fn func(r *cartographerv1alpha1.Workload)) *WorkloadDie
- func (d *WorkloadDie) GetObjectKind() schema.ObjectKind
- func (d *WorkloadDie) MarshalJSON() ([]byte, error)
- func (d *WorkloadDie) MetadataDie(fn func(d *v1.ObjectMetaDie)) *WorkloadDie
- func (d *WorkloadDie) Spec(v cartographerv1alpha1.WorkloadSpec) *WorkloadDie
- func (d *WorkloadDie) SpecDie(fn func(d *WorkloadSpecDie)) *WorkloadDie
- func (d *WorkloadDie) Status(v cartographerv1alpha1.WorkloadStatus) *WorkloadDie
- func (d *WorkloadDie) StatusDie(fn func(d *WorkloadStatusDie)) *WorkloadDie
- func (d *WorkloadDie) UnmarshalJSON(b []byte) error
- type WorkloadSpecDie
- func (d *WorkloadSpecDie) Build(v *cartographerv1alpha1.WorkloadBuild) *WorkloadSpecDie
- func (d *WorkloadSpecDie) DeepCopy() *WorkloadSpecDie
- func (d *WorkloadSpecDie) DieFeed(r cartographerv1alpha1.WorkloadSpec) *WorkloadSpecDie
- func (d *WorkloadSpecDie) DieFeedPtr(r *cartographerv1alpha1.WorkloadSpec) *WorkloadSpecDie
- func (d *WorkloadSpecDie) DieImmutable(immutable bool) *WorkloadSpecDie
- func (d *WorkloadSpecDie) DieRelease() cartographerv1alpha1.WorkloadSpec
- func (d *WorkloadSpecDie) DieReleasePtr() *cartographerv1alpha1.WorkloadSpec
- func (d *WorkloadSpecDie) DieStamp(fn func(r *cartographerv1alpha1.WorkloadSpec)) *WorkloadSpecDie
- func (d *WorkloadSpecDie) Env(v ...corev1.EnvVar) *WorkloadSpecDie
- func (d *WorkloadSpecDie) EnvDie(name string, fn func(d *diecorev1.EnvVarDie)) *WorkloadSpecDie
- func (d *WorkloadSpecDie) Image(v string) *WorkloadSpecDie
- func (d *WorkloadSpecDie) Params(v ...cartographerv1alpha1.Param) *WorkloadSpecDie
- func (d *WorkloadSpecDie) Resources(v *corev1.ResourceRequirements) *WorkloadSpecDie
- func (d *WorkloadSpecDie) ServiceAccountName(v *string) *WorkloadSpecDie
- func (d *WorkloadSpecDie) ServiceClaims(v ...cartographerv1alpha1.WorkloadServiceClaim) *WorkloadSpecDie
- func (d *WorkloadSpecDie) Source(v *cartographerv1alpha1.Source) *WorkloadSpecDie
- type WorkloadStatusDie
- func (d *WorkloadStatusDie) Conditions(v ...metav1.Condition) *WorkloadStatusDie
- func (d *WorkloadStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *WorkloadStatusDie
- func (d *WorkloadStatusDie) DeepCopy() *WorkloadStatusDie
- func (d *WorkloadStatusDie) DieFeed(r cartographerv1alpha1.WorkloadStatus) *WorkloadStatusDie
- func (d *WorkloadStatusDie) DieFeedPtr(r *cartographerv1alpha1.WorkloadStatus) *WorkloadStatusDie
- func (d *WorkloadStatusDie) DieImmutable(immutable bool) *WorkloadStatusDie
- func (d *WorkloadStatusDie) DieRelease() cartographerv1alpha1.WorkloadStatus
- func (d *WorkloadStatusDie) DieReleasePtr() *cartographerv1alpha1.WorkloadStatus
- func (d *WorkloadStatusDie) DieStamp(fn func(r *cartographerv1alpha1.WorkloadStatus)) *WorkloadStatusDie
- func (d *WorkloadStatusDie) ObservedGeneration(v int64) *WorkloadStatusDie
- func (d *WorkloadStatusDie) Resources(v ...cartographerv1alpha1.RealizedResource) *WorkloadStatusDie
- func (d *WorkloadStatusDie) SupplyChainRef(v cartographerv1alpha1.ObjectReference) *WorkloadStatusDie
Constants ¶
This section is empty.
Variables ¶
var ( WorkloadConditionReadyBlank = diemetav1.ConditionBlank.Type(cartov1alpha1.WorkloadConditionReady) WorkloadConditionResourceSubmittedBlank = diemetav1.ConditionBlank.Type(cartov1alpha1.ConditionResourceSubmitted) WorkloadConditionResourceReadyBlank = diemetav1.ConditionBlank.Type(cartov1alpha1.ConditionResourceReady) )
var ClusterSupplyChainBlank = (&ClusterSupplyChainDie{}).DieFeed(cartographerv1alpha1.ClusterSupplyChain{})
var (
ClusterSupplyChainConditionReadyBlank = diemetav1.ConditionBlank.Type(cartov1alpha1.SupplyChainReady)
)
var RealizedResourceBlank = (&RealizedResourceDie{}).DieFeed(cartographerv1alpha1.RealizedResource{})
var SupplyChainSpecBlank = (&SupplyChainSpecDie{}).DieFeed(cartographerv1alpha1.SupplyChainSpec{})
var SupplyChainStatusBlank = (&SupplyChainStatusDie{}).DieFeed(cartographerv1alpha1.SupplyChainStatus{})
var WorkloadBlank = (&WorkloadDie{}).DieFeed(cartographerv1alpha1.Workload{})
var WorkloadSpecBlank = (&WorkloadSpecDie{}).DieFeed(cartographerv1alpha1.WorkloadSpec{})
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 ¶
func (d *ClusterSupplyChainDie) DeepCopy() *ClusterSupplyChainDie
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 ¶
func (d *ClusterSupplyChainDie) DieFeed(r cartographerv1alpha1.ClusterSupplyChain) *ClusterSupplyChainDie
DieFeed returns a new die with the provided resource.
func (*ClusterSupplyChainDie) DieFeedPtr ¶
func (d *ClusterSupplyChainDie) DieFeedPtr(r *cartographerv1alpha1.ClusterSupplyChain) *ClusterSupplyChainDie
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 ¶
func (d *ClusterSupplyChainDie) DieRelease() cartographerv1alpha1.ClusterSupplyChain
DieRelease returns the resource managed by the die.
func (*ClusterSupplyChainDie) DieReleasePtr ¶
func (d *ClusterSupplyChainDie) DieReleasePtr() *cartographerv1alpha1.ClusterSupplyChain
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 ¶
func (d *ClusterSupplyChainDie) DieStamp(fn func(r *cartographerv1alpha1.ClusterSupplyChain)) *ClusterSupplyChainDie
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 (d *ClusterSupplyChainDie) Spec(v cartographerv1alpha1.SupplyChainSpec) *ClusterSupplyChainDie
func (*ClusterSupplyChainDie) SpecDie ¶
func (d *ClusterSupplyChainDie) SpecDie(fn func(d *SupplyChainSpecDie)) *ClusterSupplyChainDie
SpecDie stamps the resource's spec field with a mutable die.
func (*ClusterSupplyChainDie) Status ¶
func (d *ClusterSupplyChainDie) Status(v cartographerv1alpha1.SupplyChainStatus) *ClusterSupplyChainDie
func (*ClusterSupplyChainDie) StatusDie ¶
func (d *ClusterSupplyChainDie) StatusDie(fn func(d *SupplyChainStatusDie)) *ClusterSupplyChainDie
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 ¶
func (d *RealizedResourceDie) Conditions(v ...metav1.Condition) *RealizedResourceDie
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 ¶
func (d *RealizedResourceDie) DeepCopy() *RealizedResourceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*RealizedResourceDie) DieFeed ¶
func (d *RealizedResourceDie) DieFeed(r cartographerv1alpha1.RealizedResource) *RealizedResourceDie
DieFeed returns a new die with the provided resource.
func (*RealizedResourceDie) DieFeedPtr ¶
func (d *RealizedResourceDie) DieFeedPtr(r *cartographerv1alpha1.RealizedResource) *RealizedResourceDie
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 ¶
func (d *RealizedResourceDie) DieRelease() cartographerv1alpha1.RealizedResource
DieRelease returns the resource managed by the die.
func (*RealizedResourceDie) DieReleasePtr ¶
func (d *RealizedResourceDie) DieReleasePtr() *cartographerv1alpha1.RealizedResource
DieReleasePtr returns a pointer to the resource managed by the die.
func (*RealizedResourceDie) DieStamp ¶
func (d *RealizedResourceDie) DieStamp(fn func(r *cartographerv1alpha1.RealizedResource)) *RealizedResourceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*RealizedResourceDie) Inputs ¶
func (d *RealizedResourceDie) Inputs(v ...cartographerv1alpha1.Input) *RealizedResourceDie
Inputs are references to resources that were used to template the object in StampedRef
func (*RealizedResourceDie) Name ¶
func (d *RealizedResourceDie) Name(v string) *RealizedResourceDie
Name is the name of the resource in the blueprint
func (*RealizedResourceDie) Outputs ¶
func (d *RealizedResourceDie) Outputs(v ...cartographerv1alpha1.Output) *RealizedResourceDie
Outputs are values from the object in StampedRef that can be consumed by other resources
func (*RealizedResourceDie) StampedRef ¶
func (d *RealizedResourceDie) StampedRef(v *corev1.ObjectReference) *RealizedResourceDie
StampedRef is a reference to the object that was created by the resource
func (*RealizedResourceDie) TemplateRef ¶
func (d *RealizedResourceDie) TemplateRef(v *corev1.ObjectReference) *RealizedResourceDie
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 ¶
func (d *SupplyChainSpecDie) DieFeed(r cartographerv1alpha1.SupplyChainSpec) *SupplyChainSpecDie
DieFeed returns a new die with the provided resource.
func (*SupplyChainSpecDie) DieFeedPtr ¶
func (d *SupplyChainSpecDie) DieFeedPtr(r *cartographerv1alpha1.SupplyChainSpec) *SupplyChainSpecDie
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 ¶
func (d *SupplyChainSpecDie) DieRelease() cartographerv1alpha1.SupplyChainSpec
DieRelease returns the resource managed by the die.
func (*SupplyChainSpecDie) DieReleasePtr ¶
func (d *SupplyChainSpecDie) DieReleasePtr() *cartographerv1alpha1.SupplyChainSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SupplyChainSpecDie) DieStamp ¶
func (d *SupplyChainSpecDie) DieStamp(fn func(r *cartographerv1alpha1.SupplyChainSpec)) *SupplyChainSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*SupplyChainSpecDie) Params ¶
func (d *SupplyChainSpecDie) Params(v ...cartographerv1alpha1.DelegatableParam) *SupplyChainSpecDie
func (*SupplyChainSpecDie) Resources ¶
func (d *SupplyChainSpecDie) Resources(v ...cartographerv1alpha1.SupplyChainResource) *SupplyChainSpecDie
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 (d *SupplyChainSpecDie) SelectorMatchFields(v ...cartographerv1alpha1.FieldSelectorRequirement) *SupplyChainSpecDie
func (*SupplyChainSpecDie) ServiceAccountRef ¶
func (d *SupplyChainSpecDie) ServiceAccountRef(v cartographerv1alpha1.ServiceAccountRef) *SupplyChainSpecDie
type SupplyChainStatusDie ¶
type SupplyChainStatusDie struct {
// contains filtered or unexported fields
}
func (*SupplyChainStatusDie) Conditions ¶
func (d *SupplyChainStatusDie) Conditions(v ...metav1.Condition) *SupplyChainStatusDie
func (*SupplyChainStatusDie) ConditionsDie ¶
func (d *SupplyChainStatusDie) ConditionsDie(conditions ...*diemetav1.ConditionDie) *SupplyChainStatusDie
func (*SupplyChainStatusDie) DeepCopy ¶
func (d *SupplyChainStatusDie) DeepCopy() *SupplyChainStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*SupplyChainStatusDie) DieFeed ¶
func (d *SupplyChainStatusDie) DieFeed(r cartographerv1alpha1.SupplyChainStatus) *SupplyChainStatusDie
DieFeed returns a new die with the provided resource.
func (*SupplyChainStatusDie) DieFeedPtr ¶
func (d *SupplyChainStatusDie) DieFeedPtr(r *cartographerv1alpha1.SupplyChainStatus) *SupplyChainStatusDie
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 ¶
func (d *SupplyChainStatusDie) DieRelease() cartographerv1alpha1.SupplyChainStatus
DieRelease returns the resource managed by the die.
func (*SupplyChainStatusDie) DieReleasePtr ¶
func (d *SupplyChainStatusDie) DieReleasePtr() *cartographerv1alpha1.SupplyChainStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*SupplyChainStatusDie) DieStamp ¶
func (d *SupplyChainStatusDie) DieStamp(fn func(r *cartographerv1alpha1.SupplyChainStatus)) *SupplyChainStatusDie
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 ¶
func (d *WorkloadDie) DieFeed(r cartographerv1alpha1.Workload) *WorkloadDie
DieFeed returns a new die with the provided resource.
func (*WorkloadDie) DieFeedPtr ¶
func (d *WorkloadDie) DieFeedPtr(r *cartographerv1alpha1.Workload) *WorkloadDie
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 (d *WorkloadDie) Spec(v cartographerv1alpha1.WorkloadSpec) *WorkloadDie
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 (d *WorkloadDie) Status(v cartographerv1alpha1.WorkloadStatus) *WorkloadDie
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 (d *WorkloadSpecDie) Build(v *cartographerv1alpha1.WorkloadBuild) *WorkloadSpecDie
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 ¶
func (d *WorkloadSpecDie) DieFeed(r cartographerv1alpha1.WorkloadSpec) *WorkloadSpecDie
DieFeed returns a new die with the provided resource.
func (*WorkloadSpecDie) DieFeedPtr ¶
func (d *WorkloadSpecDie) DieFeedPtr(r *cartographerv1alpha1.WorkloadSpec) *WorkloadSpecDie
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 ¶
func (d *WorkloadSpecDie) DieRelease() cartographerv1alpha1.WorkloadSpec
DieRelease returns the resource managed by the die.
func (*WorkloadSpecDie) DieReleasePtr ¶
func (d *WorkloadSpecDie) DieReleasePtr() *cartographerv1alpha1.WorkloadSpec
DieReleasePtr returns a pointer to the resource managed by the die.
func (*WorkloadSpecDie) DieStamp ¶
func (d *WorkloadSpecDie) DieStamp(fn func(r *cartographerv1alpha1.WorkloadSpec)) *WorkloadSpecDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*WorkloadSpecDie) Env ¶
func (d *WorkloadSpecDie) Env(v ...corev1.EnvVar) *WorkloadSpecDie
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 (d *WorkloadSpecDie) Params(v ...cartographerv1alpha1.Param) *WorkloadSpecDie
func (*WorkloadSpecDie) Resources ¶
func (d *WorkloadSpecDie) Resources(v *corev1.ResourceRequirements) *WorkloadSpecDie
func (*WorkloadSpecDie) ServiceAccountName ¶
func (d *WorkloadSpecDie) ServiceAccountName(v *string) *WorkloadSpecDie
func (*WorkloadSpecDie) ServiceClaims ¶
func (d *WorkloadSpecDie) ServiceClaims(v ...cartographerv1alpha1.WorkloadServiceClaim) *WorkloadSpecDie
func (*WorkloadSpecDie) Source ¶
func (d *WorkloadSpecDie) Source(v *cartographerv1alpha1.Source) *WorkloadSpecDie
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 ¶
func (d *WorkloadStatusDie) DieFeed(r cartographerv1alpha1.WorkloadStatus) *WorkloadStatusDie
DieFeed returns a new die with the provided resource.
func (*WorkloadStatusDie) DieFeedPtr ¶
func (d *WorkloadStatusDie) DieFeedPtr(r *cartographerv1alpha1.WorkloadStatus) *WorkloadStatusDie
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 ¶
func (d *WorkloadStatusDie) DieRelease() cartographerv1alpha1.WorkloadStatus
DieRelease returns the resource managed by the die.
func (*WorkloadStatusDie) DieReleasePtr ¶
func (d *WorkloadStatusDie) DieReleasePtr() *cartographerv1alpha1.WorkloadStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*WorkloadStatusDie) DieStamp ¶
func (d *WorkloadStatusDie) DieStamp(fn func(r *cartographerv1alpha1.WorkloadStatus)) *WorkloadStatusDie
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 ¶
func (d *WorkloadStatusDie) Resources(v ...cartographerv1alpha1.RealizedResource) *WorkloadStatusDie
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 ¶
func (d *WorkloadStatusDie) SupplyChainRef(v cartographerv1alpha1.ObjectReference) *WorkloadStatusDie
SupplyChainRef is the Supply Chain resource that was used when this status was set.