Documentation ¶
Overview ¶
Package s3store is a generated GoMock package.
Index ¶
- Constants
- func BucketExists(ctx context.Context, s3cli s3iface.S3API, URI archiver.URI) error
- func Download(ctx context.Context, s3cli s3iface.S3API, URI archiver.URI, key string) ([]byte, error)
- func Encode(message proto.Message) ([]byte, error)
- func IsNotFoundError(err error) bool
- func KeyExists(ctx context.Context, s3cli s3iface.S3API, URI archiver.URI, key string) (bool, error)
- func NewHistoryArchiver(container *archiver.HistoryBootstrapContainer, config *config.S3Archiver) (archiver.HistoryArchiver, error)
- func NewVisibilityArchiver(container *archiver.VisibilityBootstrapContainer, config *config.S3Archiver) (archiver.VisibilityArchiver, error)
- func SerializeToken(token interface{}) ([]byte, error)
- func SoftValidateURI(URI archiver.URI) error
- func Upload(ctx context.Context, s3cli s3iface.S3API, URI archiver.URI, key string, ...) error
- type MockQueryParser
- type MockQueryParserMockRecorder
- type QueryParser
Constants ¶
const ( WorkflowTypeName = "WorkflowTypeName" WorkflowID = "WorkflowId" StartTime = "StartTime" CloseTime = "CloseTime" SearchPrecision = "SearchPrecision" )
All allowed fields for filtering
const ( PrecisionDay = "Day" PrecisionHour = "Hour" PrecisionMinute = "Minute" PrecisionSecond = "Second" )
Precision specific values
const (
// URIScheme is the scheme for the s3 implementation
URIScheme = "s3"
)
Variables ¶
This section is empty.
Functions ¶
func BucketExists ¶ added in v1.19.0
func IsNotFoundError ¶ added in v1.19.0
func NewHistoryArchiver ¶
func NewHistoryArchiver( container *archiver.HistoryBootstrapContainer, config *config.S3Archiver, ) (archiver.HistoryArchiver, error)
NewHistoryArchiver creates a new archiver.HistoryArchiver based on s3
func NewVisibilityArchiver ¶
func NewVisibilityArchiver( container *archiver.VisibilityBootstrapContainer, config *config.S3Archiver, ) (archiver.VisibilityArchiver, error)
NewVisibilityArchiver creates a new archiver.VisibilityArchiver based on s3
func SerializeToken ¶ added in v1.19.0
func SoftValidateURI ¶ added in v1.19.0
Only validates the scheme and buckets are passed
Types ¶
type MockQueryParser ¶
type MockQueryParser struct {
// contains filtered or unexported fields
}
MockQueryParser is a mock of QueryParser interface.
func NewMockQueryParser ¶
func NewMockQueryParser(ctrl *gomock.Controller) *MockQueryParser
NewMockQueryParser creates a new mock instance.
func (*MockQueryParser) EXPECT ¶
func (m *MockQueryParser) EXPECT() *MockQueryParserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQueryParser) Parse ¶
func (m *MockQueryParser) Parse(query string) (*parsedQuery, error)
Parse mocks base method.
type MockQueryParserMockRecorder ¶
type MockQueryParserMockRecorder struct {
// contains filtered or unexported fields
}
MockQueryParserMockRecorder is the mock recorder for MockQueryParser.
type QueryParser ¶
QueryParser parses a limited SQL where clause into a struct
func NewQueryParser ¶
func NewQueryParser() QueryParser
NewQueryParser creates a new query parser for filestore