Documentation
¶
Index ¶
- func RegisterSubjectPurgeServer(s *grpc.Server, srv SubjectPurgeServer)
- type ErrorShouldUseV1
- func (*ErrorShouldUseV1) Descriptor() ([]byte, []int)
- func (*ErrorShouldUseV1) ProtoMessage()
- func (m *ErrorShouldUseV1) Reset()
- func (m *ErrorShouldUseV1) String() string
- func (m *ErrorShouldUseV1) Validate() error
- func (m *ErrorShouldUseV1) XXX_DiscardUnknown()
- func (m *ErrorShouldUseV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ErrorShouldUseV1) XXX_Merge(src proto.Message)
- func (m *ErrorShouldUseV1) XXX_Size() int
- func (m *ErrorShouldUseV1) XXX_Unmarshal(b []byte) error
- type ErrorShouldUseV1ValidationError
- func (e ErrorShouldUseV1ValidationError) Cause() error
- func (e ErrorShouldUseV1ValidationError) Error() string
- func (e ErrorShouldUseV1ValidationError) ErrorName() string
- func (e ErrorShouldUseV1ValidationError) Field() string
- func (e ErrorShouldUseV1ValidationError) Key() bool
- func (e ErrorShouldUseV1ValidationError) Reason() string
- type ErrorShouldUseV2
- func (*ErrorShouldUseV2) Descriptor() ([]byte, []int)
- func (*ErrorShouldUseV2) ProtoMessage()
- func (m *ErrorShouldUseV2) Reset()
- func (m *ErrorShouldUseV2) String() string
- func (m *ErrorShouldUseV2) Validate() error
- func (m *ErrorShouldUseV2) XXX_DiscardUnknown()
- func (m *ErrorShouldUseV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ErrorShouldUseV2) XXX_Merge(src proto.Message)
- func (m *ErrorShouldUseV2) XXX_Size() int
- func (m *ErrorShouldUseV2) XXX_Unmarshal(b []byte) error
- type ErrorShouldUseV2ValidationError
- func (e ErrorShouldUseV2ValidationError) Cause() error
- func (e ErrorShouldUseV2ValidationError) Error() string
- func (e ErrorShouldUseV2ValidationError) ErrorName() string
- func (e ErrorShouldUseV2ValidationError) Field() string
- func (e ErrorShouldUseV2ValidationError) Key() bool
- func (e ErrorShouldUseV2ValidationError) Reason() string
- 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) GetPoliciesV1() []string
- func (m *PurgeSubjectFromPoliciesResp) GetPoliciesV2() []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
- type SubjectPurgeClient
- type SubjectPurgeServer
- type SubjectPurgeServerMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSubjectPurgeServer ¶
func RegisterSubjectPurgeServer(s *grpc.Server, srv SubjectPurgeServer)
Types ¶
type ErrorShouldUseV1 ¶
type ErrorShouldUseV1 struct { XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*ErrorShouldUseV1) Descriptor ¶
func (*ErrorShouldUseV1) Descriptor() ([]byte, []int)
func (*ErrorShouldUseV1) ProtoMessage ¶
func (*ErrorShouldUseV1) ProtoMessage()
func (*ErrorShouldUseV1) Reset ¶
func (m *ErrorShouldUseV1) Reset()
func (*ErrorShouldUseV1) String ¶
func (m *ErrorShouldUseV1) String() string
func (*ErrorShouldUseV1) Validate ¶
func (m *ErrorShouldUseV1) Validate() error
Validate checks the field values on ErrorShouldUseV1 with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ErrorShouldUseV1) XXX_DiscardUnknown ¶
func (m *ErrorShouldUseV1) XXX_DiscardUnknown()
func (*ErrorShouldUseV1) XXX_Marshal ¶
func (m *ErrorShouldUseV1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ErrorShouldUseV1) XXX_Merge ¶
func (dst *ErrorShouldUseV1) XXX_Merge(src proto.Message)
func (*ErrorShouldUseV1) XXX_Size ¶
func (m *ErrorShouldUseV1) XXX_Size() int
func (*ErrorShouldUseV1) XXX_Unmarshal ¶
func (m *ErrorShouldUseV1) XXX_Unmarshal(b []byte) error
type ErrorShouldUseV1ValidationError ¶
type ErrorShouldUseV1ValidationError struct {
// contains filtered or unexported fields
}
ErrorShouldUseV1ValidationError is the validation error returned by ErrorShouldUseV1.Validate if the designated constraints aren't met.
func (ErrorShouldUseV1ValidationError) Cause ¶
func (e ErrorShouldUseV1ValidationError) Cause() error
Cause function returns cause value.
func (ErrorShouldUseV1ValidationError) Error ¶
func (e ErrorShouldUseV1ValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorShouldUseV1ValidationError) ErrorName ¶
func (e ErrorShouldUseV1ValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorShouldUseV1ValidationError) Field ¶
func (e ErrorShouldUseV1ValidationError) Field() string
Field function returns field value.
func (ErrorShouldUseV1ValidationError) Key ¶
func (e ErrorShouldUseV1ValidationError) Key() bool
Key function returns key value.
func (ErrorShouldUseV1ValidationError) Reason ¶
func (e ErrorShouldUseV1ValidationError) Reason() string
Reason function returns reason value.
type ErrorShouldUseV2 ¶
type ErrorShouldUseV2 struct { XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
func (*ErrorShouldUseV2) Descriptor ¶
func (*ErrorShouldUseV2) Descriptor() ([]byte, []int)
func (*ErrorShouldUseV2) ProtoMessage ¶
func (*ErrorShouldUseV2) ProtoMessage()
func (*ErrorShouldUseV2) Reset ¶
func (m *ErrorShouldUseV2) Reset()
func (*ErrorShouldUseV2) String ¶
func (m *ErrorShouldUseV2) String() string
func (*ErrorShouldUseV2) Validate ¶
func (m *ErrorShouldUseV2) Validate() error
Validate checks the field values on ErrorShouldUseV2 with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*ErrorShouldUseV2) XXX_DiscardUnknown ¶
func (m *ErrorShouldUseV2) XXX_DiscardUnknown()
func (*ErrorShouldUseV2) XXX_Marshal ¶
func (m *ErrorShouldUseV2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ErrorShouldUseV2) XXX_Merge ¶
func (dst *ErrorShouldUseV2) XXX_Merge(src proto.Message)
func (*ErrorShouldUseV2) XXX_Size ¶
func (m *ErrorShouldUseV2) XXX_Size() int
func (*ErrorShouldUseV2) XXX_Unmarshal ¶
func (m *ErrorShouldUseV2) XXX_Unmarshal(b []byte) error
type ErrorShouldUseV2ValidationError ¶
type ErrorShouldUseV2ValidationError struct {
// contains filtered or unexported fields
}
ErrorShouldUseV2ValidationError is the validation error returned by ErrorShouldUseV2.Validate if the designated constraints aren't met.
func (ErrorShouldUseV2ValidationError) Cause ¶
func (e ErrorShouldUseV2ValidationError) Cause() error
Cause function returns cause value.
func (ErrorShouldUseV2ValidationError) Error ¶
func (e ErrorShouldUseV2ValidationError) Error() string
Error satisfies the builtin error interface
func (ErrorShouldUseV2ValidationError) ErrorName ¶
func (e ErrorShouldUseV2ValidationError) ErrorName() string
ErrorName returns error name.
func (ErrorShouldUseV2ValidationError) Field ¶
func (e ErrorShouldUseV2ValidationError) Field() string
Field function returns field value.
func (ErrorShouldUseV2ValidationError) Key ¶
func (e ErrorShouldUseV2ValidationError) Key() bool
Key function returns key value.
func (ErrorShouldUseV2ValidationError) Reason ¶
func (e ErrorShouldUseV2ValidationError) 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 { PoliciesV1 []string `` /* 157-byte string literal not displayed */ PoliciesV2 []string `` /* 157-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"` }
PurgeSubjectFromPolicies() removes the passed subject from every policy, IAM v1 _and_ IAM v2. We thus differentiate the returned "affected" arrays.
func (*PurgeSubjectFromPoliciesResp) Descriptor ¶
func (*PurgeSubjectFromPoliciesResp) Descriptor() ([]byte, []int)
func (*PurgeSubjectFromPoliciesResp) GetPoliciesV1 ¶
func (m *PurgeSubjectFromPoliciesResp) GetPoliciesV1() []string
func (*PurgeSubjectFromPoliciesResp) GetPoliciesV2 ¶
func (m *PurgeSubjectFromPoliciesResp) GetPoliciesV2() []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.
type SubjectPurgeClient ¶
type SubjectPurgeClient interface {
PurgeSubjectFromPolicies(ctx context.Context, in *PurgeSubjectFromPoliciesReq, opts ...grpc.CallOption) (*PurgeSubjectFromPoliciesResp, error)
}
SubjectPurgeClient is the client API for SubjectPurge service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSubjectPurgeClient ¶
func NewSubjectPurgeClient(cc *grpc.ClientConn) SubjectPurgeClient
type SubjectPurgeServer ¶
type SubjectPurgeServer interface {
PurgeSubjectFromPolicies(context.Context, *PurgeSubjectFromPoliciesReq) (*PurgeSubjectFromPoliciesResp, error)
}
SubjectPurgeServer is the server API for SubjectPurge service.
type SubjectPurgeServerMock ¶
type SubjectPurgeServerMock struct { PurgeSubjectFromPoliciesFunc func(context.Context, *PurgeSubjectFromPoliciesReq) (*PurgeSubjectFromPoliciesResp, error) // contains filtered or unexported fields }
SubjectPurgeServerMock is the mock-what-you-want struct that stubs all not-overridden methods with "not implemented" returns
func NewSubjectPurgeServerMock ¶
func NewSubjectPurgeServerMock() *SubjectPurgeServerMock
NewSubjectPurgeServerMock gives you a fresh instance of SubjectPurgeServerMock.
func NewSubjectPurgeServerMockWithoutValidation ¶
func NewSubjectPurgeServerMockWithoutValidation() *SubjectPurgeServerMock
NewSubjectPurgeServerMockWithoutValidation gives you a fresh instance of SubjectPurgeServerMock which does not attempt to validate requests before passing them to their respective '*Func'.
func (*SubjectPurgeServerMock) PurgeSubjectFromPolicies ¶
func (m *SubjectPurgeServerMock) PurgeSubjectFromPolicies(ctx context.Context, req *PurgeSubjectFromPoliciesReq) (*PurgeSubjectFromPoliciesResp, error)
func (*SubjectPurgeServerMock) Reset ¶
func (m *SubjectPurgeServerMock) Reset()
Reset resets all overridden functions