sdk

package
v2.0.0-preview.1+incom... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2017 License: Apache-2.0, Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NowTime func() time.Time

NowTime is a value for getting the current time. This value can be overriden for testing mocking out current time.

View Source
var Sleep func(time.Duration)

Sleep is a value for sleeping for a duration. This value can be overriden for testing and mocking out sleep duration.

View Source
var SleepWithContext func(context.Context, time.Duration) error

SleepWithContext will wait for the timer duration to expire, or the context is canceled. Which ever happens first. If the context is canceled the Context's error will be returned.

This value can be overriden for testing and mocking out sleep duration.

Functions

func DefaultSleepWithContext

func DefaultSleepWithContext(ctx context.Context, dur time.Duration) error

DefaultSleepWithContext will wait for the timer duration to expire, or the context is canceled. Which ever happens first. If the context is canceled the Context's error will be returned.

Types

type Invalidator

type Invalidator interface {
	Invalidate()
}

Invalidator provides access to a type's invalidate method to make it invalidate it cache.

e.g aws.SafeCredentialsProvider's Invalidate method.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL