Documentation ¶
Index ¶
Constants ¶
View Source
const FakeARNRole = "arn:aws:iam::0:role/RealRole"
A sentinel role used under test
Variables ¶
This section is empty.
Functions ¶
func GenerateSessionName ¶
Types ¶
type MetadataServer ¶
type MetadataServer struct {
// contains filtered or unexported fields
}
MetadataServer implements http.Handler, it can be passed to a real, or fake HTTP server for testing
func NewMetaDataServer ¶
func NewMetaDataServer(ctx context.Context, config types.MetadataServerConfiguration) (*MetadataServer, error)
NewMetaDataServer which can be used as an HTTP server's handler
func (*MetadataServer) ServeHTTP ¶
func (ms *MetadataServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.