authz

package
v0.0.0-...-0490640 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package authz is a generated GoMock package.

Index

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

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 (*AuthorizationServerMock) DeletePolicy

func (*AuthorizationServerMock) FilterAuthorizedPairs

func (*AuthorizationServerMock) FilterAuthorizedProjects

func (*AuthorizationServerMock) GetVersion

func (*AuthorizationServerMock) IsAuthorized

func (*AuthorizationServerMock) ListPolicies

func (*AuthorizationServerMock) PurgeSubjectFromPolicies

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

Cause function returns cause value.

func (CreatePolicyReqValidationError) Error

Error satisfies the builtin error interface

func (CreatePolicyReqValidationError) ErrorName

func (e CreatePolicyReqValidationError) ErrorName() string

ErrorName returns error name.

func (CreatePolicyReqValidationError) Field

Field function returns field value.

func (CreatePolicyReqValidationError) Key

Key function returns key value.

func (CreatePolicyReqValidationError) Reason

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

Cause function returns cause value.

func (CreatePolicyRespValidationError) Error

Error satisfies the builtin error interface

func (CreatePolicyRespValidationError) ErrorName

ErrorName returns error name.

func (CreatePolicyRespValidationError) Field

Field function returns field value.

func (CreatePolicyRespValidationError) Key

Key function returns key value.

func (CreatePolicyRespValidationError) Reason

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

Cause function returns cause value.

func (DeletePolicyReqValidationError) Error

Error satisfies the builtin error interface

func (DeletePolicyReqValidationError) ErrorName

func (e DeletePolicyReqValidationError) ErrorName() string

ErrorName returns error name.

func (DeletePolicyReqValidationError) Field

Field function returns field value.

func (DeletePolicyReqValidationError) Key

Key function returns key value.

func (DeletePolicyReqValidationError) Reason

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

Cause function returns cause value.

func (DeletePolicyRespValidationError) Error

Error satisfies the builtin error interface

func (DeletePolicyRespValidationError) ErrorName

ErrorName returns error name.

func (DeletePolicyRespValidationError) Field

Field function returns field value.

func (DeletePolicyRespValidationError) Key

Key function returns key value.

func (DeletePolicyRespValidationError) Reason

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

Cause function returns cause value.

func (FilterAuthorizedPairsReqValidationError) Error

Error satisfies the builtin error interface

func (FilterAuthorizedPairsReqValidationError) ErrorName

ErrorName returns error name.

func (FilterAuthorizedPairsReqValidationError) Field

Field function returns field value.

func (FilterAuthorizedPairsReqValidationError) Key

Key function returns key value.

func (FilterAuthorizedPairsReqValidationError) Reason

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

Cause function returns cause value.

func (FilterAuthorizedPairsRespValidationError) Error

Error satisfies the builtin error interface

func (FilterAuthorizedPairsRespValidationError) ErrorName

ErrorName returns error name.

func (FilterAuthorizedPairsRespValidationError) Field

Field function returns field value.

func (FilterAuthorizedPairsRespValidationError) Key

Key function returns key value.

