config

package
v0.0.0-rc17 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTransfer

func ParseTransfer(yaml []byte) (*model.Transfer, error)

func TransferFromYaml

func TransferFromYaml(params *string) (*model.Transfer, error)

Types

type Endpoint

type Endpoint struct {
	Type   abstract.ProviderType
	Params any
}

func (Endpoint) RawParams

func (e Endpoint) RawParams() string

type Runtime

type Runtime struct {
	Type   string
	Params interface{}
}

type TransferYamlView

type TransferYamlView struct {
	ID                string
	TransferName      string
	Description       string
	Labels            string
	Status            model.TransferStatus
	Type              abstract.TransferType
	FolderID          string
	CloudID           string
	Src               Endpoint
	Dst               Endpoint
	RegularSnapshot   *abstract.RegularSnapshot `yaml:"regular_snapshot"`
	Transformation    *transformer.Transformers `yaml:"transformation"`
	DataObjects       *model.DataObjects        `yaml:"data_objects"`
	TypeSystemVersion int                       `yaml:"type_system_version"`
}

func NewYamlView

func NewYamlView(tr *model.Transfer) *TransferYamlView

func ParseTransferYaml

func ParseTransferYaml(rawData []byte) (*TransferYamlView, error)

type UploadTables

type UploadTables struct {
	Tables []abstract.TableDescription
}

func ParseTablesYaml

func ParseTablesYaml(rawData []byte) (*UploadTables, error)

func TablesFromYaml

func TablesFromYaml(tablesParams *string) (*UploadTables, error)

Jump to

Keyboard shortcuts

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