Documentation
¶
Index ¶
- func CheckAndRefreshAuth(a *cli.App) error
- func CreateNewRequest(method, url string, body []byte) (*http.Request, error)
- func EnsureImageTag(imageName *string) error
- func ExportDockerImage(imageName string) (io.ReadCloser, int64, error)
- func FieldCheck(a *cli.App) error
- func HandleExistingContainer(app *cli.App, conflictResp *common.ConflictCheckResponse) error
- func PrepareJSONPayload(payload common.Payload) ([]byte, error)
- func ReAuthenticate(a *cli.App) error
- func SendRequest(req *http.Request) (*http.Response, error)
- func StartServer(a *server.App, port string) error
- func ValidateImageName(imageName string) error
- func ValidatePortMapping(port string) error
- func ValidateTargetDomain(targetDomain string) error
- type ChunkMetadata
- type ChunkedClient
- type PingResponse
- type ProgressDisplay
- type Response
- type UploadProgress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndRefreshAuth ¶ added in v0.1.15
func CreateNewRequest ¶
CreateNewRequest creates a new HTTP request
func EnsureImageTag ¶
func ExportDockerImage ¶ added in v0.1.15
func ExportDockerImage(imageName string) (io.ReadCloser, int64, error)
func FieldCheck ¶
func HandleExistingContainer ¶ added in v0.1.14
func HandleExistingContainer(app *cli.App, conflictResp *common.ConflictCheckResponse) error
func PrepareJSONPayload ¶
PrepareJSONPayload marshals the payload into JSON
func ReAuthenticate ¶
func SendRequest ¶
SendRequest sends the HTTP request and returns the response
func ValidateImageName ¶
func ValidatePortMapping ¶
func ValidateTargetDomain ¶
Types ¶
type ChunkMetadata ¶ added in v0.1.15
type ChunkMetadata = common.ChunkMetadata
type ChunkedClient ¶ added in v0.1.15
type ChunkedClient struct {
// contains filtered or unexported fields
}
func NewChunkedClient ¶ added in v0.1.15
func NewChunkedClient(app *cli.App) *ChunkedClient
NewChunkedClient creates a new chunked client
func (*ChunkedClient) Cancel ¶ added in v0.1.15
func (c *ChunkedClient) Cancel()
type PingResponse ¶
Define a struct to match the JSON response structure
func PerformPingRequest ¶
func PerformPingRequest(a *cli.App) (PingResponse, error)
type ProgressDisplay ¶ added in v0.1.15
type ProgressDisplay struct {
// contains filtered or unexported fields
}
ProgressDisplay manages the upload progress display
func NewProgressDisplay ¶ added in v0.1.15
func NewProgressDisplay() *ProgressDisplay
NewProgressDisplay creates a new progress display
func (*ProgressDisplay) Clear ¶ added in v0.1.15
func (pd *ProgressDisplay) Clear()
func (*ProgressDisplay) Pause ¶ added in v0.1.15
func (pd *ProgressDisplay) Pause()
func (*ProgressDisplay) Resume ¶ added in v0.1.15
func (pd *ProgressDisplay) Resume()
func (*ProgressDisplay) Start ¶ added in v0.1.15
func (pd *ProgressDisplay) Start()
func (*ProgressDisplay) Stop ¶ added in v0.1.15
func (pd *ProgressDisplay) Stop()
func (*ProgressDisplay) Update ¶ added in v0.1.15
func (pd *ProgressDisplay) Update(completed, total int, percentage float64)
type Response ¶
func SendHTTPRequest ¶
func SendHTTPRequest(a *cli.App, rp *common.RequestPayload, method string, endpoint string) (*Response, error)
SendHTTPRequest sends the HTTP request
type UploadProgress ¶ added in v0.1.15
UploadProgress represents the current state of the upload
Click to show internal directories.
Click to hide internal directories.