acl

package
v0.0.0-...-0352b5b Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Role_name = map[int32]string{
		0: "ROLE_UNSPECIFIED",
		1: "USER",
		2: "SYSTEM",
		3: "OTHERS",
	}
	Role_value = map[string]int32{
		"ROLE_UNSPECIFIED": 0,
		"USER":             1,
		"SYSTEM":           2,
		"OTHERS":           3,
	}
)
View Source
var (
	MatchType_name = map[int32]string{
		0: "MATCH_TYPE_UNSPECIFIED",
		1: "STRING_EQUAL",
		2: "STRING_NOT_EQUAL",
	}
	MatchType_value = map[string]int32{
		"MATCH_TYPE_UNSPECIFIED": 0,
		"STRING_EQUAL":           1,
		"STRING_NOT_EQUAL":       2,
	}
)
View Source
var (
	Operation_name = map[int32]string{
		0: "OPERATION_UNSPECIFIED",
		1: "GET",
		2: "HEAD",
		3: "PUT",
		4: "DELETE",
		5: "SEARCH",
		6: "GETRANGE",
		7: "GETRANGEHASH",
	}
	Operation_value = map[string]int32{
		"OPERATION_UNSPECIFIED": 0,
		"GET":                   1,
		"HEAD":                  2,
		"PUT":                   3,
		"DELETE":                4,
		"SEARCH":                5,
		"GETRANGE":              6,
		"GETRANGEHASH":          7,
	}
)
View Source
var (
	Action_name = map[int32]string{
		0: "ACTION_UNSPECIFIED",
		1: "ALLOW",
		2: "DENY",
	}
	Action_value = map[string]int32{
		"ACTION_UNSPECIFIED": 0,
		"ALLOW":              1,
		"DENY":               2,
	}
)
View Source
var (
	HeaderType_name = map[int32]string{
		0: "HEADER_UNSPECIFIED",
		1: "REQUEST",
		2: "OBJECT",
		3: "SERVICE",
	}
	HeaderType_value = map[string]int32{
		"HEADER_UNSPECIFIED": 0,
		"REQUEST":            1,
		"OBJECT":             2,
		"SERVICE":            3,
	}
)

Functions

This section is empty.

Types

type Action

type Action int32
const (
	Action_ACTION_UNSPECIFIED Action = 0
	Action_ALLOW              Action = 1
	Action_DENY               Action = 2
)

func (*Action) FromString

func (x *Action) FromString(s string) bool

func (Action) String

func (x Action) String() string

type BearerToken

type BearerToken struct {
	Body      *BearerToken_Body `json:"body"`
	Signature *grpc.Signature   `json:"signature"`
}

func (*BearerToken) EmitProtobuf

func (x *BearerToken) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*BearerToken) GetBody

func (x *BearerToken) GetBody() *BearerToken_Body

func (*BearerToken) GetSignature

func (x *BearerToken) GetSignature() *grpc.Signature

func (*BearerToken) MarshalEasyJSON

func (x *BearerToken) MarshalEasyJSON(out *jwriter.Writer)

func (*BearerToken) MarshalJSON

func (x *BearerToken) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*BearerToken) MarshalProtobuf

func (x *BearerToken) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*BearerToken) SetBody

func (x *BearerToken) SetBody(v *BearerToken_Body)

func (*BearerToken) SetSignature

func (x *BearerToken) SetSignature(v *grpc.Signature)

func (*BearerToken) StableSize

func (x *BearerToken) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*BearerToken) UnmarshalEasyJSON

func (x *BearerToken) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*BearerToken) UnmarshalJSON

func (x *BearerToken) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*BearerToken) UnmarshalProtobuf

func (x *BearerToken) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type BearerToken_Body

type BearerToken_Body struct {
	EaclTable        *EACLTable                      `json:"eaclTable"`
	OwnerId          *grpc.OwnerID                   `json:"ownerID"`
	Lifetime         *BearerToken_Body_TokenLifetime `json:"lifetime"`
	AllowImpersonate bool                            `json:"allowImpersonate"`
	ApeOverride      *BearerToken_Body_APEOverride   `json:"apeOverride"`
}

func (*BearerToken_Body) EmitProtobuf

func (x *BearerToken_Body) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*BearerToken_Body) GetAllowImpersonate

func (x *BearerToken_Body) GetAllowImpersonate() bool

func (*BearerToken_Body) GetApeOverride

func (x *BearerToken_Body) GetApeOverride() *BearerToken_Body_APEOverride

func (*BearerToken_Body) GetEaclTable

