v1

package
v0.0.0-...-d24fd3e Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupApplyConfiguration

type GroupApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Users                            *userv1.OptionalNames `json:"users,omitempty"`
}

GroupApplyConfiguration represents an declarative configuration of the Group type for use with apply.

func ExtractGroup

func ExtractGroup(group *userv1.Group, fieldManager string) (*GroupApplyConfiguration, error)

ExtractGroup extracts the applied configuration owned by fieldManager from group. If no managedFields are found in group for fieldManager, a GroupApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. group must be a unmodified Group API object that was retrieved from the Kubernetes API. ExtractGroup provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func ExtractGroupStatus

func ExtractGroupStatus(group *userv1.Group, fieldManager string) (*GroupApplyConfiguration, error)

ExtractGroupStatus is the same as ExtractGroup except that it extracts the status subresource applied configuration. Experimental!

func Group

func Group(name string) *GroupApplyConfiguration

Group constructs an declarative configuration of the Group type for use with apply.

func (*GroupApplyConfiguration) WithAPIVersion

func (b *GroupApplyConfiguration) WithAPIVersion(value string) *GroupApplyConfiguration

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*GroupApplyConfiguration) WithAnnotations

func (b *GroupApplyConfiguration) WithAnnotations(entries map[string]string) *GroupApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*GroupApplyConfiguration) WithCreationTimestamp

func (b *GroupApplyConfiguration) WithCreationTimestamp(value metav1.Time) *GroupApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*GroupApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *GroupApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *GroupApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*GroupApplyConfiguration) WithDeletionTimestamp

func (b *GroupApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *GroupApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*GroupApplyConfiguration) WithFinalizers

func (b *GroupApplyConfiguration) WithFinalizers(values ...string) *GroupApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*GroupApplyConfiguration) WithGenerateName

func (b *GroupApplyConfiguration) WithGenerateName(value string) *GroupApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*GroupApplyConfiguration) WithGeneration

func (b *GroupApplyConfiguration) WithGeneration(value int64) *GroupApplyConfiguration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*GroupApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*GroupApplyConfiguration) WithLabels

func (b *GroupApplyConfiguration) WithLabels(entries map[string]string) *GroupApplyConfiguration

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*GroupApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*GroupApplyConfiguration) WithNamespace

func (b *GroupApplyConfiguration) WithNamespace(value string) *GroupApplyConfiguration

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*GroupApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*GroupApplyConfiguration) WithResourceVersion

func (b *GroupApplyConfiguration) WithResourceVersion(value string) *GroupApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*GroupApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

func (*GroupApplyConfiguration) WithUsers

WithUsers sets the Users field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Users field is set to the value of the last call.

type IdentityApplyConfiguration

type IdentityApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	ProviderName                     *string                 `json:"providerName,omitempty"`
	ProviderUserName                 *string                 `json:"providerUserName,omitempty"`
	User                             *corev1.ObjectReference `json:"user,omitempty"`
	Extra                            map[string]string       `json:"extra,omitempty"`
}

IdentityApplyConfiguration represents an declarative configuration of the Identity type for use with apply.

func ExtractIdentity

func ExtractIdentity(identity *userv1.Identity, fieldManager string) (*IdentityApplyConfiguration, error)

ExtractIdentity extracts the applied configuration owned by fieldManager from identity. If no managedFields are found in identity for fieldManager, a IdentityApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. identity must be a unmodified Identity API object that was retrieved from the Kubernetes API. ExtractIdentity provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func ExtractIdentityStatus

func ExtractIdentityStatus(identity *userv1.Identity, fieldManager string) (*IdentityApplyConfiguration, error)

ExtractIdentityStatus is the same as ExtractIdentity except that it extracts the status subresource applied configuration. Experimental!

func Identity

func Identity(name string) *IdentityApplyConfiguration

Identity constructs an declarative configuration of the Identity type for use with apply.

func (*IdentityApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithAnnotations

func (b *IdentityApplyConfiguration) WithAnnotations(entries map[string]string) *IdentityApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*IdentityApplyConfiguration) WithCreationTimestamp

func (b *IdentityApplyConfiguration) WithCreationTimestamp(value metav1.Time) *IdentityApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *IdentityApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *IdentityApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithDeletionTimestamp

func (b *IdentityApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *IdentityApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithExtra

WithExtra puts the entries into the Extra field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Extra field, overwriting an existing map entries in Extra field with the same key.

func (*IdentityApplyConfiguration) WithFinalizers

func (b *IdentityApplyConfiguration) WithFinalizers(values ...string) *IdentityApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*IdentityApplyConfiguration) WithGenerateName

