client

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Writer   dsw.WriterClient
	Exporter dse.ExporterClient
	Importer dsi.ImporterClient
	Reader   dsr.ReaderClient
	UI       *clui.UI
	// contains filtered or unexported fields
}

func New

func New(conn *asertogoClient.Connection, ui *clui.UI) (*Client, error)

func (*Client) Backup

func (c *Client) Backup(ctx context.Context, file string) error

func (*Client) Import

func (c *Client) Import(ctx context.Context, files []string) error

func (*Client) Load

func (c *Client) Load(ctx context.Context, file string) error

func (*Client) Restore

func (c *Client) Restore(ctx context.Context, file string) error

type Loader

type Loader struct {
	Objects   []*dsc.Object   `json:"objects"`
	Relations []*dsc.Relation `json:"relations"`
}

type Manifest

type Manifest map[string]ObjectRelation

type ObjectRelation

type ObjectRelation map[string]Relation

type Relation

type Relation map[string][]string

Jump to

Keyboard shortcuts

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