crypto

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateGenerator added in v0.6.0

type CertificateGenerator interface {
	GenerateIamAuthSelfSignCertKeyPair() ([]byte, []byte, error)
}

func NewCertificateGenerator added in v0.6.0

func NewCertificateGenerator() CertificateGenerator

type DefaultTlsValidator added in v0.6.0

type DefaultTlsValidator struct {
	// contains filtered or unexported fields
}

func (*DefaultTlsValidator) HasSelfSignedCert added in v0.6.0

func (tv *DefaultTlsValidator) HasSelfSignedCert() (bool, error)

HasSelfSignedCert determines whether the url is using self-signed certs or not

func (*DefaultTlsValidator) ValidateCert added in v0.6.0

func (tv *DefaultTlsValidator) ValidateCert(cert string) error

ValidateCert parses the cert, ensures that the cert format is valid and verifies that the cert is valid for the url

type KeyGenerator

type KeyGenerator interface {
	GenerateSSHKeyPair(privateKeyDir string, publicKeyDir string, privateKeyFileName string, publicKeyFileName string, clusterUsername string) (key []byte, err error)
}

func NewKeyGenerator

func NewKeyGenerator(writer filewriter.FileWriter) (KeyGenerator, error)

type TlsValidator added in v0.6.0

type TlsValidator interface {
	ValidateCert(cert string) error
	HasSelfSignedCert() (bool, error)
}

func NewTlsValidator added in v0.6.0

func NewTlsValidator(url string) TlsValidator

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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