serverlessspark

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SourceKind string = "serverless-spark"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name     string `yaml:"name" validate:"required"`
	Kind     string `yaml:"kind" validate:"required"`
	Project  string `yaml:"project" validate:"required"`
	Location string `yaml:"location" validate:"required"`
}

func (Config) Initialize

func (r Config) Initialize(ctx context.Context, tracer trace.Tracer) (sources.Source, error)

func (Config) SourceConfigKind

func (r Config) SourceConfigKind() string

type Source

type Source struct {
	Name      string `yaml:"name"`
	Kind      string `yaml:"kind"`
	Project   string
	Location  string
	Client    *dataproc.BatchControllerClient
	OpsClient *longrunning.OperationsClient
}

func (*Source) Close

func (s *Source) Close() error

func (*Source) GetBatchControllerClient

func (s *Source) GetBatchControllerClient() *dataproc.BatchControllerClient

func (*Source) GetOperationsClient

func (s *Source) GetOperationsClient(ctx context.Context) (*longrunning.OperationsClient, error)

func (*Source) SourceKind

func (s *Source) SourceKind() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL