Documentation ¶
Index ¶
- Constants
- func GetAuthorizationURL(scopes []string) string
- type AfostoClient
- func (ac *AfostoClient) Download(url *url.URL) ([]byte, error)
- func (ac *AfostoClient) GetSignature(dir string, method string, asPrivateDirectory bool) (string, error)
- func (ac *AfostoClient) GetTenant() (*data.Tenant, error)
- func (ac *AfostoClient) ListDirectories(dir string) ([]string, error)
- func (ac *AfostoClient) ListDirectory(dir string, cursor string) ([]data.File, string, error)
- func (ac *AfostoClient) Query(query string, parameters interface{}) (*QueryResult, error)
- func (ac *AfostoClient) Upload(sourceFilePath string, labelFilename string, signature string) (*data.File, error)
- type Query
- type QueryError
- type QueryResult
- type SignatureRequest
Constants ¶
View Source
const ( BaseAuthorizationURL = "https://afosto.app/auth/authorize" BaseApiUrl = "https://afosto.app/api" OauthClientID = "51403354ded11942d7195c66b9e81f71b74f56cd8adc539277823e179da8" RedirectURL = "http://localhost:8888/return" )
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizationURL ¶
Types ¶
type AfostoClient ¶
type AfostoClient struct {
// contains filtered or unexported fields
}
func GetClient ¶
func GetClient(tenantID string, accessToken string) *AfostoClient
func (*AfostoClient) Download ¶ added in v0.0.17
func (ac *AfostoClient) Download(url *url.URL) ([]byte, error)
func (*AfostoClient) GetSignature ¶ added in v0.0.17
func (*AfostoClient) ListDirectories ¶ added in v0.0.18
func (ac *AfostoClient) ListDirectories(dir string) ([]string, error)
func (*AfostoClient) ListDirectory ¶ added in v0.0.17
func (*AfostoClient) Query ¶
func (ac *AfostoClient) Query(query string, parameters interface{}) (*QueryResult, error)
type QueryError ¶
type QueryResult ¶
type QueryResult struct { Data map[string]interface{} `json:"data"` Errors []QueryError `json:"errors"` }
Click to show internal directories.
Click to hide internal directories.