func (FilterAuthorizedPairsRespValidationError) Reason

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 (*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

Cause function returns cause value.

func (FilterAuthorizedProjectsRespValidationError) Error

Error satisfies the builtin error interface

func (FilterAuthorizedProjectsRespValidationError) ErrorName

ErrorName returns error name.

func (FilterAuthorizedProjectsRespValidationError) Field

Field function returns field value.

func (FilterAuthorizedProjectsRespValidationError) Key

Key function returns key value.

func (FilterAuthorizedProjectsRespValidationError) Reason

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

Cause function returns cause value.

func (GetVersionReqValidationError) Error

Error satisfies the builtin error interface

func (GetVersionReqValidationError) ErrorName

func (e GetVersionReqValidationError) ErrorName() string

ErrorName returns error name.

func (GetVersionReqValidationError) Field

Field function returns field value.

func (GetVersionReqValidationError) Key

Key function returns key value.

func (GetVersionReqValidationError) Reason

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

Cause function returns cause value.

func (IsAuthorizedReqValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedReqValidationError) ErrorName

func (e IsAuthorizedReqValidationError) ErrorName() string

ErrorName returns error name.

func (IsAuthorizedReqValidationError) Field

Field function returns field value.

func (IsAuthorizedReqValidationError) Key

Key function returns key value.

func (IsAuthorizedReqValidationError) Reason

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

Cause function returns cause value.

func (IsAuthorizedRespValidationError) Error

Error satisfies the builtin error interface

func (IsAuthorizedRespValidationError) ErrorName

ErrorName returns error name.

func (IsAuthorizedRespValidationError) Field

Field function returns field value.

func (IsAuthorizedRespValidationError) Key

Key function returns key value.

func (IsAuthorizedRespValidationError) Reason

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

Cause function returns cause value.

func (ListPoliciesReqValidationError) Error

Error satisfies the builtin error interface

func (ListPoliciesReqValidationError) ErrorName

func (e ListPoliciesReqValidationError) ErrorName() string

ErrorName returns error name.

func (ListPoliciesReqValidationError) Field

Field function returns field value.

func (ListPoliciesReqValidationError) Key

Key function returns key value.

func (ListPoliciesReqValidationError) Reason

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

Cause function returns cause value.

func (ListPoliciesRespValidationError) Error

Error satisfies the builtin error interface

func (ListPoliciesRespValidationError) ErrorName

ErrorName returns error name.

func (ListPoliciesRespValidationError) Field

Field function returns field value.

func (ListPoliciesRespValidationError) Key

Key function returns key value.

func (ListPoliciesRespValidationError) Reason

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

CreatePolicy mocks base method

func (*MockAuthorizationClient) DeletePolicy

DeletePolicy mocks base method

func (*MockAuthorizationClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAuthorizationClient) FilterAuthorizedPairs

FilterAuthorizedPairs mocks base method

func (*MockAuthorizationClient) FilterAuthorizedProjects

FilterAuthorizedProjects mocks base method

func (*MockAuthorizationClient) GetVersion

GetVersion mocks base method

func (*MockAuthorizationClient) IsAuthorized

IsAuthorized mocks base method

func (*MockAuthorizationClient) ListPolicies

ListPolicies mocks base method

func (*MockAuthorizationClient) PurgeSubjectFromPolicies

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

CreatePolicy mocks base method

func (*MockAuthorizationServer) DeletePolicy

DeletePolicy mocks base method

func (*MockAuthorizationServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockAuthorizationServer) FilterAuthorizedPairs

FilterAuthorizedPairs mocks base method

func (*MockAuthorizationServer) FilterAuthorizedProjects

FilterAuthorizedProjects mocks base method

func (*MockAuthorizationServer) GetVersion

GetVersion mocks base method

func (*MockAuthorizationServer) IsAuthorized

IsAuthorized mocks base method

func (*MockAuthorizationServer) ListPolicies

ListPolicies mocks base method

func (*MockAuthorizationServer) PurgeSubjectFromPolicies

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) Descriptor() ([]byte, []int)

func (*Pair) GetAction

func (m *Pair) GetAction() string

func (*Pair) GetResource

func (m *Pair) GetResource() string

func (*Pair) ProtoMessage

func (*Pair) ProtoMessage()

func (*Pair) Reset

func (m *Pair) Reset()

func (*Pair) String

func (m *Pair) String() string

func (*Pair) Validate

func (m *Pair) Validate() error

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_Marshal

func (m *Pair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pair) XXX_Merge

func (dst *Pair) XXX_Merge(src proto.Message)

func (*Pair) XXX_Size

func (m *Pair) XXX_Size() int

func (*Pair) XXX_Unmarshal

func (m *Pair) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Policy) GetAction

func (m *Policy) GetAction() string

func (*Policy) GetCreatedAt

func (m *Policy) GetCreatedAt() *timestamp.Timestamp

func (*Policy) GetEffect

func (m *Policy) GetEffect() string

func (*Policy) GetId

func (m *Policy) GetId() string

func (*Policy) GetResource

func (m *Policy) GetResource() string

func (*Policy) GetSubjects

func (m *Policy) GetSubjects() []string

func (*Policy) GetUpdatedAt

func (m *Policy) GetUpdatedAt() *timestamp.Timestamp

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) String

func (m *Policy) String() string

func (*Policy) Validate

func (m *Policy) Validate() error

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 (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Policy) XXX_Merge

func (dst *Policy) XXX_Merge(src proto.Message)

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

func (m *Policy) XXX_Unmarshal(b []byte) error

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

Cause function returns cause value.

func (PurgeSubjectFromPoliciesReqValidationError) Error

Error satisfies the builtin error interface

func (PurgeSubjectFromPoliciesReqValidationError) ErrorName

ErrorName returns error name.

func (PurgeSubjectFromPoliciesReqValidationError) Field

Field function returns field value.

func (PurgeSubjectFromPoliciesReqValidationError) Key

Key function returns key value.

func (PurgeSubjectFromPoliciesReqValidationError) Reason

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 (*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

Cause function returns cause value.

func (PurgeSubjectFromPoliciesRespValidationError) Error

Error satisfies the builtin error interface

func (PurgeSubjectFromPoliciesRespValidationError) ErrorName

ErrorName returns error name.

func (PurgeSubjectFromPoliciesRespValidationError) Field

Field function returns field value.

func (PurgeSubjectFromPoliciesRespValidationError) Key

Key function returns key value.

func (PurgeSubjectFromPoliciesRespValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis
Package v2 is a generated GoMock package.
Package v2 is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL