Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractProcfile ¶
func ExtractProcfile(pf procfile.Procfile, err error) empire.ImageRegistry
ExtractProcfile returns an empire.ImageRegistry implementation that writes a fake Docker pull to w, and extracts the given Procfile in yaml format when ExtractProcfile is called.
Types ¶
type IdentityProvider ¶
type IdentityProvider struct {
*saml.IdentityProvider
// contains filtered or unexported fields
}
IdentityProvider wraps a saml.IdentityProvider to serve it via an httptest.Server.
func NewIdentityProvider ¶
func NewIdentityProvider() *IdentityProvider
NewIdentityProvider returns a new saml.IdentityProvider that can be used for testing the SAML integration.
func (*IdentityProvider) AddServiceProvider ¶
func (idp *IdentityProvider) AddServiceProvider(url string) *saml.ServiceProvider
AddServiceProvider adds a service provider to this IDP.
func (*IdentityProvider) Close ¶
func (idp *IdentityProvider) Close()
Close closes the underlying httptest.Server serving this IdP.
type ImageRegistry ¶
type ImageRegistry struct {
// contains filtered or unexported fields
}
ImageRegistry is a fake implementation of the empire.ImageRegistry interface.
func (*ImageRegistry) ExtractProcfile ¶
func (r *ImageRegistry) ExtractProcfile(ctx context.Context, img image.Image, w *jsonmessage.Stream) ([]byte, error)
type Server ¶
Server wraps an Empire instance being served by the canonical server.Server http.Handler, for testing.