Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Backup(ctx context.Context, file string) error
- func (c *Client) DeleteManifest(ctx context.Context) error
- func (c *Client) Export(ctx context.Context, objectsFile, relationsFile string) error
- func (c *Client) GetManifest(ctx context.Context) (io.Reader, error)
- func (c *Client) Import(ctx context.Context, files []string) error
- func (c *Client) Restore(ctx context.Context, file string) error
- func (c *Client) SetManifest(ctx context.Context, r io.Reader) error
- type Config
- type Counter
- type Item
Constants ¶
View Source
const ( ObjectsStr = "objects" ObjectsFileName = "objects.json" RelationsStr = "relations" RelationsFileName = "relations.json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Model dsm3.ModelClient Reader dsr3.ReaderClient Writer dsw3.WriterClient Importer dsi3.ImporterClient Exporter dse3.ExporterClient Assertion dsa3.AssertionClient // contains filtered or unexported fields }
func New ¶
func New(conn *grpc.ClientConn) *Client
type Config ¶
type Config struct { Host string `flag:"host" short:"H" default:"${directory_svc}" env:"TOPAZ_DIRECTORY_SVC" help:"directory service address"` APIKey string `flag:"api-key" short:"k" default:"${directory_key}" env:"TOPAZ_DIRECTORY_KEY" help:"directory API key"` Token string `flag:"token" default:"${directory_token}" env:"TOPAZ_DIRECTORY_TOKEN" help:"directory OAuth2.0 token" hidden:""` Insecure bool `flag:"insecure" short:"i" default:"${insecure}" env:"TOPAZ_INSECURE" help:"skip TLS verification"` TenantID string `flag:"tenant-id" help:"" default:"${tenant_id}" env:"ASERTO_TENANT_ID" ` Headers map[string]string `flag:"headers" env:"TOPAZ_DIRECTORY_HEADERS" help:"additional headers to send to the directory service"` }
Click to show internal directories.
Click to hide internal directories.