v1

package
v0.0.0-...-687f649 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 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
	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.

Jump to

Keyboard shortcuts

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