iamspannerdb

package
v0.40.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchGetIamPolicyBindingsRowsQuery

type BatchGetIamPolicyBindingsRowsQuery struct {
	Keys []IamPolicyBindingsKey
}

type ColumnDescriptor

type ColumnDescriptor interface {
	ColumnID() spansql.ID
	ColumnName() string
	ColumnType() spansql.Type
	NotNull() bool
	AllowCommitTimestamp() bool
}

type DatabaseDescriptor

type DatabaseDescriptor interface {
	IamPolicyBindings() IamPolicyBindingsTableDescriptor
	IamPolicyBindingsByMemberAndResource() IamPolicyBindingsByMemberAndResourceIndexDescriptor
	IamPolicyBindingsByMemberAndRole() IamPolicyBindingsByMemberAndRoleIndexDescriptor
}

func Descriptor

func Descriptor() DatabaseDescriptor

type GetIamPolicyBindingsRowQuery

type GetIamPolicyBindingsRowQuery struct {
	Key IamPolicyBindingsKey
}

type IamPolicyBindingsByMemberAndResourceIndexDescriptor

type IamPolicyBindingsByMemberAndResourceIndexDescriptor interface {
	IndexName() string
	IndexID() spansql.ID
	ColumnNames() []string
	ColumnIDs() []spansql.ID
	ColumnExprs() []spansql.Expr
	Member() ColumnDescriptor
	Resource() ColumnDescriptor
	Role() ColumnDescriptor
}

type IamPolicyBindingsByMemberAndRoleIndexDescriptor

type IamPolicyBindingsByMemberAndRoleIndexDescriptor interface {
	IndexName() string
	IndexID() spansql.ID
	ColumnNames() []string
	ColumnIDs() []spansql.ID
	ColumnExprs() []spansql.Expr
	Member() ColumnDescriptor
	Role() ColumnDescriptor
	Resource() ColumnDescriptor
}

type IamPolicyBindingsKey

type IamPolicyBindingsKey struct {
	Resource     string
	BindingIndex int64
	Role         string
	MemberIndex  int64
	Member       string
}

func (IamPolicyBindingsKey) BoolExpr

func (k IamPolicyBindingsKey) BoolExpr() spansql.BoolExpr

func (IamPolicyBindingsKey) Delete

func (IamPolicyBindingsKey) Order

func (IamPolicyBindingsKey) SpannerKey

func (k IamPolicyBindingsKey) SpannerKey() spanner.Key

func (IamPolicyBindingsKey) SpannerKeySet

func (k IamPolicyBindingsKey) SpannerKeySet() spanner.KeySet

type IamPolicyBindingsRow

type IamPolicyBindingsRow struct {
	Resource     string `spanner:"resource"`
	BindingIndex int64  `spanner:"binding_index"`
	Role         string `spanner:"role"`
	MemberIndex  int64  `spanner:"member_index"`
	Member       string `spanner:"member"`
}

func (*IamPolicyBindingsRow) ColumnExprs

func (*IamPolicyBindingsRow) ColumnExprs() []spansql.Expr

func (*IamPolicyBindingsRow) ColumnIDs

func (*IamPolicyBindingsRow) ColumnIDs() []spansql.ID

func (*IamPolicyBindingsRow) ColumnNames

func (*IamPolicyBindingsRow) ColumnNames() []string

func (*IamPolicyBindingsRow) Key

func (*IamPolicyBindingsRow) Mutate

func (r *IamPolicyBindingsRow) Mutate() (string, []string, []interface{})

func (*IamPolicyBindingsRow) MutateColumns

func (r *IamPolicyBindingsRow) MutateColumns(columns []string) (string, []string, []interface{})

func (*IamPolicyBindingsRow) MutatePresentColumns

func (r *IamPolicyBindingsRow) MutatePresentColumns() (string, []string, []interface{})

func (*IamPolicyBindingsRow) UnmarshalSpannerRow

func (r *IamPolicyBindingsRow) UnmarshalSpannerRow(row *spanner.Row) error

func (*IamPolicyBindingsRow) Validate

func (r *IamPolicyBindingsRow) Validate() error

type IamPolicyBindingsRowIterator

type IamPolicyBindingsRowIterator interface {
	Next() (*IamPolicyBindingsRow, error)
	Do(f func(row *IamPolicyBindingsRow) error) error
	Stop()
}

type IamPolicyBindingsTableDescriptor

type IamPolicyBindingsTableDescriptor interface {
	TableName() string
	TableID() spansql.ID
	ColumnNames() []string
	ColumnIDs() []spansql.ID
	ColumnExprs() []spansql.Expr
	Resource() ColumnDescriptor
	BindingIndex() ColumnDescriptor
	Role() ColumnDescriptor
	MemberIndex() ColumnDescriptor
	Member() ColumnDescriptor
}

type ListIamPolicyBindingsRowsQuery

type ListIamPolicyBindingsRowsQuery struct {
	Where  spansql.BoolExpr
	Order  []spansql.Order
	Limit  int32
	Offset int64
	Params map[string]interface{}
}

type ReadTransaction

type ReadTransaction struct {
	Tx SpannerReadTransaction
}

func (ReadTransaction) BatchGetIamPolicyBindingsRows

func (ReadTransaction) GetIamPolicyBindingsRow

func (t ReadTransaction) GetIamPolicyBindingsRow(
	ctx context.Context,
	query GetIamPolicyBindingsRowQuery,
) (*IamPolicyBindingsRow, error)

func (ReadTransaction) ListIamPolicyBindingsRows

func (ReadTransaction) ReadIamPolicyBindingsRows

func (t ReadTransaction) ReadIamPolicyBindingsRows(
	ctx context.Context,
	keySet spanner.KeySet,
) IamPolicyBindingsRowIterator

type SpannerReadTransaction

type SpannerReadTransaction interface {
	Read(ctx context.Context, table string, keys spanner.KeySet, columns []string) *spanner.RowIterator
	ReadRow(ctx context.Context, table string, key spanner.Key, columns []string) (*spanner.Row, error)
	Query(ctx context.Context, statement spanner.Statement) *spanner.RowIterator
}

Jump to

Keyboard shortcuts

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