gcs

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	UploadSpec(tenantId string, name string, file []byte) error
	ReadLatestSpec(tenantId string) ([]byte, error)
	Close() error
}

func NewInMemoryStore

func NewInMemoryStore() Client

func NewStore

func NewStore() Client

type InMemoryStore

type InMemoryStore struct{}

func (*InMemoryStore) Close added in v0.0.2

func (m *InMemoryStore) Close() error

func (*InMemoryStore) ReadLatestSpec added in v0.0.2

func (m *InMemoryStore) ReadLatestSpec(tenantId string) ([]byte, error)

func (*InMemoryStore) UploadSpec added in v0.0.2

func (m *InMemoryStore) UploadSpec(string, string, []byte) error

type Store

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

func (*Store) Close added in v0.0.2

func (store *Store) Close() error

func (*Store) ReadLatestSpec added in v0.0.2

func (store *Store) ReadLatestSpec(tenantId string) ([]byte, error)

func (*Store) UploadSpec added in v0.0.2

func (store *Store) UploadSpec(tenantId string, name string, file []byte) error

Buckets/syncc/{tenant-id}/spec/[]spec

Jump to

Keyboard shortcuts

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