Versions in this module Expand all Collapse all v0 v0.12.4 Jan 17, 2024 Changes in this version + var AttrMatch_name = map[int32]string + var AttrMatch_value = map[string]int32 + var ErrIntOverflowPolicy = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthPolicy = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupPolicy = fmt.Errorf("proto: unexpected end of group") + var MatchType_name = map[int32]string + var MatchType_value = map[string]int32 + var PolicyAction_name = map[int32]string + var PolicyAction_value = map[string]int32 + type AttrConstraint struct + Condition AttrMatch + Key string + Value string + func (*AttrConstraint) Descriptor() ([]byte, []int) + func (*AttrConstraint) ProtoMessage() + func (m *AttrConstraint) GetCondition() AttrMatch + func (m *AttrConstraint) GetKey() string + func (m *AttrConstraint) GetValue() string + func (m *AttrConstraint) Marshal() (dAtA []byte, err error) + func (m *AttrConstraint) MarshalTo(dAtA []byte) (int, error) + func (m *AttrConstraint) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AttrConstraint) Reset() + func (m *AttrConstraint) Size() (n int) + func (m *AttrConstraint) String() string + func (m *AttrConstraint) Unmarshal(dAtA []byte) error + func (m *AttrConstraint) XXX_DiscardUnknown() + func (m *AttrConstraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AttrConstraint) XXX_Merge(src proto.Message) + func (m *AttrConstraint) XXX_Size() int + func (m *AttrConstraint) XXX_Unmarshal(b []byte) error + type AttrMatch int32 + const AttrMatch_EQUAL + const AttrMatch_MATCHES + const AttrMatch_NOTEQUAL + func (AttrMatch) EnumDescriptor() ([]byte, []int) + func (a *AttrMatch) UnmarshalJSON(data []byte) error + func (a AttrMatch) MarshalJSON() ([]byte, error) + func (x AttrMatch) String() string + type MatchType int32 + const MatchType_EXACT + const MatchType_REGEX + const MatchType_WILDCARD + func (MatchType) EnumDescriptor() ([]byte, []int) + func (a *MatchType) UnmarshalJSON(data []byte) error + func (a MatchType) MarshalJSON() ([]byte, error) + func (x MatchType) String() string + type Policy struct + Rules []*Rule + Version int64 + func (*Policy) Descriptor() ([]byte, []int) + func (*Policy) ProtoMessage() + func (m *Policy) GetRules() []*Rule + func (m *Policy) GetVersion() int64 + func (m *Policy) Marshal() (dAtA []byte, err error) + func (m *Policy) MarshalTo(dAtA []byte) (int, error) + func (m *Policy) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Policy) Reset() + func (m *Policy) Size() (n int) + func (m *Policy) String() string + func (m *Policy) Unmarshal(dAtA []byte) error + func (m *Policy) XXX_DiscardUnknown() + func (m *Policy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Policy) XXX_Merge(src proto.Message) + func (m *Policy) XXX_Size() int + func (m *Policy) XXX_Unmarshal(b []byte) error + type PolicyAction int32 + const PolicyAction_ALLOW + const PolicyAction_CONVERT + const PolicyAction_DENY + func (PolicyAction) EnumDescriptor() ([]byte, []int) + func (a *PolicyAction) UnmarshalJSON(data []byte) error + func (a PolicyAction) MarshalJSON() ([]byte, error) + func (x PolicyAction) String() string + type Rule struct + Action PolicyAction + Selector *Selector + Updates *Update + func (*Rule) Descriptor() ([]byte, []int) + func (*Rule) ProtoMessage() + func (m *Rule) GetAction() PolicyAction + func (m *Rule) GetSelector() *Selector + func (m *Rule) GetUpdates() *Update + func (m *Rule) Marshal() (dAtA []byte, err error) + func (m *Rule) MarshalTo(dAtA []byte) (int, error) + func (m *Rule) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Rule) Reset() + func (m *Rule) Size() (n int) + func (m *Rule) String() string + func (m *Rule) Unmarshal(dAtA []byte) error + func (m *Rule) XXX_DiscardUnknown() + func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Rule) XXX_Merge(src proto.Message) + func (m *Rule) XXX_Size() int + func (m *Rule) XXX_Unmarshal(b []byte) error + type Selector struct + Constraints []*AttrConstraint + Identifier string + MatchType MatchType + func (*Selector) Descriptor() ([]byte, []int) + func (*Selector) ProtoMessage() + func (m *Selector) GetConstraints() []*AttrConstraint + func (m *Selector) GetIdentifier() string + func (m *Selector) GetMatchType() MatchType + func (m *Selector) Marshal() (dAtA []byte, err error) + func (m *Selector) MarshalTo(dAtA []byte) (int, error) + func (m *Selector) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Selector) Reset() + func (m *Selector) Size() (n int) + func (m *Selector) String() string + func (m *Selector) Unmarshal(dAtA []byte) error + func (m *Selector) XXX_DiscardUnknown() + func (m *Selector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Selector) XXX_Merge(src proto.Message) + func (m *Selector) XXX_Size() int + func (m *Selector) XXX_Unmarshal(b []byte) error + type Update struct + Attrs map[string]string + Identifier string + func (*Update) Descriptor() ([]byte, []int) + func (*Update) ProtoMessage() + func (m *Update) GetAttrs() map[string]string + func (m *Update) GetIdentifier() string + func (m *Update) Marshal() (dAtA []byte, err error) + func (m *Update) MarshalTo(dAtA []byte) (int, error) + func (m *Update) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Update) Reset() + func (m *Update) Size() (n int) + func (m *Update) String() string + func (m *Update) Unmarshal(dAtA []byte) error + func (m *Update) XXX_DiscardUnknown() + func (m *Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Update) XXX_Merge(src proto.Message) + func (m *Update) XXX_Size() int + func (m *Update) XXX_Unmarshal(b []byte) error