func (x *BearerToken_Body) GetEaclTable() *EACLTable

func (*BearerToken_Body) GetLifetime

func (*BearerToken_Body) GetOwnerId

func (x *BearerToken_Body) GetOwnerId() *grpc.OwnerID

func (*BearerToken_Body) MarshalEasyJSON

func (x *BearerToken_Body) MarshalEasyJSON(out *jwriter.Writer)

func (*BearerToken_Body) MarshalJSON

func (x *BearerToken_Body) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*BearerToken_Body) MarshalProtobuf

func (x *BearerToken_Body) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*BearerToken_Body) SetAllowImpersonate

func (x *BearerToken_Body) SetAllowImpersonate(v bool)

func (*BearerToken_Body) SetApeOverride

func (x *BearerToken_Body) SetApeOverride(v *BearerToken_Body_APEOverride)

func (*BearerToken_Body) SetEaclTable

func (x *BearerToken_Body) SetEaclTable(v *EACLTable)

func (*BearerToken_Body) SetLifetime

func (*BearerToken_Body) SetOwnerId

func (x *BearerToken_Body) SetOwnerId(v *grpc.OwnerID)

func (*BearerToken_Body) StableSize

func (x *BearerToken_Body) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*BearerToken_Body) UnmarshalEasyJSON

func (x *BearerToken_Body) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*BearerToken_Body) UnmarshalJSON

func (x *BearerToken_Body) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*BearerToken_Body) UnmarshalProtobuf

func (x *BearerToken_Body) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type BearerToken_Body_APEOverride

type BearerToken_Body_APEOverride struct {
	Target *grpc1.ChainTarget `json:"target"`
	Chains []grpc1.Chain      `json:"chains"`
}

func (*BearerToken_Body_APEOverride) EmitProtobuf

func (*BearerToken_Body_APEOverride) GetChains

func (x *BearerToken_Body_APEOverride) GetChains() []grpc1.Chain

func (*BearerToken_Body_APEOverride) GetTarget

func (*BearerToken_Body_APEOverride) MarshalEasyJSON

func (x *BearerToken_Body_APEOverride) MarshalEasyJSON(out *jwriter.Writer)

func (*BearerToken_Body_APEOverride) MarshalJSON

func (x *BearerToken_Body_APEOverride) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*BearerToken_Body_APEOverride) MarshalProtobuf

func (x *BearerToken_Body_APEOverride) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*BearerToken_Body_APEOverride) SetChains

func (x *BearerToken_Body_APEOverride) SetChains(v []grpc1.Chain)

func (*BearerToken_Body_APEOverride) SetTarget

func (*BearerToken_Body_APEOverride) StableSize

func (x *BearerToken_Body_APEOverride) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*BearerToken_Body_APEOverride) UnmarshalEasyJSON

func (x *BearerToken_Body_APEOverride) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*BearerToken_Body_APEOverride) UnmarshalJSON

func (x *BearerToken_Body_APEOverride) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*BearerToken_Body_APEOverride) UnmarshalProtobuf

func (x *BearerToken_Body_APEOverride) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type BearerToken_Body_TokenLifetime

type BearerToken_Body_TokenLifetime struct {
	Exp uint64 `json:"exp"`
	Nbf uint64 `json:"nbf"`
	Iat uint64 `json:"iat"`
}

func (*BearerToken_Body_TokenLifetime) EmitProtobuf

func (*BearerToken_Body_TokenLifetime) GetExp

func (*BearerToken_Body_TokenLifetime) GetIat

func (*BearerToken_Body_TokenLifetime) GetNbf

func (*BearerToken_Body_TokenLifetime) MarshalEasyJSON

func (x *BearerToken_Body_TokenLifetime) MarshalEasyJSON(out *jwriter.Writer)

func (*BearerToken_Body_TokenLifetime) MarshalJSON

func (x *BearerToken_Body_TokenLifetime) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*BearerToken_Body_TokenLifetime) MarshalProtobuf

func (x *BearerToken_Body_TokenLifetime) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*BearerToken_Body_TokenLifetime) SetExp

func (*BearerToken_Body_TokenLifetime) SetIat

func (*BearerToken_Body_TokenLifetime) SetNbf

func (*BearerToken_Body_TokenLifetime) StableSize

func (x *BearerToken_Body_TokenLifetime) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*BearerToken_Body_TokenLifetime) UnmarshalEasyJSON

func (x *BearerToken_Body_TokenLifetime) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*BearerToken_Body_TokenLifetime) UnmarshalJSON

