v1

package
v0.0.0-...-e91ff10 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromAny

func FromAny[T any](in Any) (T, error)

func FromData

func FromData[T any](in Data) (T, error)

func IsValidDomain

func IsValidDomain(name string) error

func IsValidName

func IsValidName(name string) error

IsValidName validate name to be a DNS_LABEL. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

Types

type Any

type Any []byte

func NewAny

func NewAny[T any](in T) (Any, error)

func (Any) DeepCopy

func (in Any) DeepCopy() Any

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Any.

func (Any) DeepCopyInto

func (in Any) DeepCopyInto(out *Any)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Any) Equals

func (d Any) Equals(o Any) bool

func (Any) IsZero

func (d Any) IsZero() bool

func (Any) MarshalJSON

func (d Any) MarshalJSON() ([]byte, error)

func (Any) OpenAPISchemaType

func (Any) OpenAPISchemaType() []string

func (Any) OpenAPIXPreserveUnknownFields

func (Any) OpenAPIXPreserveUnknownFields() bool

func (Any) SHA256

func (d Any) SHA256() string

func (*Any) UnmarshalJSON

func (d *Any) UnmarshalJSON(bytes []byte) error

type Data

type Data []byte

Data keeps the representation of the object in the base64 encoded string

func NewData

func NewData[T any](in T) (Data, error)

func (Data) DeepCopy

func (in Data) DeepCopy() Data

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Data.

func (Data) DeepCopyInto

func (in Data) DeepCopyInto(out *Data)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (Data) IsZero

func (d Data) IsZero() bool

func (Data) MarshalJSON

func (d Data) MarshalJSON() ([]byte, error)

func (Data) SHA256

func (d Data) SHA256() string

func (*Data) UnmarshalJSON

func (d *Data) UnmarshalJSON(bytes []byte) error

type HashList

type HashList []string

func (HashList) Contains

func (d HashList) Contains(hash string) bool

func (HashList) ContainsSHA256

func (d HashList) ContainsSHA256(hash string) bool

func (HashList) DeepCopy

func (in HashList) DeepCopy() HashList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HashList.

func (HashList) DeepCopyInto

func (in HashList) DeepCopyInto(out *HashList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (HashList) Equal

func (d HashList) Equal(a HashList) bool

type KubernetesResourceName

type KubernetesResourceName string

KubernetesResourceName define name of kubernetes resource including validation function

func AsKubernetesResourceName

func AsKubernetesResourceName(s *string) *KubernetesResourceName

AsKubernetesResourceName formats string into AsKubernetesResourceName for validation purposes

func (*KubernetesResourceName) Immutable

Immutable verify if field changed

func (*KubernetesResourceName) String

func (n *KubernetesResourceName) String() string

String returns string value of name

func (*KubernetesResourceName) StringP

func (n *KubernetesResourceName) StringP() *string

StringP returns string pointer to resource name

func (*KubernetesResourceName) Validate

func (n *KubernetesResourceName) Validate() error

Validate validate if name is valid kubernetes DNS_LABEL

type Object

type Object struct {
	// Name of the object
	// +doc/required
	Name string `json:"name"`

	// Namespace of the object. Should default to the namespace of the parent object
	Namespace *string `json:"namespace,omitempty"`

	// UID keeps the information about object UID
	UID *types.UID `json:"uid,omitempty"`

	// UID keeps the information about object Checksum
	Checksum *string `json:"checksum,omitempty"`
}

func NewObject

func NewObject(object meta.Object) Object

func NewObjectWithChecksum

func NewObjectWithChecksum(object meta.Object, checksum string) Object

func (*Object) AsUIDPrecondition

func (o *Object) AsUIDPrecondition() *meta.Preconditions

func (*Object) DeepCopy

func (in *Object) DeepCopy() *Object

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Object.

func (*Object) DeepCopyInto

func (in *Object) DeepCopyInto(out *Object)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Object) Equals

func (o *Object) Equals(obj meta.Object) bool

func (*Object) GetChecksum

func (o *Object) GetChecksum() string

func (*Object) GetName

func (o *Object) GetName() string

func (*Object) GetNamespace

func (o *Object) GetNamespace(obj meta.Object) string

func (*Object) GetUID

func (o *Object) GetUID() types.UID

func (*Object) IsEmpty

func (o *Object) IsEmpty() bool

func (*Object) Validate

func (o *Object) Validate() error

type ServiceAccount

type ServiceAccount struct {
	// Object keeps the reference to the ServiceAccount
	*Object `json:",inline"`

	// Namespaced keeps the reference to core.Role objects
	Namespaced *ServiceAccountRole `json:"namespaced,omitempty"`

	// Cluster keeps the reference to core.ClusterRole objects
	Cluster *ServiceAccountRole `json:"cluster,omitempty"`
}

func (*ServiceAccount) DeepCopy

func (in *ServiceAccount) DeepCopy() *ServiceAccount

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccount.

func (*ServiceAccount) DeepCopyInto

func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ServiceAccountRole

type ServiceAccountRole struct {
	// Role keeps the reference to the Kubernetes Role
	Role *Object `json:"role,omitempty"`

	// Binding keeps the reference to the Kubernetes Binding
	Binding *Object `json:"binding,omitempty"`
}

func (*ServiceAccountRole) DeepCopy

func (in *ServiceAccountRole) DeepCopy() *ServiceAccountRole

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountRole.

func (*ServiceAccountRole) DeepCopyInto

func (in *ServiceAccountRole) DeepCopyInto(out *ServiceAccountRole)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TLS

type TLS struct {
	// Enabled define if TLS Should be enabled. If is not set then default is taken from ArangoDeployment settings
	Enabled *bool `json:"enabled,omitempty"`

	// AltNames define TLS AltNames used when TLS on the ArangoDB is enabled
	AltNames []string `json:"altNames,omitempty"`
}

func (*TLS) DeepCopy

func (in *TLS) DeepCopy() *TLS

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TLS.

func (*TLS) DeepCopyInto

func (in *TLS) DeepCopyInto(out *TLS)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TLS) GetAltNames

func (a *TLS) GetAltNames() []string

func (*TLS) IsEnabled

func (a *TLS) IsEnabled() bool

Jump to

Keyboard shortcuts

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