gcs

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpecPath added in v0.2.22

func GetSpecPath(tenant, webhook, name string) string

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

Types

type Client

type Client interface {
	UploadSpec(tenant string, webhook string, name string, spec *openapi3.T) error
	Upload(path 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(path string) ([]byte, error)

func (*InMemoryStore) Upload added in v0.2.22

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

func (*InMemoryStore) UploadSpec added in v0.0.2

func (m *InMemoryStore) UploadSpec(tenant string, webhook string, name string, spec *openapi3.T) 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)

func (*Store) Upload added in v0.2.22

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

func (*Store) UploadSpec added in v0.0.2

func (store *Store) UploadSpec(tenant string, webhook string, name string, spec *openapi3.T) error

Jump to

Keyboard shortcuts

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