func (x *BearerToken_Body_TokenLifetime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*BearerToken_Body_TokenLifetime) UnmarshalProtobuf

func (x *BearerToken_Body_TokenLifetime) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type EACLRecord

type EACLRecord struct {
	Operation Operation           `json:"operation"`
	Action    Action              `json:"action"`
	Filters   []EACLRecord_Filter `json:"filters"`
	Targets   []EACLRecord_Target `json:"targets"`
}

func (*EACLRecord) EmitProtobuf

func (x *EACLRecord) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*EACLRecord) GetAction

func (x *EACLRecord) GetAction() Action

func (*EACLRecord) GetFilters

func (x *EACLRecord) GetFilters() []EACLRecord_Filter

func (*EACLRecord) GetOperation

func (x *EACLRecord) GetOperation() Operation

func (*EACLRecord) GetTargets

func (x *EACLRecord) GetTargets() []EACLRecord_Target

func (*EACLRecord) MarshalEasyJSON

func (x *EACLRecord) MarshalEasyJSON(out *jwriter.Writer)

func (*EACLRecord) MarshalJSON

func (x *EACLRecord) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*EACLRecord) MarshalProtobuf

func (x *EACLRecord) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*EACLRecord) SetAction

func (x *EACLRecord) SetAction(v Action)

func (*EACLRecord) SetFilters

func (x *EACLRecord) SetFilters(v []EACLRecord_Filter)

func (*EACLRecord) SetOperation

func (x *EACLRecord) SetOperation(v Operation)

func (*EACLRecord) SetTargets

func (x *EACLRecord) SetTargets(v []EACLRecord_Target)

func (*EACLRecord) StableSize

func (x *EACLRecord) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*EACLRecord) UnmarshalEasyJSON

func (x *EACLRecord) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*EACLRecord) UnmarshalJSON

func (x *EACLRecord) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*EACLRecord) UnmarshalProtobuf

func (x *EACLRecord) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type EACLRecord_Filter

type EACLRecord_Filter struct {
	HeaderType HeaderType `json:"headerType"`
	MatchType  MatchType  `json:"matchType"`
	Key        string     `json:"key"`
	Value      string     `json:"value"`
}

func (*EACLRecord_Filter) EmitProtobuf

func (x *EACLRecord_Filter) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*EACLRecord_Filter) GetHeaderType

func (x *EACLRecord_Filter) GetHeaderType() HeaderType

func (*EACLRecord_Filter) GetKey

func (x *EACLRecord_Filter) GetKey() string

func (*EACLRecord_Filter) GetMatchType

func (x *EACLRecord_Filter) GetMatchType() MatchType

func (*EACLRecord_Filter) GetValue

func (x *EACLRecord_Filter) GetValue() string

func (*EACLRecord_Filter) MarshalEasyJSON

func (x *EACLRecord_Filter) MarshalEasyJSON(out *jwriter.Writer)

func (*EACLRecord_Filter) MarshalJSON

func (x *EACLRecord_Filter) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*EACLRecord_Filter) MarshalProtobuf

func (x *EACLRecord_Filter) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*EACLRecord_Filter) SetHeaderType

func (x *EACLRecord_Filter) SetHeaderType(v HeaderType)

func (*EACLRecord_Filter) SetKey

func (x *EACLRecord_Filter) SetKey(v string)

func (*EACLRecord_Filter) SetMatchType

func (x *EACLRecord_Filter) SetMatchType(v MatchType)

func (*EACLRecord_Filter) SetValue

func (x *EACLRecord_Filter) SetValue(v string)

func (*EACLRecord_Filter) StableSize

func (x *EACLRecord_Filter) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*EACLRecord_Filter) UnmarshalEasyJSON

func (x *EACLRecord_Filter) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*EACLRecord_Filter) UnmarshalJSON

func (x *EACLRecord_Filter) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*EACLRecord_Filter) UnmarshalProtobuf

func (x *EACLRecord_Filter) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type EACLRecord_Target

type EACLRecord_Target struct {
	Role Role     `json:"role"`
	Keys [][]byte `json:"keys"`
}

func (*EACLRecord_Target) EmitProtobuf

func (x *EACLRecord_Target) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*EACLRecord_Target) GetKeys

func (x *EACLRecord_Target) GetKeys() [][]byte

func (*EACLRecord_Target) GetRole

func (x *EACLRecord_Target) GetRole() Role

func (*EACLRecord_Target) MarshalEasyJSON

func (x *EACLRecord_Target) MarshalEasyJSON(out *jwriter.Writer)

