Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractProcfile ¶ added in v0.10.0
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 ¶ added in v0.12.0
type IdentityProvider struct { *saml.IdentityProvider // contains filtered or unexported fields }
IdentityProvider wraps a saml.IdentityProvider to serve it via an httptest.Server.
func NewIdentityProvider ¶ added in v0.12.0
func NewIdentityProvider() *IdentityProvider
NewIdentityProvider returns a new saml.IdentityProvider that can be used for testing the SAML integration.
func (*IdentityProvider) AddServiceProvider ¶ added in v0.12.0
func (idp *IdentityProvider) AddServiceProvider(url string) *saml.ServiceProvider
AddServiceProvider adds a service provider to this IDP.
func (*IdentityProvider) Close ¶ added in v0.12.0
func (idp *IdentityProvider) Close()
Close closes the underlying httptest.Server serving this IdP.
type ImageRegistry ¶ added in v0.13.0
type ImageRegistry struct {
// contains filtered or unexported fields
}
ImageRegistry is a fake implementation of the empire.ImageRegistry interface.
func (*ImageRegistry) ExtractProcfile ¶ added in v0.13.0
func (r *ImageRegistry) ExtractProcfile(ctx context.Context, img image.Image, w *jsonmessage.Stream) ([]byte, error)
type Server ¶ added in v0.11.0
Server wraps an Empire instance being served by the canonical server.Server http.Handler, for testing.
func NewServer ¶
NewServer builds a new empire.Empire instance and returns an httptest.Server running the Empire API.
The Server is unstarted so that you can perform additional configuration. Consumers should call Start() before makeing any requests.
func (*Server) Close ¶ added in v0.11.0
func (s *Server) Close()
Close closes the underlying httptest.Server.