Documentation ¶
Index ¶
- Variables
- type ServiceDie
- func (d *ServiceDie) APIVersion(v string) *ServiceDie
- func (d *ServiceDie) DeepCopy() *ServiceDie
- func (d *ServiceDie) DeepCopyObject() runtime.Object
- func (d *ServiceDie) DieFeed(r servingv1.Service) *ServiceDie
- func (d *ServiceDie) DieFeedPtr(r *servingv1.Service) *ServiceDie
- func (d *ServiceDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceDie
- func (d *ServiceDie) DieImmutable(immutable bool) *ServiceDie
- func (d *ServiceDie) DieRelease() servingv1.Service
- func (d *ServiceDie) DieReleasePtr() *servingv1.Service
- func (d *ServiceDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ServiceDie) DieReleaseUnstructured() *unstructured.Unstructured
- func (d *ServiceDie) DieStamp(fn func(r *servingv1.Service)) *ServiceDie
- func (d *ServiceDie) GetObjectKind() schema.ObjectKind
- func (d *ServiceDie) Kind(v string) *ServiceDie
- func (d *ServiceDie) MarshalJSON() ([]byte, error)
- func (d *ServiceDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ServiceDie
- func (d *ServiceDie) Status(v servingv1.ServiceStatus) *ServiceDie
- func (d *ServiceDie) StatusDie(fn func(d *ServiceStatusDie)) *ServiceDie
- func (d *ServiceDie) UnmarshalJSON(b []byte) error
- type ServiceStatusDie
- func (d *ServiceStatusDie) Conditions(v ...apismetav1.Condition) *ServiceStatusDie
- func (d *ServiceStatusDie) DeepCopy() *ServiceStatusDie
- func (d *ServiceStatusDie) DieFeed(r servingv1.ServiceStatus) *ServiceStatusDie
- func (d *ServiceStatusDie) DieFeedPtr(r *servingv1.ServiceStatus) *ServiceStatusDie
- func (d *ServiceStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceStatusDie
- func (d *ServiceStatusDie) DieImmutable(immutable bool) *ServiceStatusDie
- func (d *ServiceStatusDie) DieRelease() servingv1.ServiceStatus
- func (d *ServiceStatusDie) DieReleasePtr() *servingv1.ServiceStatus
- func (d *ServiceStatusDie) DieReleaseRawExtension() runtime.RawExtension
- func (d *ServiceStatusDie) DieStamp(fn func(r *servingv1.ServiceStatus)) *ServiceStatusDie
- func (d *ServiceStatusDie) URL(v string) *ServiceStatusDie
Constants ¶
This section is empty.
Variables ¶
var ServiceBlank = (&ServiceDie{}).DieFeed(servingv1.Service{})
var ServiceStatusBlank = (&ServiceStatusDie{}).DieFeed(servingv1.ServiceStatus{})
Functions ¶
This section is empty.
Types ¶
type ServiceDie ¶
type ServiceDie struct { metav1.FrozenObjectMeta // contains filtered or unexported fields }
func (*ServiceDie) APIVersion ¶ added in v0.8.0
func (d *ServiceDie) APIVersion(v string) *ServiceDie
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 (*ServiceDie) DeepCopy ¶
func (d *ServiceDie) DeepCopy() *ServiceDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ServiceDie) DeepCopyObject ¶
func (d *ServiceDie) DeepCopyObject() runtime.Object
func (*ServiceDie) DieFeed ¶
func (d *ServiceDie) DieFeed(r servingv1.Service) *ServiceDie
DieFeed returns a new die with the provided resource.
func (*ServiceDie) DieFeedPtr ¶
func (d *ServiceDie) DieFeedPtr(r *servingv1.Service) *ServiceDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ServiceDie) DieFeedRawExtension ¶ added in v0.8.0
func (d *ServiceDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceDie
DieFeedRawExtension returns the resource managed by the die as an raw extension.
func (*ServiceDie) DieImmutable ¶
func (d *ServiceDie) DieImmutable(immutable bool) *ServiceDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ServiceDie) DieRelease ¶
func (d *ServiceDie) DieRelease() servingv1.Service
DieRelease returns the resource managed by the die.
func (*ServiceDie) DieReleasePtr ¶
func (d *ServiceDie) DieReleasePtr() *servingv1.Service
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ServiceDie) DieReleaseRawExtension ¶ added in v0.8.0
func (d *ServiceDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension.
func (*ServiceDie) DieReleaseUnstructured ¶
func (d *ServiceDie) DieReleaseUnstructured() *unstructured.Unstructured
DieReleaseUnstructured returns the resource managed by the die as an unstructured object.
func (*ServiceDie) DieStamp ¶
func (d *ServiceDie) DieStamp(fn func(r *servingv1.Service)) *ServiceDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ServiceDie) GetObjectKind ¶
func (d *ServiceDie) GetObjectKind() schema.ObjectKind
func (*ServiceDie) Kind ¶ added in v0.8.0
func (d *ServiceDie) Kind(v string) *ServiceDie
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 (*ServiceDie) MarshalJSON ¶
func (d *ServiceDie) MarshalJSON() ([]byte, error)
func (*ServiceDie) MetadataDie ¶
func (d *ServiceDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *ServiceDie
MetadataDie stamps the resource's ObjectMeta field with a mutable die.
func (*ServiceDie) Status ¶
func (d *ServiceDie) Status(v servingv1.ServiceStatus) *ServiceDie
func (*ServiceDie) StatusDie ¶
func (d *ServiceDie) StatusDie(fn func(d *ServiceStatusDie)) *ServiceDie
StatusDie stamps the resource's status field with a mutable die.
func (*ServiceDie) UnmarshalJSON ¶
func (d *ServiceDie) UnmarshalJSON(b []byte) error
type ServiceStatusDie ¶
type ServiceStatusDie struct {
// contains filtered or unexported fields
}
func (*ServiceStatusDie) Conditions ¶
func (d *ServiceStatusDie) Conditions(v ...apismetav1.Condition) *ServiceStatusDie
func (*ServiceStatusDie) DeepCopy ¶
func (d *ServiceStatusDie) DeepCopy() *ServiceStatusDie
DeepCopy returns a new die with equivalent state. Useful for snapshotting a mutable die.
func (*ServiceStatusDie) DieFeed ¶
func (d *ServiceStatusDie) DieFeed(r servingv1.ServiceStatus) *ServiceStatusDie
DieFeed returns a new die with the provided resource.
func (*ServiceStatusDie) DieFeedPtr ¶
func (d *ServiceStatusDie) DieFeedPtr(r *servingv1.ServiceStatus) *ServiceStatusDie
DieFeedPtr returns a new die with the provided resource pointer. If the resource is nil, the empty value is used instead.
func (*ServiceStatusDie) DieFeedRawExtension ¶ added in v0.8.0
func (d *ServiceStatusDie) DieFeedRawExtension(raw runtime.RawExtension) *ServiceStatusDie
DieFeedRawExtension returns the resource managed by the die as an raw extension.
func (*ServiceStatusDie) DieImmutable ¶
func (d *ServiceStatusDie) DieImmutable(immutable bool) *ServiceStatusDie
DieImmutable returns a new die for the current die's state that is either mutable (`false`) or immutable (`true`).
func (*ServiceStatusDie) DieRelease ¶
func (d *ServiceStatusDie) DieRelease() servingv1.ServiceStatus
DieRelease returns the resource managed by the die.
func (*ServiceStatusDie) DieReleasePtr ¶
func (d *ServiceStatusDie) DieReleasePtr() *servingv1.ServiceStatus
DieReleasePtr returns a pointer to the resource managed by the die.
func (*ServiceStatusDie) DieReleaseRawExtension ¶ added in v0.8.0
func (d *ServiceStatusDie) DieReleaseRawExtension() runtime.RawExtension
DieReleaseRawExtension returns the resource managed by the die as an raw extension.
func (*ServiceStatusDie) DieStamp ¶
func (d *ServiceStatusDie) DieStamp(fn func(r *servingv1.ServiceStatus)) *ServiceStatusDie
DieStamp returns a new die with the resource passed to the callback function. The resource is mutable.
func (*ServiceStatusDie) URL ¶
func (d *ServiceStatusDie) URL(v string) *ServiceStatusDie
URL holds the url that will distribute traffic over the provided traffic targets. It generally has the form http[s]://{route-name}.{route-namespace}.{cluster-level-suffix}