Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APMZProxy ¶
type APMZProxy struct {
Printer format.Printer
Clients []apmz.TelemetryClient
}
APMZProxy will proxy calls to the APMZ client or print if running locally
type CommandServicer ¶
type CommandServicer interface {
GetMetadater() (Metadater, error)
GetAPMer() (APMer, error)
GetPrinter() format.Printer
GetKeys() []string
}
CommandServicer provides all functionality needed for command execution
type Event ¶
type Event struct {
Type string `json:"type,omitempty"`
Item apmz.Telemetry `json:"item,omitempty"`
}
Event is a typed batch event
func (*Event) UnmarshalJSON ¶
UnmarshalJSON takes json bytes and turns them into an event
type EventType ¶
type EventType string
EventType represents the enumeration of all the event types the Batch command understands
type Metadater ¶ added in v0.5.0
type Metadater interface {
GetInstance(ctx context.Context, middleware ...azmeta.MiddlewareFunc) (*azmeta.Instance, error)
GetAttestation(ctx context.Context, nonce string, middleware ...azmeta.MiddlewareFunc) (*azmeta.Attestation, error)
GetScheduledEvents(ctx context.Context, middleware ...azmeta.MiddlewareFunc) (*azmeta.ScheduledEvents, error)
AckScheduledEvents(ctx context.Context, acks azmeta.AckEvents, middleware ...azmeta.MiddlewareFunc) error
GetIdentityToken(ctx context.Context, tokenReq azmeta.ResourceAndIdentity, middleware ...azmeta.MiddlewareFunc) (*azmeta.IdentityToken, error)
}
Metadater abstracts the underlying implementation of the instance metadata service
type Registry ¶
type Registry struct {
APMerFactory func() (APMer, error)
PrinterFactory func() format.Printer
APIKeysFactory func() []string
MetadataFactory func() (Metadater, error)
}
Registry holds the factories and services needed for command execution
func (*Registry) GetKeys ¶ added in v0.5.0
GetKeys will return the api keys for application insights
func (*Registry) GetMetadater ¶ added in v0.5.0
GetMetadater returns an instance of an instance metadata service
func (*Registry) GetPrinter ¶
GetPrinter will return a printer for printing command output