ingress

package
v0.0.0-...-99fe1a5 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrArchive = errors.New("archive build failed")

Functions

func Init

func Init(s *api.Service)

Init has to be called to set up the API configuration for the service.

Types

type Archive

type Archive struct {
	ContentType string
	Path        string
}

Archive is an argument for UploadArchive.

type Upload

type Upload struct {
	Account int
	OrgID   int
}

Upload object is contained in Uploaded object.

type Uploaded

type Uploaded struct {
	RequestID string `json:"request_id"`
	Upload    Upload `json:"upload"`
}

Uploaded object is returned by Ingress on successful upload.

func UploadArchive

func UploadArchive(archive Archive) (*Uploaded, api.IError)

UploadArchive loads an archive from filesystem and uploads it to Ingress.

Jump to

Keyboard shortcuts

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