Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type MetadataService
- func (service *MetadataService) Endpoints() map[string]map[string]http.HandlerFunc
- func (s *MetadataService) GetAmiId(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetAmiLaunchIndex(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetAmiManifestPath(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetAvailabilityZone(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetHostName(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetIAM(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetIndex(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetInstanceAction(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetInstanceId(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetInstanceType(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetLocalHostName(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetLocalIpv4(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetMac(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetMetadataIndex(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetProfile(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetReservationId(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetSecurityCredentialDetails(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetSecurityCredentials(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetSecurityGroups(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) GetUserData(w http.ResponseWriter, r *http.Request)
- func (s *MetadataService) Middleware(h http.Handler) http.Handler
- func (s *MetadataService) Prefix() string
- type MetadataValues
- type SecurityCredentials
Constants ¶
View Source
const Version = "0.4.1"
The main version number that is being run at the moment.
View Source
const VersionPrerelease = ""
A pre-release marker for the version. If this is "" (empty string) then it means that it is a final release. Otherwise, this is a pre-release such as "dev" (in development), "beta", "rc1", etc.
Variables ¶
View Source
var GitCommit string
The git commit that was compiled. This will be filled in by the compiler.
Functions ¶
This section is empty.
Types ¶
type MetadataService ¶
type MetadataService struct {
// contains filtered or unexported fields
}
func NewMetadataService ¶
func NewMetadataService(cfg *Config) *MetadataService
func (*MetadataService) Endpoints ¶
func (service *MetadataService) Endpoints() map[string]map[string]http.HandlerFunc
Endpoints is a listing of all endpoints available in the MetadataService.
func (*MetadataService) GetAmiId ¶
func (s *MetadataService) GetAmiId(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetAmiLaunchIndex ¶
func (s *MetadataService) GetAmiLaunchIndex(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetAmiManifestPath ¶
func (s *MetadataService) GetAmiManifestPath(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetAvailabilityZone ¶
func (s *MetadataService) GetAvailabilityZone(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetHostName ¶
func (s *MetadataService) GetHostName(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetIAM ¶
func (s *MetadataService) GetIAM(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetIndex ¶
func (s *MetadataService) GetIndex(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetInstanceAction ¶
func (s *MetadataService) GetInstanceAction(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetInstanceId ¶
func (s *MetadataService) GetInstanceId(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetInstanceType ¶
func (s *MetadataService) GetInstanceType(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetLocalHostName ¶
func (s *MetadataService) GetLocalHostName(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetLocalIpv4 ¶
func (s *MetadataService) GetLocalIpv4(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetMac ¶
func (s *MetadataService) GetMac(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetMetadataIndex ¶
func (s *MetadataService) GetMetadataIndex(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetProfile ¶
func (s *MetadataService) GetProfile(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetReservationId ¶
func (s *MetadataService) GetReservationId(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetSecurityCredentialDetails ¶
func (s *MetadataService) GetSecurityCredentialDetails(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetSecurityCredentials ¶
func (s *MetadataService) GetSecurityCredentials(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetSecurityGroups ¶
func (s *MetadataService) GetSecurityGroups(w http.ResponseWriter, r *http.Request)
func (*MetadataService) GetUserData ¶
func (s *MetadataService) GetUserData(w http.ResponseWriter, r *http.Request)
func (*MetadataService) Middleware ¶
func (s *MetadataService) Middleware(h http.Handler) http.Handler
func (*MetadataService) Prefix ¶
func (s *MetadataService) Prefix() string
type MetadataValues ¶
type MetadataValues struct { AmiId string `json:"ami-id"` AmiLaunchIndex string `json:"ami-launch-index"` AmiManifestPath string `json:"ami-manifest-path"` AvailabilityZone string `json:"availability-zone"` Hostname string `json:"hostname"` InstanceAction string `json:"instance-action"` InstanceId string `json:"instance-id"` InstanceType string `json:"instance-type"` LocalHostName string `json:"local-hostname"` LocalIpv4 string `json:"local-ipv4"` Mac string `json:"mac"` Profile string `json:"profile"` ReservationId string `json:"reservation-id"` User string `json:"User"` SecurityGroups []string `json:"security-groups"` SecurityCredentials SecurityCredentials `json:"security-credentials"` }
Click to show internal directories.
Click to hide internal directories.