Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CertGenerator ¶
type CertGenerator interface { MakeClientCert(name string, groups []string, duration time.Duration) ([]byte, []byte, error) MakeServerCert(namespace, service string, duration time.Duration) ([]byte, []byte, error) }
CertGenerator is an interface for creating certs
type FetchCertGenerator ¶
type FetchCertGenerator struct {
Fetcher fetcher.CertFetcher
}
FetchCertGenerator fetches and generates certs
func (*FetchCertGenerator) MakeClientCert ¶
func (cg *FetchCertGenerator) MakeClientCert(name string, groups []string, duration time.Duration) ([]byte, []byte, error)
MakeClientCert generates a client cert
func (*FetchCertGenerator) MakeServerCert ¶
func (cg *FetchCertGenerator) MakeServerCert(namespace, service string, duration time.Duration) ([]byte, []byte, error)
MakeServerCert generates a server cert
Click to show internal directories.
Click to hide internal directories.