common

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: 19 Imported by: 0

Documentation

Index

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

Cause function returns cause value.

func (ErrorShouldUseV1ValidationError) Error

Error satisfies the builtin error interface

func (ErrorShouldUseV1ValidationError) ErrorName

ErrorName returns error name.

func (ErrorShouldUseV1ValidationError) Field

Field function returns field value.

func (ErrorShouldUseV1ValidationError) Key

Key function returns key value.

func (ErrorShouldUseV1ValidationError) Reason

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

Cause function returns cause value.

func (ErrorShouldUseV2ValidationError) Error

Error satisfies the builtin error interface

func (ErrorShouldUseV2ValidationError) ErrorName

ErrorName returns error name.

func (ErrorShouldUseV2ValidationError) Field

Field function returns field value.

func (ErrorShouldUseV2ValidationError) Key

Key function returns key value.

func (ErrorShouldUseV2ValidationError) Reason

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

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 (*SubjectPurgeServerMock) Reset

func (m *SubjectPurgeServerMock) Reset()

Reset resets all overridden functions

Jump to

Keyboard shortcuts

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