client

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 27 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ObjectsStr            = "objects"
	ObjectsFileName       = "objects.json"
	RelationsStr          = "relations"
	RelationsFileName     = "relations.json"
	ObjectTypesStr        = "object_types"
	ObjectTypesFileName   = "object_types.json"
	PermissionsStr        = "permissions"
	PermissionsFileName   = "permissions.json"
	RelationTypesStr      = "relation_types"
	RelationTypesFileName = "relation_types.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Writer2   dsw2.WriterClient
	Exporter2 dse2.ExporterClient
	Importer2 dsi2.ImporterClient
	Reader2   dsr2.ReaderClient
	Model     dsm3.ModelClient
	Reader    dsr3.ReaderClient
	Writer    dsw3.WriterClient
	Importer  dsi3.ImporterClient
	Exporter  dse3.ExporterClient
	UI        *clui.UI
	// contains filtered or unexported fields
}

func New

func New(conn grpc.ClientConnInterface, ui *clui.UI) (*Client, error)

func (*Client) Backup

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

func (*Client) DeleteManifest added in v0.30.0

func (c *Client) DeleteManifest(ctx context.Context) error

func (*Client) Export added in v0.20.3

func (c *Client) Export(ctx context.Context, objectsFile, relationsFile string) error

func (*Client) GetManifest added in v0.30.0

func (c *Client) GetManifest(ctx context.Context) (io.Reader, error)

func (*Client) Import

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

func (*Client) Restore

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

func (*Client) SetManifest added in v0.30.0

func (c *Client) SetManifest(ctx context.Context, r io.Reader) error

Jump to

Keyboard shortcuts

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