func()

in secretcache/cacheItem.go [212:225]


func (ci *secretCacheItem) getWithHook() *secretsmanager.DescribeSecretOutput {
	var result interface{}
	if ci.config.Hook != nil {
		result = ci.config.Hook.Get(ci.data)
	} else {
		result = ci.data
	}

	if result == nil {
		return nil
	} else {
		return result.(*secretsmanager.DescribeSecretOutput)
	}
}