Documentation
¶
Index ¶
- Variables
- 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 Endpoint(address string, ready bool) discovery_v1.Endpoint
- func EndpointSlice(ns, name, serviceName string, endpoints []discovery_v1.Endpoint, ...) *discovery_v1.EndpointSlice
- func Endpoints(endpoints ...discovery_v1.Endpoint) []discovery_v1.Endpoint
- func IngressBackend(svc *core_v1.Service) *networking_v1.IngressBackend
- func PEMBytes(t *testing.T, cert *certyaml.Certificate) []byte
- func Port(name string, port int32) discovery_v1.EndpointPort
- func Ports(eps ...discovery_v1.EndpointPort) []discovery_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 EndpointSlice ¶ added in v1.31.0
func EndpointSlice(ns, name, serviceName string, endpoints []discovery_v1.Endpoint, ports []discovery_v1.EndpointPort) *discovery_v1.EndpointSlice
func Endpoints ¶ added in v1.10.0
func Endpoints(endpoints ...discovery_v1.Endpoint) []discovery_v1.Endpoint
func IngressBackend ¶ added in v1.14.0
func IngressBackend(svc *core_v1.Service) *networking_v1.IngressBackend
func Port ¶ added in v1.10.0
func Port(name string, port int32) discovery_v1.EndpointPort
func Ports ¶ added in v1.10.0
func Ports(eps ...discovery_v1.EndpointPort) []discovery_v1.EndpointPort
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.