transformation_ee

package
v1.5.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	// Identifier for this action.
	// Used mostly to help ID specific actions in logs.
	// If left null will default to unknown
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// List of regexes to apply to the response body to match data which should be masked
	// They will be applied iteratively in the order which they are specified
	Regex []string `protobuf:"bytes,2,rep,name=regex,proto3" json:"regex,omitempty"`
	// If specified, this rule will not actually be applied, but only logged.
	Shadow bool `protobuf:"varint,3,opt,name=shadow,proto3" json:"shadow,omitempty"`
	// The percent of the string which should be masked.
	// If not set, defaults to 75%
	Percent *_type.Percent `protobuf:"bytes,4,opt,name=percent,proto3" json:"percent,omitempty"`
	// The character which should overwrite the masked data
	// If left empty, defaults to "X"
	MaskChar             string   `protobuf:"bytes,5,opt,name=mask_char,json=maskChar,proto3" json:"mask_char,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Action) Descriptor

func (*Action) Descriptor() ([]byte, []int)

func (*Action) GetMaskChar

func (m *Action) GetMaskChar() string

func (*Action) GetName

func (m *Action) GetName() string

func (*Action) GetPercent

func (m *Action) GetPercent() *_type.Percent

func (*Action) GetRegex

func (m *Action) GetRegex() []string

func (*Action) GetShadow

func (m *Action) GetShadow() bool

func (*Action) Hash added in v1.2.13

func (m *Action) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Action) ProtoMessage

func (*Action) ProtoMessage()

func (*Action) Reset

func (m *Action) Reset()

func (*Action) String

func (m *Action) String() string

func (*Action) XXX_DiscardUnknown

func (m *Action) XXX_DiscardUnknown()

func (*Action) XXX_Marshal

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

func (*Action) XXX_Merge

func (m *Action) XXX_Merge(src proto.Message)

func (*Action) XXX_Size

func (m *Action) XXX_Size() int

func (*Action) XXX_Unmarshal

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

type DlpTransformation

type DlpTransformation struct {
	// list of actions to apply
	Actions              []*Action `protobuf:"bytes,1,rep,name=actions,proto3" json:"actions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*DlpTransformation) Descriptor

func (*DlpTransformation) Descriptor() ([]byte, []int)

func (*DlpTransformation) GetActions

func (m *DlpTransformation) GetActions() []*Action

func (*DlpTransformation) Hash added in v1.2.13

func (m *DlpTransformation) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*DlpTransformation) ProtoMessage

func (*DlpTransformation) ProtoMessage()

func (*DlpTransformation) Reset

func (m *DlpTransformation) Reset()

func (*DlpTransformation) String

func (m *DlpTransformation) String() string

func (*DlpTransformation) XXX_DiscardUnknown

func (m *DlpTransformation) XXX_DiscardUnknown()

func (*DlpTransformation) XXX_Marshal

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

func (*DlpTransformation) XXX_Merge

func (m *DlpTransformation) XXX_Merge(src proto.Message)

func (*DlpTransformation) XXX_Size

func (m *DlpTransformation) XXX_Size() int

func (*DlpTransformation) XXX_Unmarshal

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

type FilterTransformations

