Documentation ¶
Index ¶
- Constants
- func Contains(list []string, s string) bool
- func GetMetaData(resource string) (string, error)
- func GetRegion() (string, error)
- func IsClusterNamespace(s string) bool
- func LogInterceptor() grpc.UnaryServerInterceptor
- func Remove(list []string, s string) []string
- func Retry(interval time.Duration, maxRetries int, f ConditionFunc) error
- type ARN
- type ConditionFunc
Constants ¶
View Source
const ( BinaryType = "binary" METADATA_URL = "http://100.100.100.200/latest/meta-data/" REGIONID_TAG = "region-id" RAM = "ram/" )
Variables ¶
This section is empty.
Functions ¶
func IsClusterNamespace ¶
func LogInterceptor ¶
func LogInterceptor() grpc.UnaryServerInterceptor
LogInterceptor returns a new unary server interceptors that performs request and response logging.
func Retry ¶
func Retry(interval time.Duration, maxRetries int, f ConditionFunc) error
Retry retries f every interval until after maxRetries. The interval won't be affected by how long f takes. For example, if interval is 3s, f takes 1s, another f will be called 2s later. However, if f takes longer than interval, it will be delayed.
Types ¶
type ConditionFunc ¶
Click to show internal directories.
Click to hide internal directories.