Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrUnexpectedStatusCode = errors.New("unexpected status code") )
Functions ¶
This section is empty.
Types ¶
type ASGReBalanceResponse ¶
type InstanceInfo ¶
type LifecycleResponse ¶
type LifecycleResponse struct {
State string `json:"state"`
}
type MetadataServiceConfig ¶
func DefaultConfig ¶
func DefaultConfig() *MetadataServiceConfig
type Service ¶
type Service interface { GetToken(ctx context.Context) (string, error) GetInstanceInfo(ctx context.Context, token string) (*InstanceInfo, error) GetASGReBalance(ctx context.Context, token string) (*ASGReBalanceResponse, error) GetSpotInterruption(ctx context.Context, token string) (*SpotInterruptionResponse, error) GetLifecycle(ctx context.Context, token string) (*LifecycleResponse, error) }
func NewService ¶
func NewService(cfg *MetadataServiceConfig) Service
Click to show internal directories.
Click to hide internal directories.