Documentation ¶
Overview ¶
auth control
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoAuthorizeError = errors.New("no authorize")
Functions ¶
This section is empty.
Types ¶
type AuthInterface ¶
type AuthorizeInterface ¶
type AuthorizeInterface interface { AuthorizeBatch(ctx context.Context, h http.Header, user meta.UserInfo, resources ...meta.ResourceAttribute) ( []types.Decision, error) AuthorizeAnyBatch(ctx context.Context, h http.Header, user meta.UserInfo, resources ...meta.ResourceAttribute) ( []types.Decision, error) ListAuthorizedResources(ctx context.Context, h http.Header, input meta.ListAuthorizedResourcesParam) ([]string, error) GetNoAuthSkipUrl(ctx context.Context, h http.Header, input *metadata.IamPermission) (string, error) RegisterResourceCreatorAction(ctx context.Context, h http.Header, input metadata.IamInstanceWithCreator) ( []metadata.IamCreatorActionPolicy, error) BatchRegisterResourceCreatorAction(ctx context.Context, h http.Header, input metadata.IamInstancesWithCreator) ( []metadata.IamCreatorActionPolicy, error) }
Click to show internal directories.
Click to hide internal directories.