Documentation
¶
Index ¶
- type Config
- type Provider
- func (g *Provider) CreateFolder(ctx context.Context, parentID *string, name string, metadata map[string]string) (*string, error)
- func (g *Provider) GetContent(ctx context.Context, id string, start int64, end int64) ([]byte, error)
- func (g *Provider) ToTusHandler(storageProviderId uuid.UUID, basePath string, uploadPrefix string, ...) (*handler.Handler, error)
- type ServiceAccountKey
- type Store
- type Upload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ParentID string `json:"parentID"`
JSONKey ServiceAccountKey `json:"jsonKey"`
}
Config is the validated body your endpoint receives.
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) CreateFolder ¶
func (*Provider) GetContent ¶
type ServiceAccountKey ¶
type ServiceAccountKey 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"`
AuthProviderX509CertURL string `json:"auth_provider_x509_cert_url"`
ClientX509CertURL string `json:"client_x509_cert_url"`
UniverseDomain string `json:"universe_domain"`
}
ServiceAccountKey mirrors the JSON structure of a Google service account key.
Click to show internal directories.
Click to hide internal directories.