func (b *IdentityApplyConfiguration) WithGenerateName(value string) *IdentityApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*IdentityApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*IdentityApplyConfiguration) WithProviderName

func (b *IdentityApplyConfiguration) WithProviderName(value string) *IdentityApplyConfiguration

WithProviderName sets the ProviderName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ProviderName field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithProviderUserName

func (b *IdentityApplyConfiguration) WithProviderUserName(value string) *IdentityApplyConfiguration

WithProviderUserName sets the ProviderUserName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ProviderUserName field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithResourceVersion

func (b *IdentityApplyConfiguration) WithResourceVersion(value string) *IdentityApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

func (*IdentityApplyConfiguration) WithUser

WithUser sets the User field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the User field is set to the value of the last call.

type UserApplyConfiguration

type UserApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	FullName                         *string  `json:"fullName,omitempty"`
	Identities                       []string `json:"identities,omitempty"`
	Groups                           []string `json:"groups,omitempty"`
}

UserApplyConfiguration represents an declarative configuration of the User type for use with apply.

func ExtractUser

func ExtractUser(user *userv1.User, fieldManager string) (*UserApplyConfiguration, error)

ExtractUser extracts the applied configuration owned by fieldManager from user. If no managedFields are found in user for fieldManager, a UserApplyConfiguration is returned with only the Name, Namespace (if applicable), APIVersion and Kind populated. It is possible that no managed fields were found for because other field managers have taken ownership of all the fields previously owned by fieldManager, or because the fieldManager never owned fields any fields. user must be a unmodified User API object that was retrieved from the Kubernetes API. ExtractUser provides a way to perform a extract/modify-in-place/apply workflow. Note that an extracted apply configuration will contain fewer fields than what the fieldManager previously applied if another fieldManager has updated or force applied any of the previously applied fields. Experimental!

func ExtractUserStatus

func ExtractUserStatus(user *userv1.User, fieldManager string) (*UserApplyConfiguration, error)

ExtractUserStatus is the same as ExtractUser except that it extracts the status subresource applied configuration. Experimental!

func User

func User(name string) *UserApplyConfiguration

User constructs an declarative configuration of the User type for use with apply.

func (*UserApplyConfiguration) WithAPIVersion

func (b *UserApplyConfiguration) WithAPIVersion(value string) *UserApplyConfiguration

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*UserApplyConfiguration) WithAnnotations

func (b *UserApplyConfiguration) WithAnnotations(entries map[string]string) *UserApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*UserApplyConfiguration) WithCreationTimestamp

func (b *UserApplyConfiguration) WithCreationTimestamp(value metav1.Time) *UserApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*UserApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *UserApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *UserApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*UserApplyConfiguration) WithDeletionTimestamp

func (b *UserApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *UserApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*UserApplyConfiguration) WithFinalizers

func (b *UserApplyConfiguration) WithFinalizers(values ...string) *UserApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*UserApplyConfiguration) WithFullName

func (b *UserApplyConfiguration) WithFullName(value string) *UserApplyConfiguration

WithFullName sets the FullName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FullName field is set to the value of the last call.

func (*UserApplyConfiguration) WithGenerateName

func (b *UserApplyConfiguration) WithGenerateName(value string) *UserApplyConfiguration

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*UserApplyConfiguration) WithGeneration

func (b *UserApplyConfiguration) WithGeneration(value int64) *UserApplyConfiguration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*UserApplyConfiguration) WithGroups

func (b *UserApplyConfiguration) WithGroups(values ...string) *UserApplyConfiguration

WithGroups adds the given value to the Groups field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Groups field.

func (*UserApplyConfiguration) WithIdentities

func (b *UserApplyConfiguration) WithIdentities(values ...string) *UserApplyConfiguration

WithIdentities adds the given value to the Identities field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Identities field.

func (*UserApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*UserApplyConfiguration) WithLabels

func (b *UserApplyConfiguration) WithLabels(entries map[string]string) *UserApplyConfiguration

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*UserApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*UserApplyConfiguration) WithNamespace

func (b *UserApplyConfiguration) WithNamespace(value string) *UserApplyConfiguration

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*UserApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*UserApplyConfiguration) WithResourceVersion

func (b *UserApplyConfiguration) WithResourceVersion(value string) *UserApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*UserApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

Jump to

Keyboard shortcuts

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