Help us shape the future of Go! Take the 2026 Go Developer Survey

uploader

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RetryPeriod = 15 * time.Second

Functions

func CreateArchive added in v0.2.1

func CreateArchive(log *libbuildpack.Logger, root string) (*bytes.Buffer, error)

Types

type AMSClient

type AMSClient interface {
	Do(req *http.Request) (*http.Response, error)
}

func GetClient added in v0.2.1

func GetClient(cert, key []byte) (AMSClient, error)

type CompileError

type CompileError struct {
	Status       string   `json:"status"`
	Message      string   `json:"message"`
	Errors       []string `json:"errors"`
	CompileError struct {
		DclIssues map[string][]Dclssue `json:"dclIssues"`
	} `json:"compile_error"`
}

type Dclssue

type Dclssue struct {
	Line        int    `json:"line"`
	Column      int    `json:"column"`
	Message     string `json:"message"`
	SyntaxError bool   `json:"syntaxError"`
	Severity    string `json:"severity"`
	Code        int    `json:"code"`
}

type Uploader

type Uploader struct {
	Log           *libbuildpack.Logger
	Root          string
	Client        AMSClient
	AMSInstanceID string
	ExtraHeaders  map[string]string
}

func (*Uploader) Do added in v0.2.1

func (up *Uploader) Do(ctx context.Context, dstURL string) error

func (*Uploader) DoWithRetries added in v0.2.1

func (up *Uploader) DoWithRetries(ctx context.Context, dstURL string, body []byte, maxRetries int) (*http.Response, error)

Jump to

Keyboard shortcuts

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