v1

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ServiceBlank = (&ServiceDie{}).DieFeed(servingv1.Service{})
View Source
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 (*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 (*ServiceStatusDie) DeepCopy

func (d *ServiceStatusDie) DeepCopy() *ServiceStatusDie

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

func (*ServiceStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ServiceStatusDie) DieFeedPtr

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

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}

Jump to

Keyboard shortcuts

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