Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAMClient ¶
type IAMClient interface { Dial(host, port string, opts ...grpc.DialOption) error Close() DeepPing() error DeepPingWithContext(ctx context.Context) error CheckAuthentication(token, method string) (iam_grpcapi.User, error) CheckAuthenticationWithContext(ctx context.Context, token, method string) (iam_grpcapi.User, error) GetNodesByUser(userID string) (nodeIDs []string, err error) GetNodesByUserWithContext(ctx context.Context, userID string) (nodeIDs []string, err error) GetEventRecords(since int, limit *int32) ([]eventsource.Record, error) GetEventRecordsWithContext(ctx context.Context, since int, limit *int32) ([]eventsource.Record, error) IsAuthorized(userID, action string, resource *common.Origin) error IsAuthorizedWithContext(ctx context.Context, userID, action string, resource *common.Origin) error AddResource(resource common.Origin, parent *common.Origin) error AddResourceWithContext(ctx context.Context, resource common.Origin, parent *common.Origin) error RemoveResource(resource common.Origin) error RemoveResourceWithContext(ctx context.Context, resource common.Origin) error AddUserPermission(userID, action string, resource common.Origin) error AddUserPermissionWithContext(ctx context.Context, userID, action string, resource common.Origin) error RemoveUserPermission(userID, action string, resource common.Origin) error RemoveUserPermissionWithContext(ctx context.Context, userID, action string, resource common.Origin) error }
func CreateClient ¶
func CreateClient() IAMClient
Click to show internal directories.
Click to hide internal directories.