Versions in this module Expand all Collapse all v0 v0.5.0 Nov 3, 2015 Changes in this version + const AdminScope + const ClusterAdminScope + const ReadonlyScope + const Scope + type AdminClient struct + func NewAdminClient(ctx context.Context, project, zone, cluster string, opts ...cloud.ClientOption) (*AdminClient, error) + func (ac *AdminClient) Close() + func (ac *AdminClient) CreateColumnFamily(ctx context.Context, table, family string) error + func (ac *AdminClient) CreateTable(ctx context.Context, table string) error + func (ac *AdminClient) DeleteColumnFamily(ctx context.Context, table, family string) error + func (ac *AdminClient) DeleteTable(ctx context.Context, table string) error + func (ac *AdminClient) SetGCPolicy(ctx context.Context, table, family string, policy GCPolicy) error + func (ac *AdminClient) TableInfo(ctx context.Context, table string) (*TableInfo, error) + func (ac *AdminClient) Tables(ctx context.Context) ([]string, error) + type ApplyOption interface + func GetCondMutationResult(matched *bool) ApplyOption + type Client struct + func NewClient(ctx context.Context, project, zone, cluster string, opts ...cloud.ClientOption) (*Client, error) + func (c *Client) Close() + func (c *Client) Open(table string) *Table + type ClusterAdminClient struct + func NewClusterAdminClient(ctx context.Context, project string, opts ...cloud.ClientOption) (*ClusterAdminClient, error) + func (cac *ClusterAdminClient) Close() + func (cac *ClusterAdminClient) Clusters(ctx context.Context) ([]*ClusterInfo, error) + type ClusterInfo struct + DisplayName string + Name string + ServeNodes int + Zone string + type Filter interface + String func() string + func ChainFilters(sub ...Filter) Filter + func ColumnFilter(pattern string) Filter + func FamilyFilter(pattern string) Filter + func InterleaveFilters(sub ...Filter) Filter + func LatestNFilter(n int) Filter + func RowKeyFilter(pattern string) Filter + func StripValueFilter() Filter + func ValueFilter(pattern string) Filter + type GCPolicy interface + String func() string + func IntersectionPolicy(sub ...GCPolicy) GCPolicy + func MaxAgePolicy(d time.Duration) GCPolicy + func MaxVersionsPolicy(n int) GCPolicy + func UnionPolicy(sub ...GCPolicy) GCPolicy + type Mutation struct + func NewCondMutation(cond Filter, mtrue, mfalse *Mutation) *Mutation + func NewMutation() *Mutation + func (m *Mutation) DeleteCellsInColumn(family, column string) + func (m *Mutation) DeleteCellsInFamily(family string) + func (m *Mutation) DeleteRow() + func (m *Mutation) DeleteTimestampRange(family, column string, start, end Timestamp) + func (m *Mutation) Set(family, column string, ts Timestamp, value []byte) + type ReadItem struct + Column string + Row string + Timestamp Timestamp + Value []byte + type ReadModifyWrite struct + func NewReadModifyWrite() *ReadModifyWrite + func (m *ReadModifyWrite) AppendValue(family, column string, v []byte) + func (m *ReadModifyWrite) Increment(family, column string, delta int64) + type ReadOption interface + func LimitRows(limit int64) ReadOption + func RowFilter(f Filter) ReadOption + type Row map[string][]ReadItem + func (r Row) Key() string + type RowRange struct + func InfiniteRange(start string) RowRange + func NewRange(begin, end string) RowRange + func PrefixRange(prefix string) RowRange + func SingleRow(row string) RowRange + func (r RowRange) Contains(row string) bool + func (r RowRange) String() string + func (r RowRange) Unbounded() bool + type Table struct + func (t *Table) Apply(ctx context.Context, row string, m *Mutation, opts ...ApplyOption) error + func (t *Table) ApplyReadModifyWrite(ctx context.Context, row string, m *ReadModifyWrite) (Row, error) + func (t *Table) ReadRow(ctx context.Context, row string, opts ...ReadOption) (Row, error) + func (t *Table) ReadRows(ctx context.Context, arg RowRange, f func(Row) bool, opts ...ReadOption) error + type TableInfo struct + Families []string + type Timestamp int64 + const ServerTime + func Now() Timestamp + func Time(t time.Time) Timestamp + func (ts Timestamp) Time() time.Time v0.5.0-rc4 Oct 29, 2015