type FilterTransformations struct {
	// Specifies transformations based on the route matches. The first matched transformation will be
	// applied. If there are overlapped match conditions, please put the most specific match first.
	Transformations      []*TransformationRule `protobuf:"bytes,1,rep,name=transformations,proto3" json:"transformations,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*FilterTransformations) Descriptor

func (*FilterTransformations) Descriptor() ([]byte, []int)

func (*FilterTransformations) GetTransformations

func (m *FilterTransformations) GetTransformations() []*TransformationRule

func (*FilterTransformations) Hash added in v1.2.13

func (m *FilterTransformations) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*FilterTransformations) ProtoMessage

func (*FilterTransformations) ProtoMessage()

func (*FilterTransformations) Reset

func (m *FilterTransformations) Reset()

func (*FilterTransformations) String

func (m *FilterTransformations) String() string

func (*FilterTransformations) XXX_DiscardUnknown

func (m *FilterTransformations) XXX_DiscardUnknown()

func (*FilterTransformations) XXX_Marshal

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

func (*FilterTransformations) XXX_Merge

func (m *FilterTransformations) XXX_Merge(src proto.Message)

func (*FilterTransformations) XXX_Size

func (m *FilterTransformations) XXX_Size() int

func (*FilterTransformations) XXX_Unmarshal

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

type RouteTransformations

type RouteTransformations struct {
	RequestTransformation *Transformation `protobuf:"bytes,1,opt,name=request_transformation,json=requestTransformation,proto3" json:"request_transformation,omitempty"`
	// clear the route cache if the request transformation was applied
	ClearRouteCache        bool            `protobuf:"varint,3,opt,name=clear_route_cache,json=clearRouteCache,proto3" json:"clear_route_cache,omitempty"`
	ResponseTransformation *Transformation `` /* 127-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{}        `json:"-"`
	XXX_unrecognized       []byte          `json:"-"`
	XXX_sizecache          int32           `json:"-"`
}

func (*RouteTransformations) Descriptor

func (*RouteTransformations) Descriptor() ([]byte, []int)

func (*RouteTransformations) GetClearRouteCache

func (m *RouteTransformations) GetClearRouteCache() bool

func (*RouteTransformations) GetRequestTransformation

func (m *RouteTransformations) GetRequestTransformation() *Transformation

func (*RouteTransformations) GetResponseTransformation

func (m *RouteTransformations) GetResponseTransformation() *Transformation

func (*RouteTransformations) Hash added in v1.2.13

func (m *RouteTransformations) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*RouteTransformations) ProtoMessage

func (*RouteTransformations) ProtoMessage()

func (*RouteTransformations) Reset

func (m *RouteTransformations) Reset()

func (*RouteTransformations) String

func (m *RouteTransformations) String() string

func (*RouteTransformations) XXX_DiscardUnknown

func (m *RouteTransformations) XXX_DiscardUnknown()

func (*RouteTransformations) XXX_Marshal

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

func (*RouteTransformations) XXX_Merge

func (m *RouteTransformations) XXX_Merge(src proto.Message)

func (*RouteTransformations) XXX_Size

func (m *RouteTransformations) XXX_Size() int

func (*RouteTransformations) XXX_Unmarshal

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

type Transformation

type Transformation struct {
	// Template is in the transformed request language domain
	//
	// Types that are valid to be assigned to TransformationType:
	//	*Transformation_DlpTransformation
	TransformationType   isTransformation_TransformationType `protobuf_oneof:"transformation_type"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

func (*Transformation) Descriptor

func (*Transformation) Descriptor() ([]byte, []int)

func (*Transformation) GetDlpTransformation

func (m *Transformation) GetDlpTransformation() *DlpTransformation

func (*Transformation) GetTransformationType

func (m *Transformation) GetTransformationType() isTransformation_TransformationType

func (*Transformation) Hash added in v1.2.13

func (m *Transformation) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*Transformation) ProtoMessage

func (*Transformation) ProtoMessage()

func (*Transformation) Reset

func (m *Transformation) Reset()

func (*Transformation) String

func (m *Transformation) String() string

func (*Transformation) XXX_DiscardUnknown

func (m *Transformation) XXX_DiscardUnknown()

func (*Transformation) XXX_Marshal

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

func (*Transformation) XXX_Merge

func (m *Transformation) XXX_Merge(src proto.Message)

func (*Transformation) XXX_OneofWrappers

func (*Transformation) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Transformation) XXX_Size

func (m *Transformation) XXX_Size() int

func (*Transformation) XXX_Unmarshal

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

type TransformationRule

type TransformationRule struct {
	// The route matching parameter. Only when the match is satisfied, the "requires" field will
	// apply.
	//
	// For example: following match will match all requests.
	//
	// .. code-block:: yaml
	//
	//    match:
	//      prefix: /
	//
	Match *route.RouteMatch `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	// transformation to perform
	RouteTransformations *RouteTransformations `protobuf:"bytes,2,opt,name=route_transformations,json=routeTransformations,proto3" json:"route_transformations,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*TransformationRule) Descriptor

func (*TransformationRule) Descriptor() ([]byte, []int)

func (*TransformationRule) GetMatch

func (m *TransformationRule) GetMatch() *route.RouteMatch

func (*TransformationRule) GetRouteTransformations

func (m *TransformationRule) GetRouteTransformations() *RouteTransformations

func (*TransformationRule) Hash added in v1.2.13

func (m *TransformationRule) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*TransformationRule) ProtoMessage

func (*TransformationRule) ProtoMessage()

func (*TransformationRule) Reset

func (m *TransformationRule) Reset()

func (*TransformationRule) String

func (m *TransformationRule) String() string

func (*TransformationRule) XXX_DiscardUnknown

func (m *TransformationRule) XXX_DiscardUnknown()

func (*TransformationRule) XXX_Marshal

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

func (*TransformationRule) XXX_Merge

func (m *TransformationRule) XXX_Merge(src proto.Message)

func (*TransformationRule) XXX_Size

func (m *TransformationRule) XXX_Size() int

func (*TransformationRule) XXX_Unmarshal

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

type Transformation_DlpTransformation

type Transformation_DlpTransformation struct {
	DlpTransformation *DlpTransformation `protobuf:"bytes,1,opt,name=dlp_transformation,json=dlpTransformation,proto3,oneof" json:"dlp_transformation,omitempty"`
}

Jump to

Keyboard shortcuts

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