uploader

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMSClient

type AMSClient interface {
	Do(req *http.Request) (*http.Response, 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 interface {
	Upload(string, string) error
}

func NewUploader

func NewUploader(log *libbuildpack.Logger, cert, key []byte) (Uploader, error)

func NewUploaderWithClient

func NewUploaderWithClient(log *libbuildpack.Logger, client AMSClient) Uploader

Jump to

Keyboard shortcuts

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