Documentation
¶
Index ¶
- Constants
- Variables
- func GetHTTPResps(t *testing.T) map[string]func(*http.Request) (*http.Response, error)
- func SetupHTTPMockClient(t *testing.T) *mock.MockhttpClient
- func ValidatePlugin(name string) error
- func ValidatePluginType(t string) error
- func WithConnectorsPath(path string) func(*Args)
- func WithDBPath(path string) func(*Args)
- func WithLogFormat(format string) func(*Args)
- func WithPipelineFile(file string) func(*Args)
- func WithProcessorsPath(path string) func(*Args)
- type Args
- type ConnectorInfo
- type Flags
- type PluginInfo
- type PluginRegistry
- type Releases
- type Validator
- type ValidatorService
Constants ¶
View Source
const ( KafkaPlugin = "kafka" GeneratorPlugin = "generator" S3Plugin = "s3" PostgresPlugin = "postgres" LogPlugin = "log" )
Variables ¶
View Source
var BuiltinConnectors = []string{ KafkaPlugin, GeneratorPlugin, S3Plugin, PostgresPlugin, LogPlugin, }
View Source
var HTTPClient httpClient = http.DefaultClient
Functions ¶
func GetHTTPResps ¶
func SetupHTTPMockClient ¶
func SetupHTTPMockClient(t *testing.T) *mock.MockhttpClient
func ValidatePlugin ¶
ValidatePlugin returns an error when the plugin name is not one of allowed Conduit built-in plugins or in one of the allowed GitHub organizations.
func ValidatePluginType ¶
func WithConnectorsPath ¶
func WithDBPath ¶
func WithLogFormat ¶
func WithPipelineFile ¶
func WithProcessorsPath ¶
Types ¶
type ConnectorInfo ¶
type PluginRegistry ¶ added in v0.0.13
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
func (*Validator) ValidateConnector ¶
func (*Validator) ValidateProcessor ¶ added in v0.0.13
func (v *Validator) ValidateProcessor(ctx context.Context, p *v1alpha.ConduitProcessor, reg PluginRegistry, fp *field.Path) *field.Error
type ValidatorService ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.