config

package
v0.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 6 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 {
	ID, Name string
	Type     abstract.ProviderType
	Params   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
	CreatedAt         time.Time `db:"created_at"`
	Runtime           Runtime
	Src               Endpoint
	Dst               Endpoint
	RegularSnapshot   *abstract.RegularSnapshot `yaml:"regular_snapshot"`
	Transformation    string                    `yaml:"transformation"`
	DataObjects       *model.DataObjects        `yaml:"data_objects"`
	TypeSystemVersion int                       `yaml:"type_system_version"`
}

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