Documentation
¶
Index ¶
- func CreateNewRequest(method, url string, body []byte) (*http.Request, error)
- func EnsureImageTag(imageName *string)
- func FieldCheck(a *cli.App) 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 PingResponse
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewRequest ¶
CreateNewRequest creates a new HTTP request
func EnsureImageTag ¶
func EnsureImageTag(imageName *string)
func FieldCheck ¶
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 PingResponse ¶
Define a struct to match the JSON response structure
func PerformPingRequest ¶
func PerformPingRequest(a *cli.App) (PingResponse, error)
Click to show internal directories.
Click to hide internal directories.