Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidConfig = errors.New("invalid config")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // Client for the directory reader service. Reader drs.ReaderClient // Client for the directory writer service. Writer dws.WriterClient // Client for the directory importer service. Importer dis.ImporterClient // Client for the directory exporter service. Exporter des.ExporterClient // Client for the directory model service. Model dms.ModelClient // contains filtered or unexported fields }
Client provides access to the Aserto Directory APIs.
func FromConnection ¶ added in v0.33.2
func FromConnection(conn *grpc.ClientConn) *Client
FromConnection returns a new Client using an existing connection.
type Config ¶
type Config struct { // Base configuration. If non-nil, this configuration is used for any client that doesn't have its own configuration. // If nil, only clients that have their own configuration will be created. *aserto.Config // Reader configuration. Reader *aserto.Config `json:"reader"` // Writer configuration. Writer *aserto.Config `json:"writer"` // Importer configuration. Importer *aserto.Config `json:"importer"` // Exporter configuration. Exporter *aserto.Config `json:"exporter"` // Model configuration. Model *aserto.Config `json:"model"` }
Config provides configuration for connecting to the Aserto Directory service.
Click to show internal directories.
Click to hide internal directories.