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 DialWithContext(ctx context.Context, host, port string, opts ...grpc.DialOption) error Close() DeepPing() error DeepPingWithContext(ctx context.Context) error CheckAuthentication(token, arn string) (iam_grpcapi.UserClaims, error) CheckAuthenticationWithContext(ctx context.Context, token, arn string) (iam_grpcapi.UserClaims, error) CheckAuthenticationByEndpoint(token, api, method, endpoint string) (iam_grpcapi.UserClaims, error) CheckAuthenticationByEndpointWithContext(ctx context.Context, token, api, method, endpoint string) (iam_grpcapi.UserClaims, 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) (bool, error) IsAuthorizedWithContext(ctx context.Context, userID, action string, resource *common.Origin) (bool, error) AddAuthorizationResource(resource common.Origin) error AddAuthorizationResourceWithContext(ctx context.Context, resource common.Origin) error RemoveAuthorizationResource(resource common.Origin) error RemoveAuthorizationResourceWithContext(ctx context.Context, resource common.Origin) error GetAuthorizationResourcesByType(resourceType string) (resources []common.Origin, err error) GetAuthorizationResourcesByTypeWithContext(ctx context.Context, resourceType string) (resources []common.Origin, err error) AddAuthorizationResourceRelation(resource common.Origin, parent common.Origin) error AddAuthorizationResourceRelationWithContext(ctx context.Context, resource common.Origin, parent common.Origin) error RemoveAuthorizationResourceRelation(resource common.Origin, parent common.Origin) error RemoveAuthorizationResourceRelationWithContext(ctx context.Context, resource common.Origin, parent common.Origin) error GetAuthorizationResourceRelations(resource common.Origin) (resources []common.Origin, err error) GetAuthorizationResourceRelationsWithContext(ctx context.Context, resource common.Origin) (resources []common.Origin, err error) AddUserPermission(userID, role string, resource common.Origin) error AddUserPermissionWithContext(ctx context.Context, userID, role string, resource common.Origin) error RemoveUserPermission(userID, role string, resource common.Origin) error RemoveUserPermissionWithContext(ctx context.Context, userID, role string, resource common.Origin) error }
func CreateClient ¶
func CreateClient() IAMClient
Click to show internal directories.
Click to hide internal directories.