Documentation
¶
Overview ¶
Package authz is a generated GoMock package.
Index ¶
- func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer)
- type AuthorizationClient
- type AuthorizationServer
- type AuthorizationServerMock
- func (m *AuthorizationServerMock) CreatePolicy(ctx context.Context, req *CreatePolicyReq) (*CreatePolicyResp, error)
- func (m *AuthorizationServerMock) DeletePolicy(ctx context.Context, req *DeletePolicyReq) (*DeletePolicyResp, error)
- func (m *AuthorizationServerMock) FilterAuthorizedPairs(ctx context.Context, req *FilterAuthorizedPairsReq) (*FilterAuthorizedPairsResp, error)
- func (m *AuthorizationServerMock) FilterAuthorizedProjects(ctx context.Context, req *FilterAuthorizedPairsReq) (*FilterAuthorizedProjectsResp, error)
- func (m *AuthorizationServerMock) GetVersion(ctx context.Context, req *version.VersionInfoRequest) (*version.VersionInfo, error)
- func (m *AuthorizationServerMock) IsAuthorized(ctx context.Context, req *IsAuthorizedReq) (*IsAuthorizedResp, error)
- func (m *AuthorizationServerMock) ListPolicies(ctx context.Context, req *ListPoliciesReq) (*ListPoliciesResp, error)
- func (m *AuthorizationServerMock) PurgeSubjectFromPolicies(ctx context.Context, req *PurgeSubjectFromPoliciesReq) (*PurgeSubjectFromPoliciesResp, error)
- func (m *AuthorizationServerMock) Reset()
- type CreatePolicyReq
- func (*CreatePolicyReq) Descriptor() ([]byte, []int)
- func (m *CreatePolicyReq) GetAction() string
- func (m *CreatePolicyReq) GetResource() string
- func (m *CreatePolicyReq) GetSubjects() []string
- func (*CreatePolicyReq) ProtoMessage()
- func (m *CreatePolicyReq) Reset()
- func (m *CreatePolicyReq) String() string
- func (m *CreatePolicyReq) Validate() error
- func (m *CreatePolicyReq) XXX_DiscardUnknown()
- func (m *CreatePolicyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreatePolicyReq) XXX_Merge(src proto.Message)
- func (m *CreatePolicyReq) XXX_Size() int
- func (m *CreatePolicyReq) XXX_Unmarshal(b []byte) error
- type CreatePolicyReqValidationError
- func (e CreatePolicyReqValidationError) Cause() error
- func (e CreatePolicyReqValidationError) Error() string
- func (e CreatePolicyReqValidationError) ErrorName() string
- func (e CreatePolicyReqValidationError) Field() string
- func (e CreatePolicyReqValidationError) Key() bool
- func (e CreatePolicyReqValidationError) Reason() string
- type CreatePolicyResp
- func (*CreatePolicyResp) Descriptor() ([]byte, []int)
- func (m *CreatePolicyResp) GetPolicy() *Policy
- func (*CreatePolicyResp) ProtoMessage()
- func (m *CreatePolicyResp) Reset()
- func (m *CreatePolicyResp) String() string
- func (m *CreatePolicyResp) Validate() error
- func (m *CreatePolicyResp) XXX_DiscardUnknown()
- func (m *CreatePolicyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreatePolicyResp) XXX_Merge(src proto.Message)
- func (m *CreatePolicyResp) XXX_Size() int
- func (m *CreatePolicyResp) XXX_Unmarshal(b []byte) error
- type CreatePolicyRespValidationError
- func (e CreatePolicyRespValidationError) Cause() error
- func (e CreatePolicyRespValidationError) Error() string
- func (e CreatePolicyRespValidationError) ErrorName() string
- func (e CreatePolicyRespValidationError) Field() string
- func (e CreatePolicyRespValidationError) Key() bool
- func (e CreatePolicyRespValidationError) Reason() string
- type DeletePolicyReq
- func (*DeletePolicyReq) Descriptor() ([]byte, []int)
- func (m *DeletePolicyReq) GetId() string
- func (*DeletePolicyReq) ProtoMessage()
- func (m *DeletePolicyReq) Reset()
- func (m *DeletePolicyReq) String() string
- func (m *DeletePolicyReq) Validate() error
- func (m *DeletePolicyReq) XXX_DiscardUnknown()
- func (m *DeletePolicyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeletePolicyReq) XXX_Merge(src proto.Message)
- func (m *DeletePolicyReq) XXX_Size() int
- func (m *DeletePolicyReq) XXX_Unmarshal(b []byte) error
- type DeletePolicyReqValidationError
- func (e DeletePolicyReqValidationError) Cause() error
- func (e DeletePolicyReqValidationError) Error() string
- func (e DeletePolicyReqValidationError) ErrorName() string
- func (e DeletePolicyReqValidationError) Field() string
- func (e DeletePolicyReqValidationError) Key() bool
- func (e DeletePolicyReqValidationError) Reason() string
- type DeletePolicyResp
- func (*DeletePolicyResp) Descriptor() ([]byte, []int)
- func (m *DeletePolicyResp) GetPolicy() *Policy
- func (*DeletePolicyResp) ProtoMessage()
- func (m *DeletePolicyResp) Reset()
- func (m *DeletePolicyResp) String() string
- func (m *DeletePolicyResp) Validate() error
- func (m *DeletePolicyResp) XXX_DiscardUnknown()
- func (m *DeletePolicyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeletePolicyResp) XXX_Merge(src proto.Message)
- func (m *DeletePolicyResp) XXX_Size() int
- func (m *DeletePolicyResp) XXX_Unmarshal(b []byte) error
- type DeletePolicyRespValidationError
- func (e DeletePolicyRespValidationError) Cause() error
- func (e DeletePolicyRespValidationError) Error() string
- func (e DeletePolicyRespValidationError) ErrorName() string
- func (e DeletePolicyRespValidationError) Field() string
- func (e DeletePolicyRespValidationError) Key() bool
- func (e DeletePolicyRespValidationError) Reason() string
- type FilterAuthorizedPairsReq
- func (*FilterAuthorizedPairsReq) Descriptor() ([]byte, []int)
- func (m *FilterAuthorizedPairsReq) GetPairs() []*Pair
- func (m *FilterAuthorizedPairsReq) GetSubjects() []string
- func (*FilterAuthorizedPairsReq) ProtoMessage()
- func (m *FilterAuthorizedPairsReq) Reset()
- func (m *FilterAuthorizedPairsReq) String() string
- func (m *FilterAuthorizedPairsReq) Validate() error
- func (m *FilterAuthorizedPairsReq) XXX_DiscardUnknown()
- func (m *FilterAuthorizedPairsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FilterAuthorizedPairsReq) XXX_Merge(src proto.Message)
- func (m *FilterAuthorizedPairsReq) XXX_Size() int
- func (m *FilterAuthorizedPairsReq) XXX_Unmarshal(b []byte) error
- type FilterAuthorizedPairsReqValidationError
- func (e FilterAuthorizedPairsReqValidationError) Cause() error
- func (e FilterAuthorizedPairsReqValidationError) Error() string
- func (e FilterAuthorizedPairsReqValidationError) ErrorName() string
- func (e FilterAuthorizedPairsReqValidationError) Field() string
- func (e FilterAuthorizedPairsReqValidationError) Key() bool
- func (e FilterAuthorizedPairsReqValidationError) Reason() string
- type FilterAuthorizedPairsResp
- func (*FilterAuthorizedPairsResp) Descriptor() ([]byte, []int)
- func (m *FilterAuthorizedPairsResp) GetPairs() []*Pair
- func (*FilterAuthorizedPairsResp) ProtoMessage()
- func (m *FilterAuthorizedPairsResp) Reset()
- func (m *FilterAuthorizedPairsResp) String() string
- func (m *FilterAuthorizedPairsResp) Validate() error
- func (m *FilterAuthorizedPairsResp) XXX_DiscardUnknown()
- func (m *FilterAuthorizedPairsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FilterAuthorizedPairsResp) XXX_Merge(src proto.Message)
- func (m *FilterAuthorizedPairsResp) XXX_Size() int
- func (m *FilterAuthorizedPairsResp) XXX_Unmarshal(b []byte) error
- type FilterAuthorizedPairsRespValidationError
- func (e FilterAuthorizedPairsRespValidationError) Cause() error
- func (e FilterAuthorizedPairsRespValidationError) Error() string
- func (e FilterAuthorizedPairsRespValidationError) ErrorName() string
- func (e FilterAuthorizedPairsRespValidationError) Field() string
- func (e FilterAuthorizedPairsRespValidationError) Key() bool
- func (e FilterAuthorizedPairsRespValidationError) Reason() string
- type FilterAuthorizedProjectsResp
- func (*FilterAuthorizedProjectsResp) Descriptor() ([]byte, []int)
- func (m *FilterAuthorizedProjectsResp) GetProjects() []string
- func (*FilterAuthorizedProjectsResp) ProtoMessage()
- func (m *FilterAuthorizedProjectsResp) Reset()
- func (m *FilterAuthorizedProjectsResp) String() string
- func (m *FilterAuthorizedProjectsResp) Validate() error
- func (m *FilterAuthorizedProjectsResp) XXX_DiscardUnknown()
- func (m *FilterAuthorizedProjectsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FilterAuthorizedProjectsResp) XXX_Merge(src proto.Message)
- func (m *FilterAuthorizedProjectsResp) XXX_Size() int
- func (m *FilterAuthorizedProjectsResp) XXX_Unmarshal(b []byte) error
- type FilterAuthorizedProjectsRespValidationError
- func (e FilterAuthorizedProjectsRespValidationError) Cause() error
- func (e FilterAuthorizedProjectsRespValidationError) Error() string
- func (e FilterAuthorizedProjectsRespValidationError) ErrorName() string
- func (e FilterAuthorizedProjectsRespValidationError) Field() string
- func (e FilterAuthorizedProjectsRespValidationError) Key() bool
- func (e FilterAuthorizedProjectsRespValidationError) Reason() string
- type GetVersionReq
- func (*GetVersionReq) Descriptor() ([]byte, []int)
- func (*GetVersionReq) ProtoMessage()
- func (m *GetVersionReq) Reset()
- func (m *GetVersionReq) String() string
- func (m *GetVersionReq) Validate() error
- func (m *GetVersionReq) XXX_DiscardUnknown()
- func (m *GetVersionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GetVersionReq) XXX_Merge(src proto.Message)
- func (m *GetVersionReq) XXX_Size() int
- func (m *GetVersionReq) XXX_Unmarshal(b []byte) error
- type GetVersionReqValidationError
- func (e GetVersionReqValidationError) Cause() error
- func (e GetVersionReqValidationError) Error() string
- func (e GetVersionReqValidationError) ErrorName() string
- func (e GetVersionReqValidationError) Field() string
- func (e GetVersionReqValidationError) Key() bool
- func (e GetVersionReqValidationError) Reason() string
- type IsAuthorizedReq
- func (*IsAuthorizedReq) Descriptor() ([]byte, []int)
- func (m *IsAuthorizedReq) GetAction() string
- func (m *IsAuthorizedReq) GetResource() string
- func (m *IsAuthorizedReq) GetSubjects() []string
- func (*IsAuthorizedReq) ProtoMessage()
- func (m *IsAuthorizedReq) Reset()
- func (m *IsAuthorizedReq) String() string
- func (m *IsAuthorizedReq) Validate() error
- func (m *IsAuthorizedReq) XXX_DiscardUnknown()
- func (m *IsAuthorizedReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IsAuthorizedReq) XXX_Merge(src proto.Message)
- func (m *IsAuthorizedReq) XXX_Size() int
- func (m *IsAuthorizedReq) XXX_Unmarshal(b []byte) error
- type IsAuthorizedReqValidationError
- func (e IsAuthorizedReqValidationError) Cause() error
- func (e IsAuthorizedReqValidationError) Error() string
- func (e IsAuthorizedReqValidationError) ErrorName() string
- func (e IsAuthorizedReqValidationError) Field() string
- func (e IsAuthorizedReqValidationError) Key() bool
- func (e IsAuthorizedReqValidationError) Reason() string
- type IsAuthorizedResp
- func (*IsAuthorizedResp) Descriptor() ([]byte, []int)
- func (m *IsAuthorizedResp) GetAuthorized() bool
- func (*IsAuthorizedResp) ProtoMessage()
- func (m *IsAuthorizedResp) Reset()
- func (m *IsAuthorizedResp) String() string
- func (m *IsAuthorizedResp) Validate() error
- func (m *IsAuthorizedResp) XXX_DiscardUnknown()
- func (m *IsAuthorizedResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *IsAuthorizedResp) XXX_Merge(src proto.Message)
- func (m *IsAuthorizedResp) XXX_Size() int
- func (m *IsAuthorizedResp) XXX_Unmarshal(b []byte) error
- type IsAuthorizedRespValidationError
- func (e IsAuthorizedRespValidationError) Cause() error
- func (e IsAuthorizedRespValidationError) Error() string
- func (e IsAuthorizedRespValidationError) ErrorName() string
- func (e IsAuthorizedRespValidationError) Field() string
- func (e IsAuthorizedRespValidationError) Key() bool
- func (e IsAuthorizedRespValidationError) Reason() string
- type ListPoliciesReq
- func (*ListPoliciesReq) Descriptor() ([]byte, []int)
- func (*ListPoliciesReq) ProtoMessage()
- func (m *ListPoliciesReq) Reset()
- func (m *ListPoliciesReq) String() string
- func (m *ListPoliciesReq) Validate() error
- func (m *ListPoliciesReq) XXX_DiscardUnknown()
- func (m *ListPoliciesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListPoliciesReq) XXX_Merge(src proto.Message)
- func (m *ListPoliciesReq) XXX_Size() int
- func (m *ListPoliciesReq) XXX_Unmarshal(b []byte) error
- type ListPoliciesReqValidationError
- func (e ListPoliciesReqValidationError) Cause() error
- func (e ListPoliciesReqValidationError) Error() string
- func (e ListPoliciesReqValidationError) ErrorName() string
- func (e ListPoliciesReqValidationError) Field() string
- func (e ListPoliciesReqValidationError) Key() bool
- func (e ListPoliciesReqValidationError) Reason() string
- type ListPoliciesResp
- func (*ListPoliciesResp) Descriptor() ([]byte, []int)
- func (m *ListPoliciesResp) GetPolicies() []*Policy
- func (*ListPoliciesResp) ProtoMessage()
- func (m *ListPoliciesResp) Reset()
- func (m *ListPoliciesResp) String() string
- func (m *ListPoliciesResp) Validate() error
- func (m *ListPoliciesResp) XXX_DiscardUnknown()
- func (m *ListPoliciesResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListPoliciesResp) XXX_Merge(src proto.Message)
- func (m *ListPoliciesResp) XXX_Size() int
- func (m *ListPoliciesResp) XXX_Unmarshal(b []byte) error
- type ListPoliciesRespValidationError
- func (e ListPoliciesRespValidationError) Cause() error
- func (e ListPoliciesRespValidationError) Error() string
- func (e ListPoliciesRespValidationError) ErrorName() string
- func (e ListPoliciesRespValidationError) Field() string
- func (e ListPoliciesRespValidationError) Key() bool
- func (e ListPoliciesRespValidationError) Reason() string
- type MockAuthorizationClient
- func (m *MockAuthorizationClient) CreatePolicy(ctx context.Context, in *CreatePolicyReq, opts ...grpc.CallOption) (*CreatePolicyResp, error)
- func (m *MockAuthorizationClient) DeletePolicy(ctx context.Context, in *DeletePolicyReq, opts ...grpc.CallOption) (*DeletePolicyResp, error)
- func (m *MockAuthorizationClient) EXPECT() *MockAuthorizationClientMockRecorder
- func (m *MockAuthorizationClient) FilterAuthorizedPairs(ctx context.Context, in *FilterAuthorizedPairsReq, opts ...grpc.CallOption) (*FilterAuthorizedPairsResp, error)
- func (m *MockAuthorizationClient) FilterAuthorizedProjects(ctx context.Context, in *FilterAuthorizedPairsReq, opts ...grpc.CallOption) (*FilterAuthorizedProjectsResp, error)
- func (m *MockAuthorizationClient) GetVersion(ctx context.Context, in *version.VersionInfoRequest, opts ...grpc.CallOption) (*version.VersionInfo, error)
- func (m *MockAuthorizationClient) IsAuthorized(ctx context.Context, in *IsAuthorizedReq, opts ...grpc.CallOption) (*IsAuthorizedResp, error)
- func (m *MockAuthorizationClient) ListPolicies(ctx context.Context, in *ListPoliciesReq, opts ...grpc.CallOption) (*ListPoliciesResp, error)
- func (m *MockAuthorizationClient) PurgeSubjectFromPolicies(ctx context.Context, in *PurgeSubjectFromPoliciesReq, opts ...grpc.CallOption) (*PurgeSubjectFromPoliciesResp, error)
- type MockAuthorizationClientMockRecorder
- func (mr *MockAuthorizationClientMockRecorder) CreatePolicy(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAuthorizationClientMockRecorder) DeletePolicy(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAuthorizationClientMockRecorder) FilterAuthorizedPairs(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAuthorizationClientMockRecorder) FilterAuthorizedProjects(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAuthorizationClientMockRecorder) GetVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAuthorizationClientMockRecorder) IsAuthorized(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAuthorizationClientMockRecorder) ListPolicies(ctx, in interface{}, opts ...interface{}) *gomock.Call
- func (mr *MockAuthorizationClientMockRecorder) PurgeSubjectFromPolicies(ctx, in interface{}, opts ...interface{}) *gomock.Call
- type MockAuthorizationServer
- func (m *MockAuthorizationServer) CreatePolicy(arg0 context.Context, arg1 *CreatePolicyReq) (*CreatePolicyResp, error)
- func (m *MockAuthorizationServer) DeletePolicy(arg0 context.Context, arg1 *DeletePolicyReq) (*DeletePolicyResp, error)
- func (m *MockAuthorizationServer) EXPECT() *MockAuthorizationServerMockRecorder
- func (m *MockAuthorizationServer) FilterAuthorizedPairs(arg0 context.Context, arg1 *FilterAuthorizedPairsReq) (*FilterAuthorizedPairsResp, error)
- func (m *MockAuthorizationServer) FilterAuthorizedProjects(arg0 context.Context, arg1 *FilterAuthorizedPairsReq) (*FilterAuthorizedProjectsResp, error)
- func (m *MockAuthorizationServer) GetVersion(arg0 context.Context, arg1 *version.VersionInfoRequest) (*version.VersionInfo, error)
- func (m *MockAuthorizationServer) IsAuthorized(arg0 context.Context, arg1 *IsAuthorizedReq) (*IsAuthorizedResp, error)
- func (m *MockAuthorizationServer) ListPolicies(arg0 context.Context, arg1 *ListPoliciesReq) (*ListPoliciesResp, error)
- func (m *MockAuthorizationServer) PurgeSubjectFromPolicies(arg0 context.Context, arg1 *PurgeSubjectFromPoliciesReq) (*PurgeSubjectFromPoliciesResp, error)
- type MockAuthorizationServerMockRecorder
- func (mr *MockAuthorizationServerMockRecorder) CreatePolicy(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizationServerMockRecorder) DeletePolicy(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizationServerMockRecorder) FilterAuthorizedPairs(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizationServerMockRecorder) FilterAuthorizedProjects(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizationServerMockRecorder) GetVersion(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizationServerMockRecorder) IsAuthorized(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizationServerMockRecorder) ListPolicies(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizationServerMockRecorder) PurgeSubjectFromPolicies(arg0, arg1 interface{}) *gomock.Call
- type Pair
- func (*Pair) Descriptor() ([]byte, []int)
- func (m *Pair) GetAction() string
- func (m *Pair) GetResource() string
- func (*Pair) ProtoMessage()
- func (m *Pair) Reset()
- func (m *Pair) String() string
- func (m *Pair) Validate() error
- func (m *Pair) XXX_DiscardUnknown()
- func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Pair) XXX_Merge(src proto.Message)
- func (m *Pair) XXX_Size() int
- func (m *Pair) XXX_Unmarshal(b []byte) error
- type PairValidationError
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)
- func (m *Policy) GetAction() string
- func (m *Policy) GetCreatedAt() *timestamp.Timestamp
- func (m *Policy) GetEffect() string
- func (m *Policy) GetId() string
- func (m *Policy) GetResource() string
- func (m *Policy) GetSubjects() []string
- func (m *Policy) GetUpdatedAt() *timestamp.Timestamp
- func (*Policy) ProtoMessage()
- func (m *Policy) Reset()
- func (m *Policy) String() string
- func (m *Policy) Validate() error
- func (m *Policy) XXX_DiscardUnknown()
- func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Policy) XXX_Merge(src proto.Message)
- func (m *Policy) XXX_Size() int
- func (m *Policy) XXX_Unmarshal(b []byte) error
- type PolicyValidationError
- type PurgeSubjectFromPoliciesReq
- func (*PurgeSubjectFromPoliciesReq) Descriptor() ([]byte, []int)
- func (m *PurgeSubjectFromPoliciesReq) GetSubject() string
- func (*PurgeSubjectFromPoliciesReq) ProtoMessage()
- func (m *PurgeSubjectFromPoliciesReq) Reset()
- func (m *PurgeSubjectFromPoliciesReq) String() string
- func (m *PurgeSubjectFromPoliciesReq) Validate() error
- func (m *PurgeSubjectFromPoliciesReq) XXX_DiscardUnknown()
- func (m *PurgeSubjectFromPoliciesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PurgeSubjectFromPoliciesReq) XXX_Merge(src proto.Message)
- func (m *PurgeSubjectFromPoliciesReq) XXX_Size() int
- func (m *PurgeSubjectFromPoliciesReq) XXX_Unmarshal(b []byte) error
- type PurgeSubjectFromPoliciesReqValidationError
- func (e PurgeSubjectFromPoliciesReqValidationError) Cause() error
- func (e PurgeSubjectFromPoliciesReqValidationError) Error() string
- func (e PurgeSubjectFromPoliciesReqValidationError) ErrorName() string
- func (e PurgeSubjectFromPoliciesReqValidationError) Field() string
- func (e PurgeSubjectFromPoliciesReqValidationError) Key() bool
- func (e PurgeSubjectFromPoliciesReqValidationError) Reason() string
- type PurgeSubjectFromPoliciesResp
- func (*PurgeSubjectFromPoliciesResp) Descriptor() ([]byte, []int)
- func (m *PurgeSubjectFromPoliciesResp) GetIds() []string
- func (*PurgeSubjectFromPoliciesResp) ProtoMessage()
- func (m *PurgeSubjectFromPoliciesResp) Reset()
- func (m *PurgeSubjectFromPoliciesResp) String() string
- func (m *PurgeSubjectFromPoliciesResp) Validate() error
- func (m *PurgeSubjectFromPoliciesResp) XXX_DiscardUnknown()
- func (m *PurgeSubjectFromPoliciesResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PurgeSubjectFromPoliciesResp) XXX_Merge(src proto.Message)
- func (m *PurgeSubjectFromPoliciesResp) XXX_Size() int
- func (m *PurgeSubjectFromPoliciesResp) XXX_Unmarshal(b []byte) error
- type PurgeSubjectFromPoliciesRespValidationError
- func (e PurgeSubjectFromPoliciesRespValidationError) Cause() error
- func (e PurgeSubjectFromPoliciesRespValidationError) Error() string
- func (e PurgeSubjectFromPoliciesRespValidationError) ErrorName() string
- func (e PurgeSubjectFromPoliciesRespValidationError) Field() string
- func (e PurgeSubjectFromPoliciesRespValidationError) Key() bool
- func (e PurgeSubjectFromPoliciesRespValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterAuthorizationServer ¶
func RegisterAuthorizationServer(s *grpc.Server, srv AuthorizationServer)
Types ¶
type AuthorizationClient ¶
type AuthorizationClient interface { GetVersion(ctx context.Context, in *version.VersionInfoRequest, opts ...grpc.CallOption) (*version.VersionInfo, error) IsAuthorized(ctx context.Context, in *IsAuthorizedReq, opts ...grpc.CallOption) (*IsAuthorizedResp, error) FilterAuthorizedPairs(ctx context.Context, in *FilterAuthorizedPairsReq, opts ...grpc.CallOption) (*FilterAuthorizedPairsResp, error) FilterAuthorizedProjects(ctx context.Context, in *FilterAuthorizedPairsReq, opts ...grpc.CallOption) (*FilterAuthorizedProjectsResp, error) CreatePolicy(ctx context.Context, in *CreatePolicyReq, opts ...grpc.CallOption) (*CreatePolicyResp, error) ListPolicies(ctx context.Context, in *ListPoliciesReq, opts ...grpc.CallOption) (*ListPoliciesResp, error) DeletePolicy(ctx context.Context, in *DeletePolicyReq, opts ...grpc.CallOption) (*DeletePolicyResp, error) PurgeSubjectFromPolicies(ctx context.Context, in *PurgeSubjectFromPoliciesReq, opts ...grpc.CallOption) (*PurgeSubjectFromPoliciesResp, error) }
AuthorizationClient is the client API for Authorization service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthorizationClient ¶
func NewAuthorizationClient(cc *grpc.ClientConn) AuthorizationClient
type AuthorizationServer ¶
type AuthorizationServer interface { GetVersion(context.Context, *version.VersionInfoRequest) (*version.VersionInfo, error) IsAuthorized(context.Context, *IsAuthorizedReq) (*IsAuthorizedResp, error) FilterAuthorizedPairs(context.Context, *FilterAuthorizedPairsReq) (*FilterAuthorizedPairsResp, error) FilterAuthorizedProjects(context.Context, *FilterAuthorizedPairsReq) (*FilterAuthorizedProjectsResp, error) CreatePolicy(context.Context, *CreatePolicyReq) (*CreatePolicyResp, error) ListPolicies(context.Context, *ListPoliciesReq) (*ListPoliciesResp, error) DeletePolicy(context.Context, *DeletePolicyReq) (*DeletePolicyResp, error) PurgeSubjectFromPolicies(context.Context, *PurgeSubjectFromPoliciesReq) (*PurgeSubjectFromPoliciesResp, error) }
AuthorizationServer is the server API for Authorization service.
type AuthorizationServerMock ¶
type AuthorizationServerMock struct { GetVersionFunc func(context.Context, *version.VersionInfoRequest) (*version.VersionInfo, error) IsAuthorizedFunc func(context.Context, *IsAuthorizedReq) (*IsAuthorizedResp, error) FilterAuthorizedPairsFunc func(context.Context, *FilterAuthorizedPairsReq) (*FilterAuthorizedPairsResp, error) FilterAuthorizedProjectsFunc func(context.Context, *FilterAuthorizedPairsReq) (*FilterAuthorizedProjectsResp, error) CreatePolicyFunc func(context.Context, *CreatePolicyReq) (*CreatePolicyResp, error) ListPoliciesFunc func(context.Context, *ListPoliciesReq) (*ListPoliciesResp, error) DeletePolicyFunc func(context.Context, *DeletePolicyReq) (*DeletePolicyResp, error) PurgeSubjectFromPoliciesFunc func(context.Context, *PurgeSubjectFromPoliciesReq) (*PurgeSubjectFromPoliciesResp, error) // contains filtered or unexported fields }
AuthorizationServerMock is the mock-what-you-want struct that stubs all not-overridden methods with "not implemented" returns
func NewAuthorizationServerMock ¶
func NewAuthorizationServerMock() *AuthorizationServerMock
NewAuthorizationServerMock gives you a fresh instance of AuthorizationServerMock.
func NewAuthorizationServerMockWithoutValidation ¶
func NewAuthorizationServerMockWithoutValidation() *AuthorizationServerMock
NewAuthorizationServerMockWithoutValidation gives you a fresh instance of AuthorizationServerMock which does not attempt to validate requests before passing them to their respective '*Func'.
func (*AuthorizationServerMock) CreatePolicy ¶
func (m *AuthorizationServerMock) CreatePolicy(ctx context.Context, req *CreatePolicyReq) (*CreatePolicyResp, error)
func (*AuthorizationServerMock) DeletePolicy ¶
func (m *AuthorizationServerMock) DeletePolicy(ctx context.Context, req *DeletePolicyReq) (*DeletePolicyResp, error)
func (*AuthorizationServerMock) FilterAuthorizedPairs ¶
func (m *AuthorizationServerMock) FilterAuthorizedPairs(ctx context.Context, req *FilterAuthorizedPairsReq) (*FilterAuthorizedPairsResp, error)
func (*AuthorizationServerMock) FilterAuthorizedProjects ¶
func (m *AuthorizationServerMock) FilterAuthorizedProjects(ctx context.Context, req *FilterAuthorizedPairsReq) (*FilterAuthorizedProjectsResp, error)
func (*AuthorizationServerMock) GetVersion ¶
func (m *AuthorizationServerMock) GetVersion(ctx context.Context, req *version.VersionInfoRequest) (*version.VersionInfo, error)
func (*AuthorizationServerMock) IsAuthorized ¶
func (m *AuthorizationServerMock) IsAuthorized(ctx context.Context, req *IsAuthorizedReq) (*IsAuthorizedResp, error)
func (*AuthorizationServerMock) ListPolicies ¶
func (m *AuthorizationServerMock) ListPolicies(ctx context.Context, req *ListPoliciesReq) (*ListPoliciesResp, error)
func (*AuthorizationServerMock) PurgeSubjectFromPolicies ¶
func (m *AuthorizationServerMock) PurgeSubjectFromPolicies(ctx context.Context, req *PurgeSubjectFromPoliciesReq) (*PurgeSubjectFromPoliciesResp, error)
func (*AuthorizationServerMock) Reset ¶
func (m *AuthorizationServerMock) Reset()
Reset resets all overridden functions
type CreatePolicyReq ¶
type CreatePolicyReq struct { Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty" toml:"action,omitempty" mapstructure:"action,omitempty"` Subjects []string `` /* 129-byte string literal not displayed */ Resource string `` /* 129-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*CreatePolicyReq) Descriptor ¶
func (*CreatePolicyReq) Descriptor() ([]byte, []int)
func (*CreatePolicyReq) GetAction ¶
func (m *CreatePolicyReq) GetAction() string
func (*CreatePolicyReq) GetResource ¶
func (m *CreatePolicyReq) GetResource() string
func (*CreatePolicyReq) GetSubjects ¶
func (m *CreatePolicyReq) GetSubjects() []string
func (*CreatePolicyReq) ProtoMessage ¶
func (*CreatePolicyReq) ProtoMessage()
func (*CreatePolicyReq) Reset ¶
func (m *CreatePolicyReq) Reset()
func (*CreatePolicyReq) String ¶
func (m *CreatePolicyReq) String() string
func (*CreatePolicyReq) Validate ¶
func (m *CreatePolicyReq) Validate() error
Validate checks the field values on CreatePolicyReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreatePolicyReq) XXX_DiscardUnknown ¶
func (m *CreatePolicyReq) XXX_DiscardUnknown()
func (*CreatePolicyReq) XXX_Marshal ¶
func (m *CreatePolicyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreatePolicyReq) XXX_Merge ¶
func (dst *CreatePolicyReq) XXX_Merge(src proto.Message)
func (*CreatePolicyReq) XXX_Size ¶
func (m *CreatePolicyReq) XXX_Size() int
func (*CreatePolicyReq) XXX_Unmarshal ¶
func (m *CreatePolicyReq) XXX_Unmarshal(b []byte) error
type CreatePolicyReqValidationError ¶
type CreatePolicyReqValidationError struct {
// contains filtered or unexported fields
}
CreatePolicyReqValidationError is the validation error returned by CreatePolicyReq.Validate if the designated constraints aren't met.
func (CreatePolicyReqValidationError) Cause ¶
func (e CreatePolicyReqValidationError) Cause() error
Cause function returns cause value.
func (CreatePolicyReqValidationError) Error ¶
func (e CreatePolicyReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePolicyReqValidationError) ErrorName ¶
func (e CreatePolicyReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePolicyReqValidationError) Field ¶
func (e CreatePolicyReqValidationError) Field() string
Field function returns field value.
func (CreatePolicyReqValidationError) Key ¶
func (e CreatePolicyReqValidationError) Key() bool
Key function returns key value.
func (CreatePolicyReqValidationError) Reason ¶
func (e CreatePolicyReqValidationError) Reason() string
Reason function returns reason value.
type CreatePolicyResp ¶
type CreatePolicyResp struct { Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty" toml:"policy,omitempty" mapstructure:"policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*CreatePolicyResp) Descriptor ¶
func (*CreatePolicyResp) Descriptor() ([]byte, []int)
func (*CreatePolicyResp) GetPolicy ¶
func (m *CreatePolicyResp) GetPolicy() *Policy
func (*CreatePolicyResp) ProtoMessage ¶
func (*CreatePolicyResp) ProtoMessage()
func (*CreatePolicyResp) Reset ¶
func (m *CreatePolicyResp) Reset()
func (*CreatePolicyResp) String ¶
func (m *CreatePolicyResp) String() string
func (*CreatePolicyResp) Validate ¶
func (m *CreatePolicyResp) Validate() error
Validate checks the field values on CreatePolicyResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreatePolicyResp) XXX_DiscardUnknown ¶
func (m *CreatePolicyResp) XXX_DiscardUnknown()
func (*CreatePolicyResp) XXX_Marshal ¶
func (m *CreatePolicyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreatePolicyResp) XXX_Merge ¶
func (dst *CreatePolicyResp) XXX_Merge(src proto.Message)
func (*CreatePolicyResp) XXX_Size ¶
func (m *CreatePolicyResp) XXX_Size() int
func (*CreatePolicyResp) XXX_Unmarshal ¶
func (m *CreatePolicyResp) XXX_Unmarshal(b []byte) error
type CreatePolicyRespValidationError ¶
type CreatePolicyRespValidationError struct {
// contains filtered or unexported fields
}
CreatePolicyRespValidationError is the validation error returned by CreatePolicyResp.Validate if the designated constraints aren't met.
func (CreatePolicyRespValidationError) Cause ¶
func (e CreatePolicyRespValidationError) Cause() error
Cause function returns cause value.
func (CreatePolicyRespValidationError) Error ¶
func (e CreatePolicyRespValidationError) Error() string
Error satisfies the builtin error interface
func (CreatePolicyRespValidationError) ErrorName ¶
func (e CreatePolicyRespValidationError) ErrorName() string
ErrorName returns error name.
func (CreatePolicyRespValidationError) Field ¶
func (e CreatePolicyRespValidationError) Field() string
Field function returns field value.
func (CreatePolicyRespValidationError) Key ¶
func (e CreatePolicyRespValidationError) Key() bool
Key function returns key value.
func (CreatePolicyRespValidationError) Reason ¶
func (e CreatePolicyRespValidationError) Reason() string
Reason function returns reason value.
type DeletePolicyReq ¶
type DeletePolicyReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*DeletePolicyReq) Descriptor ¶
func (*DeletePolicyReq) Descriptor() ([]byte, []int)
func (*DeletePolicyReq) GetId ¶
func (m *DeletePolicyReq) GetId() string
func (*DeletePolicyReq) ProtoMessage ¶
func (*DeletePolicyReq) ProtoMessage()
func (*DeletePolicyReq) Reset ¶
func (m *DeletePolicyReq) Reset()
func (*DeletePolicyReq) String ¶
func (m *DeletePolicyReq) String() string
func (*DeletePolicyReq) Validate ¶
func (m *DeletePolicyReq) Validate() error
Validate checks the field values on DeletePolicyReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*DeletePolicyReq) XXX_DiscardUnknown ¶
func (m *DeletePolicyReq) XXX_DiscardUnknown()
func (*DeletePolicyReq) XXX_Marshal ¶
func (m *DeletePolicyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeletePolicyReq) XXX_Merge ¶
func (dst *DeletePolicyReq) XXX_Merge(src proto.Message)
func (*DeletePolicyReq) XXX_Size ¶
func (m *DeletePolicyReq) XXX_Size() int
func (*DeletePolicyReq) XXX_Unmarshal ¶
func (m *DeletePolicyReq) XXX_Unmarshal(b []byte) error
type DeletePolicyReqValidationError ¶
type DeletePolicyReqValidationError struct {
// contains filtered or unexported fields
}
DeletePolicyReqValidationError is the validation error returned by DeletePolicyReq.Validate if the designated constraints aren't met.
func (DeletePolicyReqValidationError) Cause ¶
func (e DeletePolicyReqValidationError) Cause() error
Cause function returns cause value.
func (DeletePolicyReqValidationError) Error ¶
func (e DeletePolicyReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePolicyReqValidationError) ErrorName ¶
func (e DeletePolicyReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePolicyReqValidationError) Field ¶
func (e DeletePolicyReqValidationError) Field() string
Field function returns field value.
func (DeletePolicyReqValidationError) Key ¶
func (e DeletePolicyReqValidationError) Key() bool
Key function returns key value.
func (DeletePolicyReqValidationError) Reason ¶
func (e DeletePolicyReqValidationError) Reason() string
Reason function returns reason value.
type DeletePolicyResp ¶
type DeletePolicyResp struct { Policy *Policy `protobuf:"bytes,1,opt,name=policy,proto3" json:"policy,omitempty" toml:"policy,omitempty" mapstructure:"policy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*DeletePolicyResp) Descriptor ¶
func (*DeletePolicyResp) Descriptor() ([]byte, []int)
func (*DeletePolicyResp) GetPolicy ¶
func (m *DeletePolicyResp) GetPolicy() *Policy
func (*DeletePolicyResp) ProtoMessage ¶
func (*DeletePolicyResp) ProtoMessage()
func (*DeletePolicyResp) Reset ¶
func (m *DeletePolicyResp) Reset()
func (*DeletePolicyResp) String ¶
func (m *DeletePolicyResp) String() string
func (*DeletePolicyResp) Validate ¶
func (m *DeletePolicyResp) Validate() error
Validate checks the field values on DeletePolicyResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*DeletePolicyResp) XXX_DiscardUnknown ¶
func (m *DeletePolicyResp) XXX_DiscardUnknown()
func (*DeletePolicyResp) XXX_Marshal ¶
func (m *DeletePolicyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeletePolicyResp) XXX_Merge ¶
func (dst *DeletePolicyResp) XXX_Merge(src proto.Message)
func (*DeletePolicyResp) XXX_Size ¶
func (m *DeletePolicyResp) XXX_Size() int
func (*DeletePolicyResp) XXX_Unmarshal ¶
func (m *DeletePolicyResp) XXX_Unmarshal(b []byte) error
type DeletePolicyRespValidationError ¶
type DeletePolicyRespValidationError struct {
// contains filtered or unexported fields
}
DeletePolicyRespValidationError is the validation error returned by DeletePolicyResp.Validate if the designated constraints aren't met.
func (DeletePolicyRespValidationError) Cause ¶
func (e DeletePolicyRespValidationError) Cause() error
Cause function returns cause value.
func (DeletePolicyRespValidationError) Error ¶
func (e DeletePolicyRespValidationError) Error() string
Error satisfies the builtin error interface
func (DeletePolicyRespValidationError) ErrorName ¶
func (e DeletePolicyRespValidationError) ErrorName() string
ErrorName returns error name.
func (DeletePolicyRespValidationError) Field ¶
func (e DeletePolicyRespValidationError) Field() string
Field function returns field value.
func (DeletePolicyRespValidationError) Key ¶
func (e DeletePolicyRespValidationError) Key() bool
Key function returns key value.
func (DeletePolicyRespValidationError) Reason ¶
func (e DeletePolicyRespValidationError) Reason() string
Reason function returns reason value.
type FilterAuthorizedPairsReq ¶
type FilterAuthorizedPairsReq struct { Subjects []string `` /* 129-byte string literal not displayed */ Pairs []*Pair `protobuf:"bytes,2,rep,name=pairs,proto3" json:"pairs,omitempty" toml:"pairs,omitempty" mapstructure:"pairs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*FilterAuthorizedPairsReq) Descriptor ¶
func (*FilterAuthorizedPairsReq) Descriptor() ([]byte, []int)
func (*FilterAuthorizedPairsReq) GetPairs ¶
func (m *FilterAuthorizedPairsReq) GetPairs() []*Pair
func (*FilterAuthorizedPairsReq) GetSubjects ¶
func (m *FilterAuthorizedPairsReq) GetSubjects() []string
func (*FilterAuthorizedPairsReq) ProtoMessage ¶
func (*FilterAuthorizedPairsReq) ProtoMessage()
func (*FilterAuthorizedPairsReq) Reset ¶
func (m *FilterAuthorizedPairsReq) Reset()
func (*FilterAuthorizedPairsReq) String ¶
func (m *FilterAuthorizedPairsReq) String() string
func (*FilterAuthorizedPairsReq) Validate ¶
func (m *FilterAuthorizedPairsReq) Validate() error
Validate checks the field values on FilterAuthorizedPairsReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FilterAuthorizedPairsReq) XXX_DiscardUnknown ¶
func (m *FilterAuthorizedPairsReq) XXX_DiscardUnknown()
func (*FilterAuthorizedPairsReq) XXX_Marshal ¶
func (m *FilterAuthorizedPairsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilterAuthorizedPairsReq) XXX_Merge ¶
func (dst *FilterAuthorizedPairsReq) XXX_Merge(src proto.Message)
func (*FilterAuthorizedPairsReq) XXX_Size ¶
func (m *FilterAuthorizedPairsReq) XXX_Size() int
func (*FilterAuthorizedPairsReq) XXX_Unmarshal ¶
func (m *FilterAuthorizedPairsReq) XXX_Unmarshal(b []byte) error
type FilterAuthorizedPairsReqValidationError ¶
type FilterAuthorizedPairsReqValidationError struct {
// contains filtered or unexported fields
}
FilterAuthorizedPairsReqValidationError is the validation error returned by FilterAuthorizedPairsReq.Validate if the designated constraints aren't met.
func (FilterAuthorizedPairsReqValidationError) Cause ¶
func (e FilterAuthorizedPairsReqValidationError) Cause() error
Cause function returns cause value.
func (FilterAuthorizedPairsReqValidationError) Error ¶
func (e FilterAuthorizedPairsReqValidationError) Error() string
Error satisfies the builtin error interface
func (FilterAuthorizedPairsReqValidationError) ErrorName ¶
func (e FilterAuthorizedPairsReqValidationError) ErrorName() string
ErrorName returns error name.
func (FilterAuthorizedPairsReqValidationError) Field ¶
func (e FilterAuthorizedPairsReqValidationError) Field() string
Field function returns field value.
func (FilterAuthorizedPairsReqValidationError) Key ¶
func (e FilterAuthorizedPairsReqValidationError) Key() bool
Key function returns key value.
func (FilterAuthorizedPairsReqValidationError) Reason ¶
func (e FilterAuthorizedPairsReqValidationError) Reason() string
Reason function returns reason value.
type FilterAuthorizedPairsResp ¶
type FilterAuthorizedPairsResp struct { Pairs []*Pair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs,omitempty" toml:"pairs,omitempty" mapstructure:"pairs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*FilterAuthorizedPairsResp) Descriptor ¶
func (*FilterAuthorizedPairsResp) Descriptor() ([]byte, []int)
func (*FilterAuthorizedPairsResp) GetPairs ¶
func (m *FilterAuthorizedPairsResp) GetPairs() []*Pair
func (*FilterAuthorizedPairsResp) ProtoMessage ¶
func (*FilterAuthorizedPairsResp) ProtoMessage()
func (*FilterAuthorizedPairsResp) Reset ¶
func (m *FilterAuthorizedPairsResp) Reset()
func (*FilterAuthorizedPairsResp) String ¶
func (m *FilterAuthorizedPairsResp) String() string
func (*FilterAuthorizedPairsResp) Validate ¶
func (m *FilterAuthorizedPairsResp) Validate() error
Validate checks the field values on FilterAuthorizedPairsResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FilterAuthorizedPairsResp) XXX_DiscardUnknown ¶
func (m *FilterAuthorizedPairsResp) XXX_DiscardUnknown()
func (*FilterAuthorizedPairsResp) XXX_Marshal ¶
func (m *FilterAuthorizedPairsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilterAuthorizedPairsResp) XXX_Merge ¶
func (dst *FilterAuthorizedPairsResp) XXX_Merge(src proto.Message)
func (*FilterAuthorizedPairsResp) XXX_Size ¶
func (m *FilterAuthorizedPairsResp) XXX_Size() int
func (*FilterAuthorizedPairsResp) XXX_Unmarshal ¶
func (m *FilterAuthorizedPairsResp) XXX_Unmarshal(b []byte) error
type FilterAuthorizedPairsRespValidationError ¶
type FilterAuthorizedPairsRespValidationError struct {
// contains filtered or unexported fields
}
FilterAuthorizedPairsRespValidationError is the validation error returned by FilterAuthorizedPairsResp.Validate if the designated constraints aren't met.
func (FilterAuthorizedPairsRespValidationError) Cause ¶
func (e FilterAuthorizedPairsRespValidationError) Cause() error
Cause function returns cause value.
func (FilterAuthorizedPairsRespValidationError) Error ¶
func (e FilterAuthorizedPairsRespValidationError) Error() string
Error satisfies the builtin error interface
func (FilterAuthorizedPairsRespValidationError) ErrorName ¶
func (e FilterAuthorizedPairsRespValidationError) ErrorName() string
ErrorName returns error name.
func (FilterAuthorizedPairsRespValidationError) Field ¶
func (e FilterAuthorizedPairsRespValidationError) Field() string
Field function returns field value.
func (FilterAuthorizedPairsRespValidationError) Key ¶
func (e FilterAuthorizedPairsRespValidationError) Key() bool
Key function returns key value.
func (FilterAuthorizedPairsRespValidationError) Reason ¶
func (e FilterAuthorizedPairsRespValidationError) Reason() string
Reason function returns reason value.
type FilterAuthorizedProjectsResp ¶
type FilterAuthorizedProjectsResp struct { Projects []string `` /* 129-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*FilterAuthorizedProjectsResp) Descriptor ¶
func (*FilterAuthorizedProjectsResp) Descriptor() ([]byte, []int)
func (*FilterAuthorizedProjectsResp) GetProjects ¶
func (m *FilterAuthorizedProjectsResp) GetProjects() []string
func (*FilterAuthorizedProjectsResp) ProtoMessage ¶
func (*FilterAuthorizedProjectsResp) ProtoMessage()
func (*FilterAuthorizedProjectsResp) Reset ¶
func (m *FilterAuthorizedProjectsResp) Reset()
func (*FilterAuthorizedProjectsResp) String ¶
func (m *FilterAuthorizedProjectsResp) String() string
func (*FilterAuthorizedProjectsResp) Validate ¶
func (m *FilterAuthorizedProjectsResp) Validate() error
Validate checks the field values on FilterAuthorizedProjectsResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*FilterAuthorizedProjectsResp) XXX_DiscardUnknown ¶
func (m *FilterAuthorizedProjectsResp) XXX_DiscardUnknown()
func (*FilterAuthorizedProjectsResp) XXX_Marshal ¶
func (m *FilterAuthorizedProjectsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FilterAuthorizedProjectsResp) XXX_Merge ¶
func (dst *FilterAuthorizedProjectsResp) XXX_Merge(src proto.Message)
func (*FilterAuthorizedProjectsResp) XXX_Size ¶
func (m *FilterAuthorizedProjectsResp) XXX_Size() int
func (*FilterAuthorizedProjectsResp) XXX_Unmarshal ¶
func (m *FilterAuthorizedProjectsResp) XXX_Unmarshal(b []byte) error
type FilterAuthorizedProjectsRespValidationError ¶
type FilterAuthorizedProjectsRespValidationError struct {
// contains filtered or unexported fields
}
FilterAuthorizedProjectsRespValidationError is the validation error returned by FilterAuthorizedProjectsResp.Validate if the designated constraints aren't met.
func (FilterAuthorizedProjectsRespValidationError) Cause ¶
func (e FilterAuthorizedProjectsRespValidationError) Cause() error
Cause function returns cause value.
func (FilterAuthorizedProjectsRespValidationError) Error ¶
func (e FilterAuthorizedProjectsRespValidationError) Error() string
Error satisfies the builtin error interface
func (FilterAuthorizedProjectsRespValidationError) ErrorName ¶
func (e FilterAuthorizedProjectsRespValidationError) ErrorName() string
ErrorName returns error name.
func (FilterAuthorizedProjectsRespValidationError) Field ¶
func (e FilterAuthorizedProjectsRespValidationError) Field() string
Field function returns field value.
func (FilterAuthorizedProjectsRespValidationError) Key ¶
func (e FilterAuthorizedProjectsRespValidationError) Key() bool
Key function returns key value.
func (FilterAuthorizedProjectsRespValidationError) Reason ¶
func (e FilterAuthorizedProjectsRespValidationError) Reason() string
Reason function returns reason value.
type GetVersionReq ¶
type GetVersionReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*GetVersionReq) Descriptor ¶
func (*GetVersionReq) Descriptor() ([]byte, []int)
func (*GetVersionReq) ProtoMessage ¶
func (*GetVersionReq) ProtoMessage()
func (*GetVersionReq) Reset ¶
func (m *GetVersionReq) Reset()
func (*GetVersionReq) String ¶
func (m *GetVersionReq) String() string
func (*GetVersionReq) Validate ¶
func (m *GetVersionReq) Validate() error
Validate checks the field values on GetVersionReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetVersionReq) XXX_DiscardUnknown ¶
func (m *GetVersionReq) XXX_DiscardUnknown()
func (*GetVersionReq) XXX_Marshal ¶
func (m *GetVersionReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetVersionReq) XXX_Merge ¶
func (dst *GetVersionReq) XXX_Merge(src proto.Message)
func (*GetVersionReq) XXX_Size ¶
func (m *GetVersionReq) XXX_Size() int
func (*GetVersionReq) XXX_Unmarshal ¶
func (m *GetVersionReq) XXX_Unmarshal(b []byte) error
type GetVersionReqValidationError ¶
type GetVersionReqValidationError struct {
// contains filtered or unexported fields
}
GetVersionReqValidationError is the validation error returned by GetVersionReq.Validate if the designated constraints aren't met.
func (GetVersionReqValidationError) Cause ¶
func (e GetVersionReqValidationError) Cause() error
Cause function returns cause value.
func (GetVersionReqValidationError) Error ¶
func (e GetVersionReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetVersionReqValidationError) ErrorName ¶
func (e GetVersionReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetVersionReqValidationError) Field ¶
func (e GetVersionReqValidationError) Field() string
Field function returns field value.
func (GetVersionReqValidationError) Key ¶
func (e GetVersionReqValidationError) Key() bool
Key function returns key value.
func (GetVersionReqValidationError) Reason ¶
func (e GetVersionReqValidationError) Reason() string
Reason function returns reason value.
type IsAuthorizedReq ¶
type IsAuthorizedReq struct { Subjects []string `` /* 129-byte string literal not displayed */ Resource string `` /* 129-byte string literal not displayed */ Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty" toml:"action,omitempty" mapstructure:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*IsAuthorizedReq) Descriptor ¶
func (*IsAuthorizedReq) Descriptor() ([]byte, []int)
func (*IsAuthorizedReq) GetAction ¶
func (m *IsAuthorizedReq) GetAction() string
func (*IsAuthorizedReq) GetResource ¶
func (m *IsAuthorizedReq) GetResource() string
func (*IsAuthorizedReq) GetSubjects ¶
func (m *IsAuthorizedReq) GetSubjects() []string
func (*IsAuthorizedReq) ProtoMessage ¶
func (*IsAuthorizedReq) ProtoMessage()
func (*IsAuthorizedReq) Reset ¶
func (m *IsAuthorizedReq) Reset()
func (*IsAuthorizedReq) String ¶
func (m *IsAuthorizedReq) String() string
func (*IsAuthorizedReq) Validate ¶
func (m *IsAuthorizedReq) Validate() error
Validate checks the field values on IsAuthorizedReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*IsAuthorizedReq) XXX_DiscardUnknown ¶
func (m *IsAuthorizedReq) XXX_DiscardUnknown()
func (*IsAuthorizedReq) XXX_Marshal ¶
func (m *IsAuthorizedReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsAuthorizedReq) XXX_Merge ¶
func (dst *IsAuthorizedReq) XXX_Merge(src proto.Message)
func (*IsAuthorizedReq) XXX_Size ¶
func (m *IsAuthorizedReq) XXX_Size() int
func (*IsAuthorizedReq) XXX_Unmarshal ¶
func (m *IsAuthorizedReq) XXX_Unmarshal(b []byte) error
type IsAuthorizedReqValidationError ¶
type IsAuthorizedReqValidationError struct {
// contains filtered or unexported fields
}
IsAuthorizedReqValidationError is the validation error returned by IsAuthorizedReq.Validate if the designated constraints aren't met.
func (IsAuthorizedReqValidationError) Cause ¶
func (e IsAuthorizedReqValidationError) Cause() error
Cause function returns cause value.
func (IsAuthorizedReqValidationError) Error ¶
func (e IsAuthorizedReqValidationError) Error() string
Error satisfies the builtin error interface
func (IsAuthorizedReqValidationError) ErrorName ¶
func (e IsAuthorizedReqValidationError) ErrorName() string
ErrorName returns error name.
func (IsAuthorizedReqValidationError) Field ¶
func (e IsAuthorizedReqValidationError) Field() string
Field function returns field value.
func (IsAuthorizedReqValidationError) Key ¶
func (e IsAuthorizedReqValidationError) Key() bool
Key function returns key value.
func (IsAuthorizedReqValidationError) Reason ¶
func (e IsAuthorizedReqValidationError) Reason() string
Reason function returns reason value.
type IsAuthorizedResp ¶
type IsAuthorizedResp struct { Authorized bool `` /* 138-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*IsAuthorizedResp) Descriptor ¶
func (*IsAuthorizedResp) Descriptor() ([]byte, []int)
func (*IsAuthorizedResp) GetAuthorized ¶
func (m *IsAuthorizedResp) GetAuthorized() bool
func (*IsAuthorizedResp) ProtoMessage ¶
func (*IsAuthorizedResp) ProtoMessage()
func (*IsAuthorizedResp) Reset ¶
func (m *IsAuthorizedResp) Reset()
func (*IsAuthorizedResp) String ¶
func (m *IsAuthorizedResp) String() string
func (*IsAuthorizedResp) Validate ¶
func (m *IsAuthorizedResp) Validate() error
Validate checks the field values on IsAuthorizedResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*IsAuthorizedResp) XXX_DiscardUnknown ¶
func (m *IsAuthorizedResp) XXX_DiscardUnknown()
func (*IsAuthorizedResp) XXX_Marshal ¶
func (m *IsAuthorizedResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IsAuthorizedResp) XXX_Merge ¶
func (dst *IsAuthorizedResp) XXX_Merge(src proto.Message)
func (*IsAuthorizedResp) XXX_Size ¶
func (m *IsAuthorizedResp) XXX_Size() int
func (*IsAuthorizedResp) XXX_Unmarshal ¶
func (m *IsAuthorizedResp) XXX_Unmarshal(b []byte) error
type IsAuthorizedRespValidationError ¶
type IsAuthorizedRespValidationError struct {
// contains filtered or unexported fields
}
IsAuthorizedRespValidationError is the validation error returned by IsAuthorizedResp.Validate if the designated constraints aren't met.
func (IsAuthorizedRespValidationError) Cause ¶
func (e IsAuthorizedRespValidationError) Cause() error
Cause function returns cause value.
func (IsAuthorizedRespValidationError) Error ¶
func (e IsAuthorizedRespValidationError) Error() string
Error satisfies the builtin error interface
func (IsAuthorizedRespValidationError) ErrorName ¶
func (e IsAuthorizedRespValidationError) ErrorName() string
ErrorName returns error name.
func (IsAuthorizedRespValidationError) Field ¶
func (e IsAuthorizedRespValidationError) Field() string
Field function returns field value.
func (IsAuthorizedRespValidationError) Key ¶
func (e IsAuthorizedRespValidationError) Key() bool
Key function returns key value.
func (IsAuthorizedRespValidationError) Reason ¶
func (e IsAuthorizedRespValidationError) Reason() string
Reason function returns reason value.
type ListPoliciesReq ¶
type ListPoliciesReq struct { XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*ListPoliciesReq) Descriptor ¶
func (*ListPoliciesReq) Descriptor() ([]byte, []int)
func (*ListPoliciesReq) ProtoMessage ¶
func (*ListPoliciesReq) ProtoMessage()
func (*ListPoliciesReq) Reset ¶
func (m *ListPoliciesReq) Reset()
func (*ListPoliciesReq) String ¶
func (m *ListPoliciesReq) String() string
func (*ListPoliciesReq) Validate ¶
func (m *ListPoliciesReq) Validate() error
Validate checks the field values on ListPoliciesReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ListPoliciesReq) XXX_DiscardUnknown ¶
func (m *ListPoliciesReq) XXX_DiscardUnknown()
func (*ListPoliciesReq) XXX_Marshal ¶
func (m *ListPoliciesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPoliciesReq) XXX_Merge ¶
func (dst *ListPoliciesReq) XXX_Merge(src proto.Message)
func (*ListPoliciesReq) XXX_Size ¶
func (m *ListPoliciesReq) XXX_Size() int
func (*ListPoliciesReq) XXX_Unmarshal ¶
func (m *ListPoliciesReq) XXX_Unmarshal(b []byte) error
type ListPoliciesReqValidationError ¶
type ListPoliciesReqValidationError struct {
// contains filtered or unexported fields
}
ListPoliciesReqValidationError is the validation error returned by ListPoliciesReq.Validate if the designated constraints aren't met.
func (ListPoliciesReqValidationError) Cause ¶
func (e ListPoliciesReqValidationError) Cause() error
Cause function returns cause value.
func (ListPoliciesReqValidationError) Error ¶
func (e ListPoliciesReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListPoliciesReqValidationError) ErrorName ¶
func (e ListPoliciesReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListPoliciesReqValidationError) Field ¶
func (e ListPoliciesReqValidationError) Field() string
Field function returns field value.
func (ListPoliciesReqValidationError) Key ¶
func (e ListPoliciesReqValidationError) Key() bool
Key function returns key value.
func (ListPoliciesReqValidationError) Reason ¶
func (e ListPoliciesReqValidationError) Reason() string
Reason function returns reason value.
type ListPoliciesResp ¶
type ListPoliciesResp struct { Policies []*Policy `` /* 129-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*ListPoliciesResp) Descriptor ¶
func (*ListPoliciesResp) Descriptor() ([]byte, []int)
func (*ListPoliciesResp) GetPolicies ¶
func (m *ListPoliciesResp) GetPolicies() []*Policy
func (*ListPoliciesResp) ProtoMessage ¶
func (*ListPoliciesResp) ProtoMessage()
func (*ListPoliciesResp) Reset ¶
func (m *ListPoliciesResp) Reset()
func (*ListPoliciesResp) String ¶
func (m *ListPoliciesResp) String() string
func (*ListPoliciesResp) Validate ¶
func (m *ListPoliciesResp) Validate() error
Validate checks the field values on ListPoliciesResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ListPoliciesResp) XXX_DiscardUnknown ¶
func (m *ListPoliciesResp) XXX_DiscardUnknown()
func (*ListPoliciesResp) XXX_Marshal ¶
func (m *ListPoliciesResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListPoliciesResp) XXX_Merge ¶
func (dst *ListPoliciesResp) XXX_Merge(src proto.Message)
func (*ListPoliciesResp) XXX_Size ¶
func (m *ListPoliciesResp) XXX_Size() int
func (*ListPoliciesResp) XXX_Unmarshal ¶
func (m *ListPoliciesResp) XXX_Unmarshal(b []byte) error
type ListPoliciesRespValidationError ¶
type ListPoliciesRespValidationError struct {
// contains filtered or unexported fields
}
ListPoliciesRespValidationError is the validation error returned by ListPoliciesResp.Validate if the designated constraints aren't met.
func (ListPoliciesRespValidationError) Cause ¶
func (e ListPoliciesRespValidationError) Cause() error
Cause function returns cause value.
func (ListPoliciesRespValidationError) Error ¶
func (e ListPoliciesRespValidationError) Error() string
Error satisfies the builtin error interface
func (ListPoliciesRespValidationError) ErrorName ¶
func (e ListPoliciesRespValidationError) ErrorName() string
ErrorName returns error name.
func (ListPoliciesRespValidationError) Field ¶
func (e ListPoliciesRespValidationError) Field() string
Field function returns field value.
func (ListPoliciesRespValidationError) Key ¶
func (e ListPoliciesRespValidationError) Key() bool
Key function returns key value.
func (ListPoliciesRespValidationError) Reason ¶
func (e ListPoliciesRespValidationError) Reason() string
Reason function returns reason value.
type MockAuthorizationClient ¶
type MockAuthorizationClient struct {
// contains filtered or unexported fields
}
MockAuthorizationClient is a mock of AuthorizationClient interface
func NewMockAuthorizationClient ¶
func NewMockAuthorizationClient(ctrl *gomock.Controller) *MockAuthorizationClient
NewMockAuthorizationClient creates a new mock instance
func (*MockAuthorizationClient) CreatePolicy ¶
func (m *MockAuthorizationClient) CreatePolicy(ctx context.Context, in *CreatePolicyReq, opts ...grpc.CallOption) (*CreatePolicyResp, error)
CreatePolicy mocks base method
func (*MockAuthorizationClient) DeletePolicy ¶
func (m *MockAuthorizationClient) DeletePolicy(ctx context.Context, in *DeletePolicyReq, opts ...grpc.CallOption) (*DeletePolicyResp, error)
DeletePolicy mocks base method
func (*MockAuthorizationClient) EXPECT ¶
func (m *MockAuthorizationClient) EXPECT() *MockAuthorizationClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAuthorizationClient) FilterAuthorizedPairs ¶
func (m *MockAuthorizationClient) FilterAuthorizedPairs(ctx context.Context, in *FilterAuthorizedPairsReq, opts ...grpc.CallOption) (*FilterAuthorizedPairsResp, error)
FilterAuthorizedPairs mocks base method
func (*MockAuthorizationClient) FilterAuthorizedProjects ¶
func (m *MockAuthorizationClient) FilterAuthorizedProjects(ctx context.Context, in *FilterAuthorizedPairsReq, opts ...grpc.CallOption) (*FilterAuthorizedProjectsResp, error)
FilterAuthorizedProjects mocks base method
func (*MockAuthorizationClient) GetVersion ¶
func (m *MockAuthorizationClient) GetVersion(ctx context.Context, in *version.VersionInfoRequest, opts ...grpc.CallOption) (*version.VersionInfo, error)
GetVersion mocks base method
func (*MockAuthorizationClient) IsAuthorized ¶
func (m *MockAuthorizationClient) IsAuthorized(ctx context.Context, in *IsAuthorizedReq, opts ...grpc.CallOption) (*IsAuthorizedResp, error)
IsAuthorized mocks base method
func (*MockAuthorizationClient) ListPolicies ¶
func (m *MockAuthorizationClient) ListPolicies(ctx context.Context, in *ListPoliciesReq, opts ...grpc.CallOption) (*ListPoliciesResp, error)
ListPolicies mocks base method
func (*MockAuthorizationClient) PurgeSubjectFromPolicies ¶
func (m *MockAuthorizationClient) PurgeSubjectFromPolicies(ctx context.Context, in *PurgeSubjectFromPoliciesReq, opts ...grpc.CallOption) (*PurgeSubjectFromPoliciesResp, error)
PurgeSubjectFromPolicies mocks base method
type MockAuthorizationClientMockRecorder ¶
type MockAuthorizationClientMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationClientMockRecorder is the mock recorder for MockAuthorizationClient
func (*MockAuthorizationClientMockRecorder) CreatePolicy ¶
func (mr *MockAuthorizationClientMockRecorder) CreatePolicy(ctx, in interface{}, opts ...interface{}) *gomock.Call
CreatePolicy indicates an expected call of CreatePolicy
func (*MockAuthorizationClientMockRecorder) DeletePolicy ¶
func (mr *MockAuthorizationClientMockRecorder) DeletePolicy(ctx, in interface{}, opts ...interface{}) *gomock.Call
DeletePolicy indicates an expected call of DeletePolicy
func (*MockAuthorizationClientMockRecorder) FilterAuthorizedPairs ¶
func (mr *MockAuthorizationClientMockRecorder) FilterAuthorizedPairs(ctx, in interface{}, opts ...interface{}) *gomock.Call
FilterAuthorizedPairs indicates an expected call of FilterAuthorizedPairs
func (*MockAuthorizationClientMockRecorder) FilterAuthorizedProjects ¶
func (mr *MockAuthorizationClientMockRecorder) FilterAuthorizedProjects(ctx, in interface{}, opts ...interface{}) *gomock.Call
FilterAuthorizedProjects indicates an expected call of FilterAuthorizedProjects
func (*MockAuthorizationClientMockRecorder) GetVersion ¶
func (mr *MockAuthorizationClientMockRecorder) GetVersion(ctx, in interface{}, opts ...interface{}) *gomock.Call
GetVersion indicates an expected call of GetVersion
func (*MockAuthorizationClientMockRecorder) IsAuthorized ¶
func (mr *MockAuthorizationClientMockRecorder) IsAuthorized(ctx, in interface{}, opts ...interface{}) *gomock.Call
IsAuthorized indicates an expected call of IsAuthorized
func (*MockAuthorizationClientMockRecorder) ListPolicies ¶
func (mr *MockAuthorizationClientMockRecorder) ListPolicies(ctx, in interface{}, opts ...interface{}) *gomock.Call
ListPolicies indicates an expected call of ListPolicies
func (*MockAuthorizationClientMockRecorder) PurgeSubjectFromPolicies ¶
func (mr *MockAuthorizationClientMockRecorder) PurgeSubjectFromPolicies(ctx, in interface{}, opts ...interface{}) *gomock.Call
PurgeSubjectFromPolicies indicates an expected call of PurgeSubjectFromPolicies
type MockAuthorizationServer ¶
type MockAuthorizationServer struct {
// contains filtered or unexported fields
}
MockAuthorizationServer is a mock of AuthorizationServer interface
func NewMockAuthorizationServer ¶
func NewMockAuthorizationServer(ctrl *gomock.Controller) *MockAuthorizationServer
NewMockAuthorizationServer creates a new mock instance
func (*MockAuthorizationServer) CreatePolicy ¶
func (m *MockAuthorizationServer) CreatePolicy(arg0 context.Context, arg1 *CreatePolicyReq) (*CreatePolicyResp, error)
CreatePolicy mocks base method
func (*MockAuthorizationServer) DeletePolicy ¶
func (m *MockAuthorizationServer) DeletePolicy(arg0 context.Context, arg1 *DeletePolicyReq) (*DeletePolicyResp, error)
DeletePolicy mocks base method
func (*MockAuthorizationServer) EXPECT ¶
func (m *MockAuthorizationServer) EXPECT() *MockAuthorizationServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAuthorizationServer) FilterAuthorizedPairs ¶
func (m *MockAuthorizationServer) FilterAuthorizedPairs(arg0 context.Context, arg1 *FilterAuthorizedPairsReq) (*FilterAuthorizedPairsResp, error)
FilterAuthorizedPairs mocks base method
func (*MockAuthorizationServer) FilterAuthorizedProjects ¶
func (m *MockAuthorizationServer) FilterAuthorizedProjects(arg0 context.Context, arg1 *FilterAuthorizedPairsReq) (*FilterAuthorizedProjectsResp, error)
FilterAuthorizedProjects mocks base method
func (*MockAuthorizationServer) GetVersion ¶
func (m *MockAuthorizationServer) GetVersion(arg0 context.Context, arg1 *version.VersionInfoRequest) (*version.VersionInfo, error)
GetVersion mocks base method
func (*MockAuthorizationServer) IsAuthorized ¶
func (m *MockAuthorizationServer) IsAuthorized(arg0 context.Context, arg1 *IsAuthorizedReq) (*IsAuthorizedResp, error)
IsAuthorized mocks base method
func (*MockAuthorizationServer) ListPolicies ¶
func (m *MockAuthorizationServer) ListPolicies(arg0 context.Context, arg1 *ListPoliciesReq) (*ListPoliciesResp, error)
ListPolicies mocks base method
func (*MockAuthorizationServer) PurgeSubjectFromPolicies ¶
func (m *MockAuthorizationServer) PurgeSubjectFromPolicies(arg0 context.Context, arg1 *PurgeSubjectFromPoliciesReq) (*PurgeSubjectFromPoliciesResp, error)
PurgeSubjectFromPolicies mocks base method
type MockAuthorizationServerMockRecorder ¶
type MockAuthorizationServerMockRecorder struct {
// contains filtered or unexported fields
}
MockAuthorizationServerMockRecorder is the mock recorder for MockAuthorizationServer
func (*MockAuthorizationServerMockRecorder) CreatePolicy ¶
func (mr *MockAuthorizationServerMockRecorder) CreatePolicy(arg0, arg1 interface{}) *gomock.Call
CreatePolicy indicates an expected call of CreatePolicy
func (*MockAuthorizationServerMockRecorder) DeletePolicy ¶
func (mr *MockAuthorizationServerMockRecorder) DeletePolicy(arg0, arg1 interface{}) *gomock.Call
DeletePolicy indicates an expected call of DeletePolicy
func (*MockAuthorizationServerMockRecorder) FilterAuthorizedPairs ¶
func (mr *MockAuthorizationServerMockRecorder) FilterAuthorizedPairs(arg0, arg1 interface{}) *gomock.Call
FilterAuthorizedPairs indicates an expected call of FilterAuthorizedPairs
func (*MockAuthorizationServerMockRecorder) FilterAuthorizedProjects ¶
func (mr *MockAuthorizationServerMockRecorder) FilterAuthorizedProjects(arg0, arg1 interface{}) *gomock.Call
FilterAuthorizedProjects indicates an expected call of FilterAuthorizedProjects
func (*MockAuthorizationServerMockRecorder) GetVersion ¶
func (mr *MockAuthorizationServerMockRecorder) GetVersion(arg0, arg1 interface{}) *gomock.Call
GetVersion indicates an expected call of GetVersion
func (*MockAuthorizationServerMockRecorder) IsAuthorized ¶
func (mr *MockAuthorizationServerMockRecorder) IsAuthorized(arg0, arg1 interface{}) *gomock.Call
IsAuthorized indicates an expected call of IsAuthorized
func (*MockAuthorizationServerMockRecorder) ListPolicies ¶
func (mr *MockAuthorizationServerMockRecorder) ListPolicies(arg0, arg1 interface{}) *gomock.Call
ListPolicies indicates an expected call of ListPolicies
func (*MockAuthorizationServerMockRecorder) PurgeSubjectFromPolicies ¶
func (mr *MockAuthorizationServerMockRecorder) PurgeSubjectFromPolicies(arg0, arg1 interface{}) *gomock.Call
PurgeSubjectFromPolicies indicates an expected call of PurgeSubjectFromPolicies
type Pair ¶
type Pair struct { Resource string `` /* 129-byte string literal not displayed */ Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty" toml:"action,omitempty" mapstructure:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*Pair) Descriptor ¶
func (*Pair) GetResource ¶
func (*Pair) ProtoMessage ¶
func (*Pair) ProtoMessage()
func (*Pair) Validate ¶
Validate checks the field values on Pair with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Pair) XXX_DiscardUnknown ¶
func (m *Pair) XXX_DiscardUnknown()
func (*Pair) XXX_Unmarshal ¶
type PairValidationError ¶
type PairValidationError struct {
// contains filtered or unexported fields
}
PairValidationError is the validation error returned by Pair.Validate if the designated constraints aren't met.
func (PairValidationError) Cause ¶
func (e PairValidationError) Cause() error
Cause function returns cause value.
func (PairValidationError) Error ¶
func (e PairValidationError) Error() string
Error satisfies the builtin error interface
func (PairValidationError) ErrorName ¶
func (e PairValidationError) ErrorName() string
ErrorName returns error name.
func (PairValidationError) Field ¶
func (e PairValidationError) Field() string
Field function returns field value.
func (PairValidationError) Key ¶
func (e PairValidationError) Key() bool
Key function returns key value.
func (PairValidationError) Reason ¶
func (e PairValidationError) Reason() string
Reason function returns reason value.
type Policy ¶
type Policy struct { Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty" toml:"action,omitempty" mapstructure:"action,omitempty"` Subjects []string `` /* 129-byte string literal not displayed */ Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty" toml:"id,omitempty" mapstructure:"id,omitempty"` Resource string `` /* 129-byte string literal not displayed */ Effect string `protobuf:"bytes,5,opt,name=effect,proto3" json:"effect,omitempty" toml:"effect,omitempty" mapstructure:"effect,omitempty"` CreatedAt *timestamp.Timestamp `` /* 152-byte string literal not displayed */ UpdatedAt *timestamp.Timestamp `` /* 152-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*Policy) Descriptor ¶
func (*Policy) GetCreatedAt ¶
func (*Policy) GetResource ¶
func (*Policy) GetSubjects ¶
func (*Policy) GetUpdatedAt ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) Validate ¶
Validate checks the field values on Policy with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Policy) XXX_DiscardUnknown ¶
func (m *Policy) XXX_DiscardUnknown()
func (*Policy) XXX_Marshal ¶
func (*Policy) XXX_Unmarshal ¶
type PolicyValidationError ¶
type PolicyValidationError struct {
// contains filtered or unexported fields
}
PolicyValidationError is the validation error returned by Policy.Validate if the designated constraints aren't met.
func (PolicyValidationError) Cause ¶
func (e PolicyValidationError) Cause() error
Cause function returns cause value.
func (PolicyValidationError) Error ¶
func (e PolicyValidationError) Error() string
Error satisfies the builtin error interface
func (PolicyValidationError) ErrorName ¶
func (e PolicyValidationError) ErrorName() string
ErrorName returns error name.
func (PolicyValidationError) Field ¶
func (e PolicyValidationError) Field() string
Field function returns field value.
func (PolicyValidationError) Key ¶
func (e PolicyValidationError) Key() bool
Key function returns key value.
func (PolicyValidationError) Reason ¶
func (e PolicyValidationError) Reason() string
Reason function returns reason value.
type PurgeSubjectFromPoliciesReq ¶
type PurgeSubjectFromPoliciesReq struct { // Q: Right now, this allows purging subject wildcards (like "user:*"). // -- Do we want to restrict this to only complete subjects? Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty" toml:"subject,omitempty" mapstructure:"subject,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*PurgeSubjectFromPoliciesReq) Descriptor ¶
func (*PurgeSubjectFromPoliciesReq) Descriptor() ([]byte, []int)
func (*PurgeSubjectFromPoliciesReq) GetSubject ¶
func (m *PurgeSubjectFromPoliciesReq) GetSubject() string
func (*PurgeSubjectFromPoliciesReq) ProtoMessage ¶
func (*PurgeSubjectFromPoliciesReq) ProtoMessage()
func (*PurgeSubjectFromPoliciesReq) Reset ¶
func (m *PurgeSubjectFromPoliciesReq) Reset()
func (*PurgeSubjectFromPoliciesReq) String ¶
func (m *PurgeSubjectFromPoliciesReq) String() string
func (*PurgeSubjectFromPoliciesReq) Validate ¶
func (m *PurgeSubjectFromPoliciesReq) Validate() error
Validate checks the field values on PurgeSubjectFromPoliciesReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PurgeSubjectFromPoliciesReq) XXX_DiscardUnknown ¶
func (m *PurgeSubjectFromPoliciesReq) XXX_DiscardUnknown()
func (*PurgeSubjectFromPoliciesReq) XXX_Marshal ¶
func (m *PurgeSubjectFromPoliciesReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PurgeSubjectFromPoliciesReq) XXX_Merge ¶
func (dst *PurgeSubjectFromPoliciesReq) XXX_Merge(src proto.Message)
func (*PurgeSubjectFromPoliciesReq) XXX_Size ¶
func (m *PurgeSubjectFromPoliciesReq) XXX_Size() int
func (*PurgeSubjectFromPoliciesReq) XXX_Unmarshal ¶
func (m *PurgeSubjectFromPoliciesReq) XXX_Unmarshal(b []byte) error
type PurgeSubjectFromPoliciesReqValidationError ¶
type PurgeSubjectFromPoliciesReqValidationError struct {
// contains filtered or unexported fields
}
PurgeSubjectFromPoliciesReqValidationError is the validation error returned by PurgeSubjectFromPoliciesReq.Validate if the designated constraints aren't met.
func (PurgeSubjectFromPoliciesReqValidationError) Cause ¶
func (e PurgeSubjectFromPoliciesReqValidationError) Cause() error
Cause function returns cause value.
func (PurgeSubjectFromPoliciesReqValidationError) Error ¶
func (e PurgeSubjectFromPoliciesReqValidationError) Error() string
Error satisfies the builtin error interface
func (PurgeSubjectFromPoliciesReqValidationError) ErrorName ¶
func (e PurgeSubjectFromPoliciesReqValidationError) ErrorName() string
ErrorName returns error name.
func (PurgeSubjectFromPoliciesReqValidationError) Field ¶
func (e PurgeSubjectFromPoliciesReqValidationError) Field() string
Field function returns field value.
func (PurgeSubjectFromPoliciesReqValidationError) Key ¶
func (e PurgeSubjectFromPoliciesReqValidationError) Key() bool
Key function returns key value.
func (PurgeSubjectFromPoliciesReqValidationError) Reason ¶
func (e PurgeSubjectFromPoliciesReqValidationError) Reason() string
Reason function returns reason value.
type PurgeSubjectFromPoliciesResp ¶
type PurgeSubjectFromPoliciesResp struct { Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty" toml:"ids,omitempty" mapstructure:"ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*PurgeSubjectFromPoliciesResp) Descriptor ¶
func (*PurgeSubjectFromPoliciesResp) Descriptor() ([]byte, []int)
func (*PurgeSubjectFromPoliciesResp) GetIds ¶
func (m *PurgeSubjectFromPoliciesResp) GetIds() []string
func (*PurgeSubjectFromPoliciesResp) ProtoMessage ¶
func (*PurgeSubjectFromPoliciesResp) ProtoMessage()
func (*PurgeSubjectFromPoliciesResp) Reset ¶
func (m *PurgeSubjectFromPoliciesResp) Reset()
func (*PurgeSubjectFromPoliciesResp) String ¶
func (m *PurgeSubjectFromPoliciesResp) String() string
func (*PurgeSubjectFromPoliciesResp) Validate ¶
func (m *PurgeSubjectFromPoliciesResp) Validate() error
Validate checks the field values on PurgeSubjectFromPoliciesResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PurgeSubjectFromPoliciesResp) XXX_DiscardUnknown ¶
func (m *PurgeSubjectFromPoliciesResp) XXX_DiscardUnknown()
func (*PurgeSubjectFromPoliciesResp) XXX_Marshal ¶
func (m *PurgeSubjectFromPoliciesResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PurgeSubjectFromPoliciesResp) XXX_Merge ¶
func (dst *PurgeSubjectFromPoliciesResp) XXX_Merge(src proto.Message)
func (*PurgeSubjectFromPoliciesResp) XXX_Size ¶
func (m *PurgeSubjectFromPoliciesResp) XXX_Size() int
func (*PurgeSubjectFromPoliciesResp) XXX_Unmarshal ¶
func (m *PurgeSubjectFromPoliciesResp) XXX_Unmarshal(b []byte) error
type PurgeSubjectFromPoliciesRespValidationError ¶
type PurgeSubjectFromPoliciesRespValidationError struct {
// contains filtered or unexported fields
}
PurgeSubjectFromPoliciesRespValidationError is the validation error returned by PurgeSubjectFromPoliciesResp.Validate if the designated constraints aren't met.
func (PurgeSubjectFromPoliciesRespValidationError) Cause ¶
func (e PurgeSubjectFromPoliciesRespValidationError) Cause() error
Cause function returns cause value.
func (PurgeSubjectFromPoliciesRespValidationError) Error ¶
func (e PurgeSubjectFromPoliciesRespValidationError) Error() string
Error satisfies the builtin error interface
func (PurgeSubjectFromPoliciesRespValidationError) ErrorName ¶
func (e PurgeSubjectFromPoliciesRespValidationError) ErrorName() string
ErrorName returns error name.
func (PurgeSubjectFromPoliciesRespValidationError) Field ¶
func (e PurgeSubjectFromPoliciesRespValidationError) Field() string
Field function returns field value.
func (PurgeSubjectFromPoliciesRespValidationError) Key ¶
func (e PurgeSubjectFromPoliciesRespValidationError) Key() bool
Key function returns key value.
func (PurgeSubjectFromPoliciesRespValidationError) Reason ¶
func (e PurgeSubjectFromPoliciesRespValidationError) Reason() string
Reason function returns reason value.