tableacl

package
v0.10.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTableacl        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTableacl          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTableacl = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	TableGroups          []*TableGroupSpec `protobuf:"bytes,1,rep,name=table_groups,json=tableGroups,proto3" json:"table_groups,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*Config) Descriptor

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

func (*Config) GetTableGroups

func (m *Config) GetTableGroups() []*TableGroupSpec

func (*Config) Marshal added in v0.10.0

func (m *Config) Marshal() (dAtA []byte, err error)

func (*Config) MarshalTo added in v0.10.0

func (m *Config) MarshalTo(dAtA []byte) (int, error)

func (*Config) MarshalToSizedBuffer added in v0.10.0

func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) Size added in v0.10.0

func (m *Config) Size() (n int)

func (*Config) String

func (m *Config) String() string

func (*Config) Unmarshal added in v0.10.0

func (m *Config) Unmarshal(dAtA []byte) error

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

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

func (*Config) XXX_Merge

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

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

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

type TableGroupSpec

type TableGroupSpec struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// either tables or a table name prefixes (if it ends in a %)
	TableNamesOrPrefixes []string `protobuf:"bytes,2,rep,name=table_names_or_prefixes,json=tableNamesOrPrefixes,proto3" json:"table_names_or_prefixes,omitempty"`
	Readers              []string `protobuf:"bytes,3,rep,name=readers,proto3" json:"readers,omitempty"`
	Writers              []string `protobuf:"bytes,4,rep,name=writers,proto3" json:"writers,omitempty"`
	Admins               []string `protobuf:"bytes,5,rep,name=admins,proto3" json:"admins,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

TableGroupSpec defines ACLs for a group of tables.

func (*TableGroupSpec) Descriptor

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

func (*TableGroupSpec) GetAdmins

func (m *TableGroupSpec) GetAdmins() []string

func (*TableGroupSpec) GetName

func (m *TableGroupSpec) GetName() string

func (*TableGroupSpec) GetReaders

func (m *TableGroupSpec) GetReaders() []string

func (*TableGroupSpec) GetTableNamesOrPrefixes

func (m *TableGroupSpec) GetTableNamesOrPrefixes() []string

func (*TableGroupSpec) GetWriters

func (m *TableGroupSpec) GetWriters() []string

func (*TableGroupSpec) Marshal added in v0.10.0

func (m *TableGroupSpec) Marshal() (dAtA []byte, err error)

func (*TableGroupSpec) MarshalTo added in v0.10.0

func (m *TableGroupSpec) MarshalTo(dAtA []byte) (int, error)

func (*TableGroupSpec) MarshalToSizedBuffer added in v0.10.0

func (m *TableGroupSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TableGroupSpec) ProtoMessage

func (*TableGroupSpec) ProtoMessage()

func (*TableGroupSpec) Reset

func (m *TableGroupSpec) Reset()

func (*TableGroupSpec) Size added in v0.10.0

func (m *TableGroupSpec) Size() (n int)

func (*TableGroupSpec) String

func (m *TableGroupSpec) String() string

func (*TableGroupSpec) Unmarshal added in v0.10.0

func (m *TableGroupSpec) Unmarshal(dAtA []byte) error

func (*TableGroupSpec) XXX_DiscardUnknown

func (m *TableGroupSpec) XXX_DiscardUnknown()

func (*TableGroupSpec) XXX_Marshal

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

func (*TableGroupSpec) XXX_Merge

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

func (*TableGroupSpec) XXX_Size

func (m *TableGroupSpec) XXX_Size() int

func (*TableGroupSpec) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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