uploaders

package
v0.0.0-...-9740741 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: MIT Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger() *logger

Types

type AppDeploymentMetaData

type AppDeploymentMetaData struct {
	AndroidArtifactInfo    *androidparser.ArtifactMetadata
	IOSArtifactInfo        *iosparser.ArtifactMetadata
	NotifyUserGroups       string
	AlwaysNotifyUserGroups string
	NotifyEmails           string
	IsEnablePublicPage     bool
}

type ArtifactArgs

type ArtifactArgs struct {
	Path     string
	FileSize int64 // bytes
}

type ArtifactURLs

type ArtifactURLs struct {
	PublicInstallPageURL string
	PermanentDownloadURL string
	DetailsPageURL       string
}

type TransferDetails

type TransferDetails struct {
	Size     int64
	Duration time.Duration
	Hostname string
}

func UploadArtifact

func UploadArtifact(uploadURL string, artifact ArtifactArgs, contentType string) (TransferDetails, error)

type TransferType

type TransferType int
const (
	Intermediate TransferType = iota
	Artifact
)

type UploadTask

type UploadTask struct {
	ErrorMessage   string `json:"error_msg"`
	URL            string `json:"upload_url"`
	ID             int64  `json:"id"`
	IsIntermediate bool   `json:"is_intermediate_file"`
}

func (UploadTask) Identifier

func (u UploadTask) Identifier() string

type Uploader

type Uploader struct {
	// contains filtered or unexported fields
}

func New

func New(
	logger log.Logger,
	fileManager fileutil.FileManager,
	androidParser *androidparser.Parser,
	iosParser *iosparser.Parser,
) *Uploader

func (*Uploader) DeployAAB

func (u *Uploader) DeployAAB(item deployment.DeployableItem, artifacts []string, buildURL, token string) ([]ArtifactURLs, error)

DeployAAB ...

func (*Uploader) DeployAPK

func (u *Uploader) DeployAPK(item deployment.DeployableItem, artifacts []string, buildURL, token, notifyUserGroups, alwaysNotifyUserGroups, notifyEmails string, isEnablePublicPage bool) ([]ArtifactURLs, error)

DeployAPK ...

func (*Uploader) DeployFile

func (u *Uploader) DeployFile(item deployment.DeployableItem, buildURL, token string) ([]ArtifactURLs, error)

DeployFile ...

func (*Uploader) DeployIPA

func (u *Uploader) DeployIPA(item deployment.DeployableItem, buildURL, token, notifyUserGroups, alwaysNotifyUserGroups, notifyEmails string, isEnablePublicPage bool) ([]ArtifactURLs, error)

DeployIPA ...

func (*Uploader) DeployXcarchive

func (u *Uploader) DeployXcarchive(item deployment.DeployableItem, buildURL, token string) ([]ArtifactURLs, error)

DeployXcarchive ...

func (*Uploader) Wait

func (u *Uploader) Wait()

Jump to

Keyboard shortcuts

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