v1

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var APIServiceBlank = (&APIServiceDie{}).DieFeed(apiregistration.APIService{})
View Source
var APIServiceSpecBlank = (&APIServiceSpecDie{}).DieFeed(apiregistration.APIServiceSpec{})
View Source
var APIServiceStatusBlank = (&APIServiceStatusDie{}).DieFeed(apiregistration.APIServiceStatus{})
View Source
var ServiceReferenceBlank = (&ServiceReferenceDie{}).DieFeed(apiregistration.ServiceReference{})

Functions

This section is empty.

Types

type APIServiceDie

type APIServiceDie struct {
	metav1.FrozenObjectMeta
	// contains filtered or unexported fields
}

func (*APIServiceDie) APIVersion

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

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 (*APIServiceDie) DeepCopy

func (d *APIServiceDie) DeepCopy() *APIServiceDie

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

func (*APIServiceDie) DeepCopyObject

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

func (*APIServiceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*APIServiceDie) DieFeedJSON

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

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

func (*APIServiceDie) DieFeedPtr

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

func (*APIServiceDie) DieFeedRawExtension

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

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

func (*APIServiceDie) DieFeedYAML

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

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

func (*APIServiceDie) DieFeedYAMLFile

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

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

func (*APIServiceDie) DieImmutable

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

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

func (*APIServiceDie) DieRelease

func (d *APIServiceDie) DieRelease() apiregistration.APIService

DieRelease returns the resource managed by the die.

func (*APIServiceDie) DieReleaseJSON

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

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

func (*APIServiceDie) DieReleasePtr

func (d *APIServiceDie) DieReleasePtr() *apiregistration.APIService

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

func (*APIServiceDie) DieReleaseRawExtension

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

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

func (*APIServiceDie) DieReleaseUnstructured

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

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

func (*APIServiceDie) DieReleaseYAML

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

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

func (*APIServiceDie) DieStamp

func (d *APIServiceDie) DieStamp(fn func(r *apiregistration.APIService)) *APIServiceDie

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

func (*APIServiceDie) DieStampAt

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

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 (*APIServiceDie) DieWith

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

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

func (*APIServiceDie) GetObjectKind

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

func (*APIServiceDie) Kind

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

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 (*APIServiceDie) MarshalJSON

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

func (*APIServiceDie) MetadataDie

func (d *APIServiceDie) MetadataDie(fn func(d *metav1.ObjectMetaDie)) *APIServiceDie

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

func (*APIServiceDie) Spec

Spec contains information for locating and communicating with a server

func (*APIServiceDie) SpecDie

func (d *APIServiceDie) SpecDie(fn func(d *APIServiceSpecDie)) *APIServiceDie

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

func (*APIServiceDie) Status

Status contains derived information about an API server

func (*APIServiceDie) StatusDie

func (d *APIServiceDie) StatusDie(fn func(d *APIServiceStatusDie)) *APIServiceDie

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

func (*APIServiceDie) UnmarshalJSON

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

type APIServiceSpecDie

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

func (*APIServiceSpecDie) CABundle

func (d *APIServiceSpecDie) CABundle(v []byte) *APIServiceSpecDie

CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate.

If unspecified, system trust roots on the apiserver are used.

func (*APIServiceSpecDie) DeepCopy

func (d *APIServiceSpecDie) DeepCopy() *APIServiceSpecDie

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

func (*APIServiceSpecDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*APIServiceSpecDie) DieFeedJSON

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

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

func (*APIServiceSpecDie) DieFeedPtr

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

func (*APIServiceSpecDie) DieFeedRawExtension

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

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

func (*APIServiceSpecDie) DieFeedYAML

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

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

func (*APIServiceSpecDie) DieFeedYAMLFile

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

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

func (*APIServiceSpecDie) DieImmutable

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

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

func (*APIServiceSpecDie) DieRelease

DieRelease returns the resource managed by the die.

func (*APIServiceSpecDie) DieReleaseJSON

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

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

func (*APIServiceSpecDie) DieReleasePtr

func (d *APIServiceSpecDie) DieReleasePtr() *apiregistration.APIServiceSpec

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

func (*APIServiceSpecDie) DieReleaseRawExtension

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

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

func (*APIServiceSpecDie) DieReleaseYAML

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

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

func (*APIServiceSpecDie) DieStamp

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

func (*APIServiceSpecDie) DieStampAt

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

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 (*APIServiceSpecDie) DieWith

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

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

func (*APIServiceSpecDie) Group

Group is the API group name this server hosts

func (*APIServiceSpecDie) GroupPriorityMinimum

