package
0.0.0-20190319231021-e6272b887b81
Repository: https://github.com/marun/kubernetes.git
Documentation: pkg.go.dev

# Functions

AssertCertificateHasClientAuthUsage is a utility function for kubeadm testing that asserts if a given certificate has the expected ExtKeyUsageClientAuth.
AssertCertificateHasCommonName is a utility function for kubeadm testing that asserts if a given certificate has the expected SubjectCommonName.
AssertCertificateHasDNSNames is a utility function for kubeadm testing that asserts if a given certificate has the expected DNSNames.
AssertCertificateHasIPAddresses is a utility function for kubeadm testing that asserts if a given certificate has the expected IPAddresses.
AssertCertificateHasOrganizations is a utility function for kubeadm testing that asserts if a given certificate has the expected Subject.Organization.
AssertCertificateHasServerAuthUsage is a utility function for kubeadm testing that asserts if a given certificate has the expected ExtKeyUsageServerAuth.
AssertCertificateIsCa is a utility function for kubeadm testing that asserts if a given certificate is a CA.
AssertCertificateIsSignedByCa is a utility function for kubeadm testing that asserts if a given certificate is signed by the expected CA.
CreateCACert creates a generic CA cert.
CreateTestCert makes a generic certificate with the given CA and alternative names.
GetSparseCertTestCases produces a series of cert configurations and their intended outcomes.
SetupCertificateAuthorithy is a utility function for kubeadm testing that creates a CertificateAuthorithy cert/key pair.
WritePKIFiles writes the given files out to the given directory.

# Structs

CertTestCase is a configuration of certificates and whether it's expected to work.

# Type aliases

PKIFiles are a list of files that should be created for a test case.