Documentation
¶
Index ¶
- type Client
- func (c *Client) Backup(ctx context.Context, file string) error
- func (c *Client) Export(ctx context.Context, objectsFile, relationsFile string) error
- func (c *Client) Import(ctx context.Context, files []string) error
- func (c *Client) Load(ctx context.Context, file string) error
- func (c *Client) Restore(ctx context.Context, file string) error
- func (c *Client) Save(ctx context.Context, file string) error
- type Counter
- type Loader
- type Manifest
- type ObjectRelation
- type Relation
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)
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()
type Manifest ¶
type Manifest map[string]ObjectRelation
type ObjectRelation ¶
Click to show internal directories.
Click to hide internal directories.