func (d *APIServiceSpecDie) GroupPriorityMinimum(v int32) *APIServiceSpecDie

GroupPriorityMinimum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones.

Note that other versions of this group might specify even higher GroupPriorityMinimum values such that the whole group gets a higher priority.

The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10).

The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo)

We'd recommend something like: *.k8s.io (except extensions) at 18000 and

PaaSes (OpenShift, Deis) are recommended to be in the 2000s

func (*APIServiceSpecDie) InsecureSkipTLSVerify

func (d *APIServiceSpecDie) InsecureSkipTLSVerify(v bool) *APIServiceSpecDie

InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server.

This is strongly discouraged. You should use the CABundle instead.

func (*APIServiceSpecDie) Service

Service is a reference to the service for this API server. It must communicate

on port 443.

If the Service is nil, that means the handling for the API groupversion is handled locally on this server.

The call will simply delegate to the normal handler chain to be fulfilled.

func (*APIServiceSpecDie) TargetDie

func (d *APIServiceSpecDie) TargetDie(fn func(d *ServiceReferenceDie)) *APIServiceSpecDie

func (*APIServiceSpecDie) Version

Version is the API version this server hosts. For example, "v1"

func (*APIServiceSpecDie) VersionPriority

func (d *APIServiceSpecDie) VersionPriority(v int32) *APIServiceSpecDie

VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero.

The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10).

Since it's inside of a group, the number can be small, probably in the 10s.

In case of equal version priorities, the version string will be used to compute the order inside a group.

If the version string is "kube-like", it will sort above non "kube-like" version strings, which are ordered

lexicographically. "Kube-like" versions start with a "v", then are followed by a number (the major version),

then optionally the string "alpha" or "beta" and another number (the minor version). These are sorted first

by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major

version, then minor version. An example sorted list of versions:

v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.

type APIServiceStatusDie

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

func (*APIServiceStatusDie) Conditions

Current service state of apiService.

func (*APIServiceStatusDie) ConditionsDie

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

func (*APIServiceStatusDie) DeepCopy

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

func (*APIServiceStatusDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*APIServiceStatusDie) DieFeedJSON

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

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

func (*APIServiceStatusDie) DieFeedPtr

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

func (*APIServiceStatusDie) DieFeedRawExtension

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

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

func (*APIServiceStatusDie) DieFeedYAML

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

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

func (*APIServiceStatusDie) DieFeedYAMLFile

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

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

func (*APIServiceStatusDie) DieImmutable

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

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

func (*APIServiceStatusDie) DieRelease

DieRelease returns the resource managed by the die.

func (*APIServiceStatusDie) DieReleaseJSON

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

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

func (*APIServiceStatusDie) DieReleasePtr

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

func (*APIServiceStatusDie) DieReleaseRawExtension

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

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

func (*APIServiceStatusDie) DieReleaseYAML

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

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

func (*APIServiceStatusDie) DieStamp

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

func (*APIServiceStatusDie) DieStampAt

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

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 (*APIServiceStatusDie) DieWith

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

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

type ServiceReferenceDie

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

func (*ServiceReferenceDie) DeepCopy

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

func (*ServiceReferenceDie) DieFeed

DieFeed returns a new die with the provided resource.

func (*ServiceReferenceDie) DieFeedJSON

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

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

func (*ServiceReferenceDie) DieFeedPtr

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

func (*ServiceReferenceDie) DieFeedRawExtension

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

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

func (*ServiceReferenceDie) DieFeedYAML

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

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

func (*ServiceReferenceDie) DieFeedYAMLFile

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

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

func (*ServiceReferenceDie) DieImmutable

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

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

func (*ServiceReferenceDie) DieRelease

DieRelease returns the resource managed by the die.

func (*ServiceReferenceDie) DieReleaseJSON

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

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

func (*ServiceReferenceDie) DieReleasePtr

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

func (*ServiceReferenceDie) DieReleaseRawExtension

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

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

func (*ServiceReferenceDie) DieReleaseYAML

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

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

func (*ServiceReferenceDie) DieStamp

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

func (*ServiceReferenceDie) DieStampAt

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

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 (*ServiceReferenceDie) DieWith

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

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

func (*ServiceReferenceDie) Name

Name is the name of the service

func (*ServiceReferenceDie) Namespace

Namespace is the namespace of the service

func (*ServiceReferenceDie) Port

If specified, the port on the service that hosting the service.

Default to 443 for backward compatibility.

`port` should be a valid port number (1-65535, inclusive).

Jump to

Keyboard shortcuts

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