Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultAutogenValidity is the default validity of a self-signed // certificate. The value corresponds to 14 months // (14 months * 30 days * 24 hours). DefaultAutogenValidity = 14 * 30 * 24 * time.Hour )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApertureHarness ¶
type ApertureHarness struct { // ListenAddr is the address that the aperture service is listening on. ListenAddr string // TlsCertPath is the path to the TLS certificate that the aperture // service is using. TlsCertPath string // service is the instance of the aperture service that is running. Service *aperture.Aperture }
ApertureHarness is an integration testing harness for the aperture service.
func NewApertureHarness ¶ added in v0.2.2
func NewApertureHarness(t *testing.T, port int) ApertureHarness
NewApertureHarness creates a new instance of the aperture service. It returns a harness which includes useful values for testing.
func (*ApertureHarness) Start ¶ added in v0.2.2
func (h *ApertureHarness) Start(errChan chan error) error
Start starts the aperture service.
func (*ApertureHarness) Stop ¶ added in v0.2.2
func (h *ApertureHarness) Stop() error
Stop stops the aperture service.
type MatchRpcAsset ¶
MatchRpcAsset is a function that returns true if the given RPC asset is a match.
Click to show internal directories.
Click to hide internal directories.