gcs

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: Apache-2.0 Imports: 10 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
	Read(path string) ([]byte, error)
	Close() error
}

func NewInMemoryStore

func NewInMemoryStore(pathToFile map[string][]byte) Client

func NewStore

func NewStore() Client

type InMemoryStore

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

func (*InMemoryStore) Close added in v0.0.2

func (m *InMemoryStore) Close() error

func (*InMemoryStore) Read added in v0.0.4

func (m *InMemoryStore) Read(tenant 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) Read added in v0.0.4

func (store *Store) Read(path string) ([]byte, error)

path should look like this: {tenant-id}/spec/1685962955

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