Documentation
¶
Index ¶
- type Credentials
- func (c *Credentials) AWSConfig() *aws.Config
- func (c *Credentials) GetAccessKeyID() string
- func (c *Credentials) GetEndpoint() string
- func (c *Credentials) GetRegion() string
- func (c *Credentials) GetS3ForcePathStyle() bool
- func (c *Credentials) GetSecretAccessKey() string
- func (c *Credentials) GetSessionToken() string
- func (c *Credentials) WithAccessKeyID(id string) *Credentials
- func (c *Credentials) WithEndpoint(endpoint string) *Credentials
- func (c *Credentials) WithRegion(region string) *Credentials
- func (c *Credentials) WithS3ForcePathStyle(forcePathStyle bool) *Credentials
- func (c *Credentials) WithSecretAccessKey(key string) *Credentials
- func (c *Credentials) WithSessionToken(token string) *Credentials
- type CredentialsInterface
- type LocalRuntime
- type MockCredentialsInterface
- func (_m *MockCredentialsInterface) AWSConfig() *aws.Config
- func (_m *MockCredentialsInterface) EXPECT() *MockCredentialsInterface_Expecter
- func (_m *MockCredentialsInterface) GetAccessKeyID() string
- func (_m *MockCredentialsInterface) GetEndpoint() string
- func (_m *MockCredentialsInterface) GetRegion() string
- func (_m *MockCredentialsInterface) GetS3ForcePathStyle() bool
- func (_m *MockCredentialsInterface) GetSecretAccessKey() string
- func (_m *MockCredentialsInterface) GetSessionToken() string
- type MockCredentialsInterface_AWSConfig_Call
- func (_c *MockCredentialsInterface_AWSConfig_Call) Return(_a0 *aws.Config) *MockCredentialsInterface_AWSConfig_Call
- func (_c *MockCredentialsInterface_AWSConfig_Call) Run(run func()) *MockCredentialsInterface_AWSConfig_Call
- func (_c *MockCredentialsInterface_AWSConfig_Call) RunAndReturn(run func() *aws.Config) *MockCredentialsInterface_AWSConfig_Call
- type MockCredentialsInterface_Expecter
- func (_e *MockCredentialsInterface_Expecter) AWSConfig() *MockCredentialsInterface_AWSConfig_Call
- func (_e *MockCredentialsInterface_Expecter) GetAccessKeyID() *MockCredentialsInterface_GetAccessKeyID_Call
- func (_e *MockCredentialsInterface_Expecter) GetEndpoint() *MockCredentialsInterface_GetEndpoint_Call
- func (_e *MockCredentialsInterface_Expecter) GetRegion() *MockCredentialsInterface_GetRegion_Call
- func (_e *MockCredentialsInterface_Expecter) GetS3ForcePathStyle() *MockCredentialsInterface_GetS3ForcePathStyle_Call
- func (_e *MockCredentialsInterface_Expecter) GetSecretAccessKey() *MockCredentialsInterface_GetSecretAccessKey_Call
- func (_e *MockCredentialsInterface_Expecter) GetSessionToken() *MockCredentialsInterface_GetSessionToken_Call
- type MockCredentialsInterface_GetAccessKeyID_Call
- func (_c *MockCredentialsInterface_GetAccessKeyID_Call) Return(_a0 string) *MockCredentialsInterface_GetAccessKeyID_Call
- func (_c *MockCredentialsInterface_GetAccessKeyID_Call) Run(run func()) *MockCredentialsInterface_GetAccessKeyID_Call
- func (_c *MockCredentialsInterface_GetAccessKeyID_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetAccessKeyID_Call
- type MockCredentialsInterface_GetEndpoint_Call
- func (_c *MockCredentialsInterface_GetEndpoint_Call) Return(_a0 string) *MockCredentialsInterface_GetEndpoint_Call
- func (_c *MockCredentialsInterface_GetEndpoint_Call) Run(run func()) *MockCredentialsInterface_GetEndpoint_Call
- func (_c *MockCredentialsInterface_GetEndpoint_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetEndpoint_Call
- type MockCredentialsInterface_GetRegion_Call
- func (_c *MockCredentialsInterface_GetRegion_Call) Return(_a0 string) *MockCredentialsInterface_GetRegion_Call
- func (_c *MockCredentialsInterface_GetRegion_Call) Run(run func()) *MockCredentialsInterface_GetRegion_Call
- func (_c *MockCredentialsInterface_GetRegion_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetRegion_Call
- type MockCredentialsInterface_GetS3ForcePathStyle_Call
- func (_c *MockCredentialsInterface_GetS3ForcePathStyle_Call) Return(_a0 bool) *MockCredentialsInterface_GetS3ForcePathStyle_Call
- func (_c *MockCredentialsInterface_GetS3ForcePathStyle_Call) Run(run func()) *MockCredentialsInterface_GetS3ForcePathStyle_Call
- func (_c *MockCredentialsInterface_GetS3ForcePathStyle_Call) RunAndReturn(run func() bool) *MockCredentialsInterface_GetS3ForcePathStyle_Call
- type MockCredentialsInterface_GetSecretAccessKey_Call
- func (_c *MockCredentialsInterface_GetSecretAccessKey_Call) Return(_a0 string) *MockCredentialsInterface_GetSecretAccessKey_Call
- func (_c *MockCredentialsInterface_GetSecretAccessKey_Call) Run(run func()) *MockCredentialsInterface_GetSecretAccessKey_Call
- func (_c *MockCredentialsInterface_GetSecretAccessKey_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetSecretAccessKey_Call
- type MockCredentialsInterface_GetSessionToken_Call
- func (_c *MockCredentialsInterface_GetSessionToken_Call) Return(_a0 string) *MockCredentialsInterface_GetSessionToken_Call
- func (_c *MockCredentialsInterface_GetSessionToken_Call) Run(run func()) *MockCredentialsInterface_GetSessionToken_Call
- func (_c *MockCredentialsInterface_GetSessionToken_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetSessionToken_Call
- type MockRuntime
- type MockRuntime_Expecter
- type MockRuntime_Sync_Call
- type MocksyncManager
- type MocksyncManager_Expecter
- type MocksyncManager_SyncWithContext_Call
- func (_c *MocksyncManager_SyncWithContext_Call) Return(_a0 error) *MocksyncManager_SyncWithContext_Call
- func (_c *MocksyncManager_SyncWithContext_Call) Run(run func(ctx context.Context, src string, dest string)) *MocksyncManager_SyncWithContext_Call
- func (_c *MocksyncManager_SyncWithContext_Call) RunAndReturn(run func(context.Context, string, string) error) *MocksyncManager_SyncWithContext_Call
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials struct {
AccessKeyID string `yaml:"accessKeyId" jsonschema:"required"`
SecretAccessKey string `yaml:"secretAccessKey" jsonschema:"required"`
SessionToken string `yaml:"sessionToken,omitempty"`
Endpoint string `yaml:"endpoint,omitempty"`
Region string `yaml:"region,omitempty"`
S3ForcePathStyle bool `yaml:"s3ForcePathStyle,omitempty"`
}
func NewCredentials ¶
func NewCredentials(accessKeyID, secretAccessKey string) *Credentials
func NewCredentialsFromEnv ¶
func NewCredentialsFromEnv() *Credentials
Create new credentials from the standard AWS environment variables.
func (*Credentials) AWSConfig ¶
func (c *Credentials) AWSConfig() *aws.Config
func (*Credentials) GetAccessKeyID ¶
func (c *Credentials) GetAccessKeyID() string
func (*Credentials) GetEndpoint ¶
func (c *Credentials) GetEndpoint() string
func (*Credentials) GetRegion ¶
func (c *Credentials) GetRegion() string
func (*Credentials) GetS3ForcePathStyle ¶
func (c *Credentials) GetS3ForcePathStyle() bool
func (*Credentials) GetSecretAccessKey ¶
func (c *Credentials) GetSecretAccessKey() string
func (*Credentials) GetSessionToken ¶
func (c *Credentials) GetSessionToken() string
func (*Credentials) WithAccessKeyID ¶
func (c *Credentials) WithAccessKeyID(id string) *Credentials
func (*Credentials) WithEndpoint ¶
func (c *Credentials) WithEndpoint(endpoint string) *Credentials
func (*Credentials) WithRegion ¶
func (c *Credentials) WithRegion(region string) *Credentials
func (*Credentials) WithS3ForcePathStyle ¶
func (c *Credentials) WithS3ForcePathStyle(forcePathStyle bool) *Credentials
func (*Credentials) WithSecretAccessKey ¶
func (c *Credentials) WithSecretAccessKey(key string) *Credentials
func (*Credentials) WithSessionToken ¶
func (c *Credentials) WithSessionToken(token string) *Credentials
type CredentialsInterface ¶
type LocalRuntime ¶
type LocalRuntime struct {
// contains filtered or unexported fields
}
func NewLocalRuntime ¶
func NewLocalRuntime() *LocalRuntime
func (*LocalRuntime) Sync ¶
func (lr *LocalRuntime) Sync(ctx *contexts.Context, credentials CredentialsInterface, src string, dest string) (err error)
type MockCredentialsInterface ¶
MockCredentialsInterface is an autogenerated mock type for the CredentialsInterface type
func NewMockCredentialsInterface ¶
func NewMockCredentialsInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockCredentialsInterface
NewMockCredentialsInterface creates a new instance of MockCredentialsInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockCredentialsInterface) AWSConfig ¶
func (_m *MockCredentialsInterface) AWSConfig() *aws.Config
AWSConfig provides a mock function with no fields
func (*MockCredentialsInterface) EXPECT ¶
func (_m *MockCredentialsInterface) EXPECT() *MockCredentialsInterface_Expecter
func (*MockCredentialsInterface) GetAccessKeyID ¶
func (_m *MockCredentialsInterface) GetAccessKeyID() string
GetAccessKeyID provides a mock function with no fields
func (*MockCredentialsInterface) GetEndpoint ¶
func (_m *MockCredentialsInterface) GetEndpoint() string
GetEndpoint provides a mock function with no fields
func (*MockCredentialsInterface) GetRegion ¶
func (_m *MockCredentialsInterface) GetRegion() string
GetRegion provides a mock function with no fields
func (*MockCredentialsInterface) GetS3ForcePathStyle ¶
func (_m *MockCredentialsInterface) GetS3ForcePathStyle() bool
GetS3ForcePathStyle provides a mock function with no fields
func (*MockCredentialsInterface) GetSecretAccessKey ¶
func (_m *MockCredentialsInterface) GetSecretAccessKey() string
GetSecretAccessKey provides a mock function with no fields
func (*MockCredentialsInterface) GetSessionToken ¶
func (_m *MockCredentialsInterface) GetSessionToken() string
GetSessionToken provides a mock function with no fields
type MockCredentialsInterface_AWSConfig_Call ¶
MockCredentialsInterface_AWSConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AWSConfig'
func (*MockCredentialsInterface_AWSConfig_Call) Return ¶
func (_c *MockCredentialsInterface_AWSConfig_Call) Return(_a0 *aws.Config) *MockCredentialsInterface_AWSConfig_Call
func (*MockCredentialsInterface_AWSConfig_Call) Run ¶
func (_c *MockCredentialsInterface_AWSConfig_Call) Run(run func()) *MockCredentialsInterface_AWSConfig_Call
func (*MockCredentialsInterface_AWSConfig_Call) RunAndReturn ¶
func (_c *MockCredentialsInterface_AWSConfig_Call) RunAndReturn(run func() *aws.Config) *MockCredentialsInterface_AWSConfig_Call
type MockCredentialsInterface_Expecter ¶
type MockCredentialsInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCredentialsInterface_Expecter) AWSConfig ¶
func (_e *MockCredentialsInterface_Expecter) AWSConfig() *MockCredentialsInterface_AWSConfig_Call
AWSConfig is a helper method to define mock.On call
func (*MockCredentialsInterface_Expecter) GetAccessKeyID ¶
func (_e *MockCredentialsInterface_Expecter) GetAccessKeyID() *MockCredentialsInterface_GetAccessKeyID_Call
GetAccessKeyID is a helper method to define mock.On call
func (*MockCredentialsInterface_Expecter) GetEndpoint ¶
func (_e *MockCredentialsInterface_Expecter) GetEndpoint() *MockCredentialsInterface_GetEndpoint_Call
GetEndpoint is a helper method to define mock.On call
func (*MockCredentialsInterface_Expecter) GetRegion ¶
func (_e *MockCredentialsInterface_Expecter) GetRegion() *MockCredentialsInterface_GetRegion_Call
GetRegion is a helper method to define mock.On call
func (*MockCredentialsInterface_Expecter) GetS3ForcePathStyle ¶
func (_e *MockCredentialsInterface_Expecter) GetS3ForcePathStyle() *MockCredentialsInterface_GetS3ForcePathStyle_Call
GetS3ForcePathStyle is a helper method to define mock.On call
func (*MockCredentialsInterface_Expecter) GetSecretAccessKey ¶
func (_e *MockCredentialsInterface_Expecter) GetSecretAccessKey() *MockCredentialsInterface_GetSecretAccessKey_Call
GetSecretAccessKey is a helper method to define mock.On call
func (*MockCredentialsInterface_Expecter) GetSessionToken ¶
func (_e *MockCredentialsInterface_Expecter) GetSessionToken() *MockCredentialsInterface_GetSessionToken_Call
GetSessionToken is a helper method to define mock.On call
type MockCredentialsInterface_GetAccessKeyID_Call ¶
MockCredentialsInterface_GetAccessKeyID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAccessKeyID'
func (*MockCredentialsInterface_GetAccessKeyID_Call) Return ¶
func (_c *MockCredentialsInterface_GetAccessKeyID_Call) Return(_a0 string) *MockCredentialsInterface_GetAccessKeyID_Call
func (*MockCredentialsInterface_GetAccessKeyID_Call) Run ¶
func (_c *MockCredentialsInterface_GetAccessKeyID_Call) Run(run func()) *MockCredentialsInterface_GetAccessKeyID_Call
func (*MockCredentialsInterface_GetAccessKeyID_Call) RunAndReturn ¶
func (_c *MockCredentialsInterface_GetAccessKeyID_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetAccessKeyID_Call
type MockCredentialsInterface_GetEndpoint_Call ¶
MockCredentialsInterface_GetEndpoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEndpoint'
func (*MockCredentialsInterface_GetEndpoint_Call) Return ¶
func (_c *MockCredentialsInterface_GetEndpoint_Call) Return(_a0 string) *MockCredentialsInterface_GetEndpoint_Call
func (*MockCredentialsInterface_GetEndpoint_Call) Run ¶
func (_c *MockCredentialsInterface_GetEndpoint_Call) Run(run func()) *MockCredentialsInterface_GetEndpoint_Call
func (*MockCredentialsInterface_GetEndpoint_Call) RunAndReturn ¶
func (_c *MockCredentialsInterface_GetEndpoint_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetEndpoint_Call
type MockCredentialsInterface_GetRegion_Call ¶
MockCredentialsInterface_GetRegion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRegion'
func (*MockCredentialsInterface_GetRegion_Call) Return ¶
func (_c *MockCredentialsInterface_GetRegion_Call) Return(_a0 string) *MockCredentialsInterface_GetRegion_Call
func (*MockCredentialsInterface_GetRegion_Call) Run ¶
func (_c *MockCredentialsInterface_GetRegion_Call) Run(run func()) *MockCredentialsInterface_GetRegion_Call
func (*MockCredentialsInterface_GetRegion_Call) RunAndReturn ¶
func (_c *MockCredentialsInterface_GetRegion_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetRegion_Call
type MockCredentialsInterface_GetS3ForcePathStyle_Call ¶
MockCredentialsInterface_GetS3ForcePathStyle_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetS3ForcePathStyle'
func (*MockCredentialsInterface_GetS3ForcePathStyle_Call) Return ¶
func (_c *MockCredentialsInterface_GetS3ForcePathStyle_Call) Return(_a0 bool) *MockCredentialsInterface_GetS3ForcePathStyle_Call
func (*MockCredentialsInterface_GetS3ForcePathStyle_Call) Run ¶
func (_c *MockCredentialsInterface_GetS3ForcePathStyle_Call) Run(run func()) *MockCredentialsInterface_GetS3ForcePathStyle_Call
func (*MockCredentialsInterface_GetS3ForcePathStyle_Call) RunAndReturn ¶
func (_c *MockCredentialsInterface_GetS3ForcePathStyle_Call) RunAndReturn(run func() bool) *MockCredentialsInterface_GetS3ForcePathStyle_Call
type MockCredentialsInterface_GetSecretAccessKey_Call ¶
MockCredentialsInterface_GetSecretAccessKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSecretAccessKey'
func (*MockCredentialsInterface_GetSecretAccessKey_Call) Return ¶
func (_c *MockCredentialsInterface_GetSecretAccessKey_Call) Return(_a0 string) *MockCredentialsInterface_GetSecretAccessKey_Call
func (*MockCredentialsInterface_GetSecretAccessKey_Call) Run ¶
func (_c *MockCredentialsInterface_GetSecretAccessKey_Call) Run(run func()) *MockCredentialsInterface_GetSecretAccessKey_Call
func (*MockCredentialsInterface_GetSecretAccessKey_Call) RunAndReturn ¶
func (_c *MockCredentialsInterface_GetSecretAccessKey_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetSecretAccessKey_Call
type MockCredentialsInterface_GetSessionToken_Call ¶
MockCredentialsInterface_GetSessionToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSessionToken'
func (*MockCredentialsInterface_GetSessionToken_Call) Return ¶
func (_c *MockCredentialsInterface_GetSessionToken_Call) Return(_a0 string) *MockCredentialsInterface_GetSessionToken_Call
func (*MockCredentialsInterface_GetSessionToken_Call) Run ¶
func (_c *MockCredentialsInterface_GetSessionToken_Call) Run(run func()) *MockCredentialsInterface_GetSessionToken_Call
func (*MockCredentialsInterface_GetSessionToken_Call) RunAndReturn ¶
func (_c *MockCredentialsInterface_GetSessionToken_Call) RunAndReturn(run func() string) *MockCredentialsInterface_GetSessionToken_Call
type MockRuntime ¶
MockRuntime is an autogenerated mock type for the Runtime type
func NewMockRuntime ¶
func NewMockRuntime(t interface {
mock.TestingT
Cleanup(func())
}) *MockRuntime
NewMockRuntime creates a new instance of MockRuntime. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockRuntime) EXPECT ¶
func (_m *MockRuntime) EXPECT() *MockRuntime_Expecter
func (*MockRuntime) Sync ¶
func (_m *MockRuntime) Sync(ctx *contexts.Context, credentials CredentialsInterface, src string, dest string) error
Sync provides a mock function with given fields: ctx, credentials, src, dest
type MockRuntime_Expecter ¶
type MockRuntime_Expecter struct {
// contains filtered or unexported fields
}
func (*MockRuntime_Expecter) Sync ¶
func (_e *MockRuntime_Expecter) Sync(ctx interface{}, credentials interface{}, src interface{}, dest interface{}) *MockRuntime_Sync_Call
Sync is a helper method to define mock.On call
- ctx *contexts.Context
- credentials CredentialsInterface
- src string
- dest string
type MockRuntime_Sync_Call ¶
MockRuntime_Sync_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sync'
func (*MockRuntime_Sync_Call) Return ¶
func (_c *MockRuntime_Sync_Call) Return(_a0 error) *MockRuntime_Sync_Call
func (*MockRuntime_Sync_Call) Run ¶
func (_c *MockRuntime_Sync_Call) Run(run func(ctx *contexts.Context, credentials CredentialsInterface, src string, dest string)) *MockRuntime_Sync_Call
func (*MockRuntime_Sync_Call) RunAndReturn ¶
func (_c *MockRuntime_Sync_Call) RunAndReturn(run func(*contexts.Context, CredentialsInterface, string, string) error) *MockRuntime_Sync_Call
type MocksyncManager ¶
MocksyncManager is an autogenerated mock type for the syncManager type
func NewMocksyncManager ¶
func NewMocksyncManager(t interface {
mock.TestingT
Cleanup(func())
}) *MocksyncManager
NewMocksyncManager creates a new instance of MocksyncManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MocksyncManager) EXPECT ¶
func (_m *MocksyncManager) EXPECT() *MocksyncManager_Expecter
func (*MocksyncManager) SyncWithContext ¶
SyncWithContext provides a mock function with given fields: ctx, src, dest
type MocksyncManager_Expecter ¶
type MocksyncManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MocksyncManager_Expecter) SyncWithContext ¶
func (_e *MocksyncManager_Expecter) SyncWithContext(ctx interface{}, src interface{}, dest interface{}) *MocksyncManager_SyncWithContext_Call
SyncWithContext is a helper method to define mock.On call
- ctx context.Context
- src string
- dest string
type MocksyncManager_SyncWithContext_Call ¶
MocksyncManager_SyncWithContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SyncWithContext'
func (*MocksyncManager_SyncWithContext_Call) Return ¶
func (_c *MocksyncManager_SyncWithContext_Call) Return(_a0 error) *MocksyncManager_SyncWithContext_Call
func (*MocksyncManager_SyncWithContext_Call) Run ¶
func (_c *MocksyncManager_SyncWithContext_Call) Run(run func(ctx context.Context, src string, dest string)) *MocksyncManager_SyncWithContext_Call
func (*MocksyncManager_SyncWithContext_Call) RunAndReturn ¶
func (_c *MocksyncManager_SyncWithContext_Call) RunAndReturn(run func(context.Context, string, string) error) *MocksyncManager_SyncWithContext_Call