Documentation
¶
Overview ¶
Package handlers containers the HTTP Handlers for Local Metadata and Credentials
Index ¶
Constants ¶
const ( // CredentialExpirationTimeFormat is the time stamp format used in the Local Credentials Service HTTP response CredentialExpirationTimeFormat = time.RFC3339 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CredentialResponse ¶
type CredentialResponse struct { AccessKeyID string `json:"AccessKeyId"` Expiration string RoleArn string SecretAccessKey string Token string }
CredentialResponse is used to marshal the JSON response for the Credentials Service
type CredentialService ¶
type CredentialService struct {
// contains filtered or unexported fields
}
CredentialService vends credentials to containers
func NewCredentialService ¶
func NewCredentialService() (*CredentialService, error)
NewCredentialService returns a struct that handles credentials requests
func NewCredentialServiceWithClients ¶
func NewCredentialServiceWithClients(iamClient iamiface.IAMAPI, stsClient stsiface.STSAPI, currentSession *session.Session) *CredentialService
NewCredentialServiceWithClients returns a struct that handles credentials requests with the given clients
func (*CredentialService) SetupRoutes ¶
func (service *CredentialService) SetupRoutes(router *mux.Router)
SetupRoutes sets up the credentials paths in mux
type MetadataService ¶
type MetadataService struct {
// contains filtered or unexported fields
}
MetadataService vends docker metadata to containers
func NewMetadataService ¶
func NewMetadataService() (*MetadataService, error)
NewMetadataService returns a struct that handles metadata requests
func NewMetadataServiceWithClient ¶
func NewMetadataServiceWithClient(dockerClient docker.Client) (*MetadataService, error)
NewMetadataServiceWithClient returns a struct that handles metadata requests using the given Docker Client
func (*MetadataService) SetupV2Routes ¶
func (service *MetadataService) SetupV2Routes(router *mux.Router)
SetupV2Routes sets up the V2 Metadata routes
func (*MetadataService) SetupV3Routes ¶
func (service *MetadataService) SetupV3Routes(router *mux.Router)
SetupV3Routes sets up the V3 Metadata routes
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package functionaltests includes tests that make http requests to the handlers using net/http/test
|
Package functionaltests includes tests that make http requests to the handlers using net/http/test |