oci

package
v0.0.0-...-ed4b4ac Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BASE32ENCODER = Base32Encoder("base32-encoder")
	PLAINENCODER  = PlainEncoder("plain-encoder")
)

Functions

This section is empty.

Types

type Base32Encoder

type Base32Encoder string

func (Base32Encoder) Decode

func (_ Base32Encoder) Decode(enc string) (string, error)

func (Base32Encoder) Encode

func (_ Base32Encoder) Encode(key string) string

type KVEntry

type KVEntry struct {
	Key   string
	Value digest.Digest
}

type KVStore

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

func NewKVStore

func NewKVStore(dir string, enc KeyEncoder, debug log.Logger) *KVStore

func (*KVStore) Entries

func (s *KVStore) Entries() ([]KVEntry, error)

func (*KVStore) Get

func (s *KVStore) Get(key string) (d digest.Digest, err error)

func (*KVStore) Put

func (s *KVStore) Put(key string, value digest.Digest) error

type KeyEncoder

type KeyEncoder interface {
	Encode(key string) string
	Decode(value string) (string, error)
}

type PlainEncoder

type PlainEncoder string

func (PlainEncoder) Decode

func (_ PlainEncoder) Decode(enc string) (string, error)

func (PlainEncoder) Encode

func (_ PlainEncoder) Encode(key string) string

Jump to

Keyboard shortcuts

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