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 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
Click to show internal directories.
Click to hide internal directories.