v1

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 4 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

Jump to

Keyboard shortcuts

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