objectstore

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config, credentials Credentials) (*objectStore, error)

New returns an Object Store instance that manages Google object storage

func NewPlainObjectStore

func NewPlainObjectStore() (*objectStore, error)

NewPlainObjectStore creates an objectstore with no configuration. Instances created with this function may be used to access methods that don't explicitly access external (cloud) resources

Types

type Config

type Config struct {
	Region string
}

Config defines configuration

type Credentials

type Credentials struct {
	Type                   string `json:"type"`
	ProjectID              string `json:"project_id"`
	PrivateKeyID           string `json:"private_key_id"`
	PrivateKey             string `json:"private_key"`
	ClientEmail            string `json:"client_email"`
	ClientID               string `json:"client_id"`
	AuthURI                string `json:"auth_uri"`
	TokenURI               string `json:"token_uri"`
	AuthProviderX50CertURL string `json:"auth_provider_x509_cert_url"`
	ClientX509CertURL      string `json:"client_x509_cert_url"`
}

Credentials represents credentials necessary for access

Jump to

Keyboard shortcuts

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