Documentation ¶
Index ¶
- Constants
- type Source
- func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk) error
- func (s *Source) Init(aCtx context.Context, name string, jobId, sourceId int64, verify bool, ...) error
- func (s *Source) JobID() int64
- func (s *Source) SourceID() int64
- func (s *Source) Type() sourcespb.SourceType
- func (s *Source) WithFilter(filter *common.Filter)
Constants ¶
View Source
const ( // These buffer sizes are mainly driven by our largest credential size, which is GCP @ ~2.25KB. // Having a peek size larger than that ensures that we have complete credential coverage in our chunks. BufferSize = 10 * 1024 // 10KB PeekSize = 3 * 1024 // 3KB )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
func (*Source) Init ¶
func (s *Source) Init(aCtx context.Context, name string, jobId, sourceId int64, verify bool, connection *anypb.Any, _ int) error
Init returns an initialized Filesystem source.
func (*Source) Type ¶
func (s *Source) Type() sourcespb.SourceType
Type returns the type of source. It is used for matching source types in configuration and job input.
func (*Source) WithFilter ¶ added in v3.26.0
Click to show internal directories.
Click to hide internal directories.