library

package
v1.10.3-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCertExpiry

func GetCertExpiry(hostname string, tlsConfig *tls.Config) (time.Time, error)

func GetCertIssuer

func GetCertIssuer(hostname string) (pkix.Name, error)

func GetConfigForTest

func GetConfigForTest(t *testing.T) (*rest.Config, error)

func GetTLSConfig

func GetTLSConfig(secret *v1.Secret) (tls.Config, bool)

func NewClientsConfigForTest

func NewClientsConfigForTest(t *testing.T) (kubernetes.Interface, dynamic.Interface)

func VerifyExpiry

func VerifyExpiry(hostname string, tlsConfig *tls.Config) (bool, error)

func VerifyHostname

func VerifyHostname(hostname string, tlsConfig *tls.Config) (bool, error)

func VerifyHostx509Cert

func VerifyHostx509Cert(secret *v1.Secret, hostname string) (bool, error)

func VerifySecretNotNull

func VerifySecretNotNull(secret *v1.Secret) (bool, error)

Types

type DynamicResourceLoader

type DynamicResourceLoader struct {
	KubeClient    kubernetes.Interface
	DynamicClient dynamic.Interface
	// contains filtered or unexported fields
}

func NewDynamicResourceLoader

func NewDynamicResourceLoader(context context.Context, t *testing.T) DynamicResourceLoader

func (DynamicResourceLoader) CreateFromFile

func (d DynamicResourceLoader) CreateFromFile(assetFunc func(name string) ([]byte, error), filename string)

func (DynamicResourceLoader) CreateTestingNS

func (d DynamicResourceLoader) CreateTestingNS(baseName string) (*v1.Namespace, error)

func (DynamicResourceLoader) DeleteFromFile

func (d DynamicResourceLoader) DeleteFromFile(assetFunc func(name string) ([]byte, error), filename string)

func (DynamicResourceLoader) DeleteTestingNS

func (d DynamicResourceLoader) DeleteTestingNS(baseName string) (bool, error)

Jump to

Keyboard shortcuts

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