client

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 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) Export added in v0.20.3

func (c *Client) Export(ctx context.Context, objectsFile, relationsFile 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

func (*Client) Save added in v0.20.2

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

type Counter added in v0.20.3

type Counter struct {
	ObjectTypes   int64
	Permissions   int64
	RelationTypes int64
	Objects       int64
	Relations     int64
}

func (*Counter) IncObjectTypes added in v0.20.3

func (c *Counter) IncObjectTypes()

func (*Counter) IncObjects added in v0.20.3

func (c *Counter) IncObjects()

func (*Counter) IncPermission added in v0.20.3

func (c *Counter) IncPermission()

func (*Counter) IncRelationTypes added in v0.20.3

func (c *Counter) IncRelationTypes()

func (*Counter) IncRelations added in v0.20.3

func (c *Counter) IncRelations()

func (*Counter) Reset added in v0.20.3

func (c *Counter) Reset()

func (*Counter) Summary added in v0.20.3

func (c *Counter) Summary(w io.Writer)

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