Documentation ¶
Index ¶
- Variables
- func Addresses(ips ...string) []core_v1.EndpointAddress
- func CASecret(t *testing.T, name string, credential *certyaml.Certificate) *core_v1.Secret
- func CRLSecret(t *testing.T, name string, credential *certyaml.CRL) *core_v1.Secret
- func Endpoints(ns, name string, subsets ...core_v1.EndpointSubset) *core_v1.Endpoints
- func IngressBackend(svc *core_v1.Service) *networking_v1.IngressBackend
- func PEMBytes(t *testing.T, cert *certyaml.Certificate) []byte
- func Port(name string, port int32) core_v1.EndpointPort
- func Ports(eps ...core_v1.EndpointPort) []core_v1.EndpointPort
- func TLSSecret(t *testing.T, name string, credential *certyaml.Certificate) *core_v1.Secret
Constants ¶
This section is empty.
Variables ¶
View Source
var CACertificate = certyaml.Certificate{
Subject: "CN=ca",
}
View Source
var CRL = certyaml.CRL{ Issuer: &CACertificate, }
View Source
var ClientCertificate = certyaml.Certificate{ Issuer: &CACertificate, Subject: "CN=client", }
View Source
var ServerCertificate = certyaml.Certificate{ Issuer: &CACertificate, Subject: "CN=www.example.com", SubjectAltNames: []string{"DNS:www.example.com"}, }
Functions ¶
func Addresses ¶ added in v1.10.0
func Addresses(ips ...string) []core_v1.EndpointAddress
func Endpoints ¶ added in v1.10.0
func Endpoints(ns, name string, subsets ...core_v1.EndpointSubset) *core_v1.Endpoints
func IngressBackend ¶ added in v1.14.0
func IngressBackend(svc *core_v1.Service) *networking_v1.IngressBackend
func Ports ¶ added in v1.10.0
func Ports(eps ...core_v1.EndpointPort) []core_v1.EndpointPort
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.