func (*EACLRecord_Target) MarshalJSON

func (x *EACLRecord_Target) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*EACLRecord_Target) MarshalProtobuf

func (x *EACLRecord_Target) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*EACLRecord_Target) SetKeys

func (x *EACLRecord_Target) SetKeys(v [][]byte)

func (*EACLRecord_Target) SetRole

func (x *EACLRecord_Target) SetRole(v Role)

func (*EACLRecord_Target) StableSize

func (x *EACLRecord_Target) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*EACLRecord_Target) UnmarshalEasyJSON

func (x *EACLRecord_Target) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*EACLRecord_Target) UnmarshalJSON

func (x *EACLRecord_Target) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*EACLRecord_Target) UnmarshalProtobuf

func (x *EACLRecord_Target) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type EACLTable

type EACLTable struct {
	Version     *grpc.Version     `json:"version"`
	ContainerId *grpc.ContainerID `json:"containerID"`
	Records     []EACLRecord      `json:"records"`
}

func (*EACLTable) EmitProtobuf

func (x *EACLTable) EmitProtobuf(mm *easyproto.MessageMarshaler)

func (*EACLTable) GetContainerId

func (x *EACLTable) GetContainerId() *grpc.ContainerID

func (*EACLTable) GetRecords

func (x *EACLTable) GetRecords() []EACLRecord

func (*EACLTable) GetVersion

func (x *EACLTable) GetVersion() *grpc.Version

func (*EACLTable) MarshalEasyJSON

func (x *EACLTable) MarshalEasyJSON(out *jwriter.Writer)

func (*EACLTable) MarshalJSON

func (x *EACLTable) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*EACLTable) MarshalProtobuf

func (x *EACLTable) MarshalProtobuf(dst []byte) []byte

MarshalProtobuf implements the encoding.ProtoMarshaler interface.

func (*EACLTable) SetContainerId

func (x *EACLTable) SetContainerId(v *grpc.ContainerID)

func (*EACLTable) SetRecords

func (x *EACLTable) SetRecords(v []EACLRecord)

func (*EACLTable) SetVersion

func (x *EACLTable) SetVersion(v *grpc.Version)

func (*EACLTable) StableSize

func (x *EACLTable) StableSize() (size int)

StableSize returns the size of x in protobuf format.

Structures with the same field values have the same binary size.

func (*EACLTable) UnmarshalEasyJSON

func (x *EACLTable) UnmarshalEasyJSON(in *jlexer.Lexer)

func (*EACLTable) UnmarshalJSON

func (x *EACLTable) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface.

func (*EACLTable) UnmarshalProtobuf

func (x *EACLTable) UnmarshalProtobuf(src []byte) (err error)

UnmarshalProtobuf implements the encoding.ProtoUnmarshaler interface.

type HeaderType

type HeaderType int32
const (
	HeaderType_HEADER_UNSPECIFIED HeaderType = 0
	HeaderType_REQUEST            HeaderType = 1
	HeaderType_OBJECT             HeaderType = 2
	HeaderType_SERVICE            HeaderType = 3
)

func (*HeaderType) FromString

func (x *HeaderType) FromString(s string) bool

func (HeaderType) String

func (x HeaderType) String() string

type MatchType

type MatchType int32
const (
	MatchType_MATCH_TYPE_UNSPECIFIED MatchType = 0
	MatchType_STRING_EQUAL           MatchType = 1
	MatchType_STRING_NOT_EQUAL       MatchType = 2
)

func (*MatchType) FromString

func (x *MatchType) FromString(s string) bool

func (MatchType) String

func (x MatchType) String() string

type Operation

type Operation int32
const (
	Operation_OPERATION_UNSPECIFIED Operation = 0
	Operation_GET                   Operation = 1
	Operation_HEAD                  Operation = 2
	Operation_PUT                   Operation = 3
	Operation_DELETE                Operation = 4
	Operation_SEARCH                Operation = 5
	Operation_GETRANGE              Operation = 6
	Operation_GETRANGEHASH          Operation = 7
)

func (*Operation) FromString

func (x *Operation) FromString(s string) bool

func (Operation) String

func (x Operation) String() string

type Role

type Role int32
const (
	Role_ROLE_UNSPECIFIED Role = 0
	Role_USER             Role = 1
	Role_SYSTEM           Role = 2
	Role_OTHERS           Role = 3
)

func (*Role) FromString

func (x *Role) FromString(s string) bool

func (Role) String

func (x Role) String() string

Jump to

Keyboard shortcuts

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