Documentation ¶
Index ¶
- Variables
- func Import(in, out, dateFormat string, bufferSize int, prefix string, dateRange []string, ...) (*utils.Result, error)
- func ImportConnect(in, out string, sortOptions SortOptions) (*utils.Result, error)
- func UpdateCamera(sdcard string) error
- type Camera
- type Directory
- type FileOfInterest
- type FileType
- type FileTypeMatch
- type FirmwareCatalog
- type GoProConnectDevice
- type GoProType
- type GoProVersion
- type SortOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var FIRMWARE_CATALOG = "https://firmware-api.gopro.com/v2/firmware/catalog"
View Source
var FileTypeMatches = map[GoProType][]FileTypeMatch{ V2: { { Regex: regexp.MustCompile(`GOPR\d+.JPG`), Type: Photo, HeroMode: true, }, { Regex: regexp.MustCompile(`GP\d+.JPG`), Type: Photo, HeroMode: true, }, { Regex: regexp.MustCompile(`GX\d+.MP4`), Type: Video, HeroMode: true, }, { Regex: regexp.MustCompile(`GH\d+.MP4`), Type: Video, HeroMode: true, }, { Regex: regexp.MustCompile(`GL\d+.LRV`), Type: LowResolutionVideo, HeroMode: true, }, { Regex: regexp.MustCompile(`GH\d+.THM`), Type: Thumbnail, HeroMode: true, }, { Regex: regexp.MustCompile(`GX\d+.THM`), Type: Thumbnail, HeroMode: true, }, { Regex: regexp.MustCompile(`GG\d+.MP4`), Type: Video, HeroMode: true, }, { Regex: regexp.MustCompile(`G\d+.JPG`), Type: Multishot, HeroMode: true, }, { Regex: regexp.MustCompile(`.GPR`), Type: RawPhoto, HeroMode: true, }, }, MAX: { { Regex: regexp.MustCompile(`GS\d+.360`), Type: Video, HeroMode: false, }, { Regex: regexp.MustCompile(`GS_+\d+.JPG`), Type: Photo, HeroMode: false, }, { Regex: regexp.MustCompile(`GP_+\d+.JPG`), Type: Photo, HeroMode: true, }, { Regex: regexp.MustCompile(`GH\d+.MP4`), Type: Video, HeroMode: true, }, { Regex: regexp.MustCompile(`GX\d+.MP4`), Type: Video, HeroMode: true, }, { Regex: regexp.MustCompile(`GPAA\d+.JPG`), Type: Multishot, HeroMode: true, }, { Regex: regexp.MustCompile(`GH\d+.LRV`), Type: LowResolutionVideo, HeroMode: true, }, { Regex: regexp.MustCompile(`GH\d+.THM`), Type: Thumbnail, HeroMode: true, }, { Regex: regexp.MustCompile(`GS\d+.LRV`), Type: LowResolutionVideo, HeroMode: false, }, { Regex: regexp.MustCompile(`GS\d+.THM`), Type: Thumbnail, HeroMode: false, }, { Regex: regexp.MustCompile(`GSAA\d+.JPG`), Type: Multishot, HeroMode: false, }, }, V1: { { Regex: regexp.MustCompile(`GOPR\d+.JPG`), Type: Photo, HeroMode: true, }, { Regex: regexp.MustCompile(`G\d+.JPG`), Type: Multishot, HeroMode: true, }, { Regex: regexp.MustCompile(`GOPR\d+.MP4`), Type: Video, HeroMode: true, }, { Regex: regexp.MustCompile(`GP\d+.MP4`), Type: ChapteredVideo, HeroMode: true, }, { Regex: regexp.MustCompile(`GOPR\d+.LRV`), Type: LowResolutionVideo, HeroMode: true, }, { Regex: regexp.MustCompile(`GOPR\d+.THM`), Type: Thumbnail, HeroMode: true, }, { Regex: regexp.MustCompile(`.GPR`), Type: RawPhoto, HeroMode: true, }, }, }
View Source
var MediaFolderRegex = regexp.MustCompile(`\d\d\dGOPRO`)
Functions ¶
func ImportConnect ¶
func ImportConnect(in, out string, sortOptions SortOptions) (*utils.Result, error)
func UpdateCamera ¶
Types ¶
type Camera ¶
type Camera struct { Model int `json:"model"` ModelString string `json:"model_string"` Name string `json:"name"` Version string `json:"version"` URL string `json:"url"` ReleaseDate string `json:"release_date"` Sha1 string `json:"sha1"` RequiredFreeLocalSpace int `json:"required_free_local_space"` CriticalUpdate bool `json:"criticalUpdate"` Languages []string `json:"languages"` ReleaseHTML string `json:"release_html"` LicenseHTML string `json:"license_html"` }
type FileOfInterest ¶
type FileOfInterest string
const ( GetStarted FileOfInterest = "Get_started_with_GoPro.url" Version FileOfInterest = "version.txt" )
type FirmwareCatalog ¶
type GoProConnectDevice ¶
type GoProConnectDevice struct { IP string Info cameraInfo }
func GetGoProNetworkAddresses ¶
func GetGoProNetworkAddresses() ([]GoProConnectDevice, error)
type GoProVersion ¶
Click to show internal directories.
Click to hide internal directories.