directory

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package directory reads and writes Key Transparency Directory information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	// contains filtered or unexported fields
}

Table gives access to the directory table.

func New

func New(client *spanner.Client) *Table

New returns a directory.Storage client backed by Spanner.

func (*Table) Delete

func (t *Table) Delete(ctx context.Context, directoryID string) error

Delete permanently deletes a directory.

func (*Table) List

func (t *Table) List(ctx context.Context, deleted bool) ([]*directory.Directory, error)

List returns all Directories. Includes deleted directories if deleted == true.

func (*Table) Read

func (t *Table) Read(ctx context.Context, directoryID string, showDeleted bool) (*directory.Directory, error)

Read retrieves a directory from storage. Returns status.NotFound if the row is deleted.

func (*Table) SetDelete

func (t *Table) SetDelete(ctx context.Context, directoryID string, isDeleted bool) error

SetDelete deletes or undeletes a directory.

func (*Table) Write

func (t *Table) Write(ctx context.Context, dir *directory.Directory) error

Write creates a new Directory.

Jump to

Keyboard shortcuts

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