Documentation ¶
Index ¶
- Constants
- Variables
- func TraceLevelToExplainModeV2(t authorizer.TraceLevel) types.ExplainModeV1
- type AuthorizerServer
- func (s *AuthorizerServer) Compile(ctx context.Context, req *authorizer.CompileRequest) (*authorizer.CompileResponse, error)
- func (s *AuthorizerServer) DecisionTree(ctx context.Context, req *authorizer.DecisionTreeRequest) (*authorizer.DecisionTreeResponse, error)
- func (s *AuthorizerServer) GetPolicy(ctx context.Context, req *authorizer.GetPolicyRequest) (*authorizer.GetPolicyResponse, error)
- func (s *AuthorizerServer) Is(ctx context.Context, req *authorizer.IsRequest) (*authorizer.IsResponse, error)
- func (s *AuthorizerServer) ListPolicies(ctx context.Context, req *authorizer.ListPoliciesRequest) (*authorizer.ListPoliciesResponse, error)
- func (s *AuthorizerServer) Query(ctx context.Context, req *authorizer.QueryRequest) (*authorizer.QueryResponse, error)
- type InfoServer
Constants ¶
View Source
const ( InputUser string = "user" InputIdentity string = "identity" InputPolicy string = "policy" InputResource string = "resource" )
Variables ¶
View Source
var ( // ErrMissingMetadata - metadata element missing ErrMissingMetadata = aerr.ErrInvalidArgument.Msg("missing metadata") // ErrMissingToken - token missing from metadata ErrMissingToken = aerr.ErrInvalidArgument.Msg("missing token") // ErrInvalidToken - token not valid ErrInvalidToken = aerr.ErrAuthenticationFailed.Msg("invalid token") )
Functions ¶
func TraceLevelToExplainModeV2 ¶
func TraceLevelToExplainModeV2(t authorizer.TraceLevel) types.ExplainModeV1
Types ¶
type AuthorizerServer ¶
type AuthorizerServer struct {
// contains filtered or unexported fields
}
func NewAuthorizerServer ¶
func NewAuthorizerServer( logger *zerolog.Logger, cfg *config.Common, runtimeResolver resolvers.RuntimeResolver, directoryResolver resolvers.DirectoryResolver) *AuthorizerServer
func (*AuthorizerServer) Compile ¶
func (s *AuthorizerServer) Compile(ctx context.Context, req *authorizer.CompileRequest) (*authorizer.CompileResponse, error)
func (*AuthorizerServer) DecisionTree ¶
func (s *AuthorizerServer) DecisionTree(ctx context.Context, req *authorizer.DecisionTreeRequest) (*authorizer.DecisionTreeResponse, error)
func (*AuthorizerServer) GetPolicy ¶ added in v0.0.7
func (s *AuthorizerServer) GetPolicy(ctx context.Context, req *authorizer.GetPolicyRequest) (*authorizer.GetPolicyResponse, error)
func (*AuthorizerServer) Is ¶
func (s *AuthorizerServer) Is(ctx context.Context, req *authorizer.IsRequest) (*authorizer.IsResponse, error)
Is decision eval function.
func (*AuthorizerServer) ListPolicies ¶ added in v0.0.7
func (s *AuthorizerServer) ListPolicies(ctx context.Context, req *authorizer.ListPoliciesRequest) (*authorizer.ListPoliciesResponse, error)
type InfoServer ¶
type InfoServer struct {
// contains filtered or unexported fields
}
InfoServer internal - returns basic system information
func NewInfoServer ¶
func NewInfoServer(logger *zerolog.Logger, cfg *config.Config, directoryResolver resolvers.DirectoryResolver) (*InfoServer, error)
NewInfoServer creates a new SystemServer instance
func (*InfoServer) Info ¶
func (s *InfoServer) Info(ctx context.Context, req *info.InfoRequest) (*info.InfoResponse, error)
Click to show internal directories.
Click to hide internal directories.