Documentation

Overview

Writes your blobs to Google Drive

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(optsSerialized string, logger *log.Logger) (*googledrive, error)

func Oauth2AuthCodeUrl

func Oauth2AuthCodeUrl(conf *oauth2.Config) string

func Oauth2Config

func Oauth2Config(clientId string, clientSecret string) *oauth2.Config

Types

type Config

type Config struct {
	VarastoDirectoryId string        `json:"directory_id"`
	ClientId           string        `json:"oauth2_client_id"`
	ClientSecret       string        `json:"oauth2_client_secret"`
	Token              *oauth2.Token `json:"oauth2_token"`
}

func (*Config) Serialize

func (c *Config) Serialize() (string, error)

Source Files