Documentation ¶
Index ¶
Constants ¶
const ( IOS Platform = "ios" Android Platform = "android" Unknown Platform = "unknown" ZIP Extension = ".zip" APP Extension = ".app" GZ Extension = ".gz" APK Extension = ".apk" )
const
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
// contains filtered or unexported fields
}
Artifact ...
func NewArtifact ¶
NewArtifact checks the extension for the given file. For iOS platform the accepted extensions: .app, .zip, .tar.gz. For Android platform the accepted extension: .apk. Returns a new Artifact with the platform of the provided file [iOS, Android] and it's extension. **If the extension is not .app, .zip, .tar.gz. or .apk it will return an error.**
func (Artifact) EnsureExtension ¶
EnsureExtension checks the extension for the given platform. For iOS platform the accepted extensions: .app, .zip, .tar.gz. For Android platform the accepted extension: .apk. Returns the path of the file if the extension is valid. **If the platorm is iOS and the given file's extension is .app it creates a new .zip and returns the .zip's path.**
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func NewClient ¶
func NewClient(token string, appPath string, artifact Artifact, publicKey string, apiEndPoint string) *Client
NewClient ...
func (*Client) DirectFileUpload ¶
DirectFileUpload ...
type Response ¶
type Response struct { PublicKey string `json:"publicKey"` PrivateKey string `json:"privateKey"` Updated time.Time `json:"updated"` Email string `json:"email"` Platform string `json:"platform"` VersionCode int `json:"versionCode"` Created time.Time `json:"created"` Architectures []interface{} `json:"architectures"` AppPermissions struct { } `json:"appPermissions"` PublicURL string `json:"publicURL"` AppURL string `json:"appURL"` ManageURL string `json:"manageURL"` }
Response ...