dropbox

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2017 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// DropboxReadFileDetailsURI is the endpoint for reading a files details
	DropboxReadFileDetailsURI = "/api/dropbox/readfiledetails?wrapInHTML=false&document.domain="
	// DropboxReadURLURI is the endpoint for information for a file located at a URL
	DropboxReadURLURI = "/api/dropbox/readurl"
	// DropboxReadWSDLURI is the endpoint for reading a WSDL's details
	DropboxReadWSDLURI = "/api/dropbox/wsdls"
)

Variables

This section is empty.

Functions

func ReadURL

func ReadURL(config control.Configuration, debug bool) error

ReadURL provides information about a file located at an URL

func ReadWSDLzip

func ReadWSDLzip(config control.Configuration, debug bool) error

ReadWSDLzip is a stub

Types

type ReadFileDetailsResponse

type ReadFileDetailsResponse struct {
	FileName                  string
	FileType                  string
	DropboxFileID             int `json:"DropboxFileId"`
	ServiceDescriptorDocument []SpecDoc
}

ReadFileDetailsResponse is the successful response of upload a spec file

func AddSpecToDropbox

func AddSpecToDropbox(config control.Configuration, specfilepath string, debug bool) (ReadFileDetailsResponse, error)

AddSpecToDropbox adds a document to the Platform's dropbox. This is the ReadFileDetails endpoint of the Dropbox Service. http://docs.akana.com/cm/api/dropbox/m_dropbox_readFileDetails.htm

type SpecDoc

type SpecDoc struct {
	FileName       string
	DescriptorType string
	ServiceName    []string
}

SpecDoc is a representation of a specification document

Jump to

Keyboard shortcuts

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