Documentation ¶
Index ¶
- func CallMultipartAPI(method string, host string, token map[string]string, path string, ...) (resp *http.Response, err error)
- func GenRequestHeader(authToken string) map[string]string
- func GenRequestHeaderNoToken() map[string]string
- func GenUrlForDownload(protocol string, host string, path string, username string) string
- func IsAbsolutePath(val interface{}, key string) (warns []string, errs []error)
- func IsIpv4NetmaskBrief(val interface{}, key string) (warns []string, errs []error)
- func IsIpv6AddressPlen(val interface{}, key string) (warns []string, errs []error)
- func NormalizeMultipartObject(method, path, file string, fContent []byte, obj interface{}, ...) (*http.Response, error)
- func Request(method string, host string, endpoint string, instId string, reqBytes []byte, ...) (*http.Response, []byte, error)
- func SendDelete(host string, endpoint string, instId string, reqBytes []byte, ...) (*http.Response, []byte, error)
- func SendGet(host string, endpoint string, instId string, reqBytes []byte, ...) (*http.Response, []byte, error)
- func SendPost(host string, endpoint string, reqBytes []byte, headers map[string]string, ...) (*http.Response, []byte, error)
- func SendPut(host string, endpoint string, instId string, reqBytes []byte, ...) (*http.Response, []byte, error)
- func SerializeToJson(a interface{}) ([]byte, error)
- type AxApiResponse
- type ThunderLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallMultipartAPI ¶
func GenRequestHeader ¶
func GenRequestHeaderNoToken ¶
func GenUrlForDownload ¶
func IsAbsolutePath ¶
func IsIpv4NetmaskBrief ¶
func IsIpv6AddressPlen ¶
func SendDelete ¶
func SerializeToJson ¶
Types ¶
type AxApiResponse ¶
type ThunderLog ¶
func CreateLogger ¶
func CreateLogger(partition_name string) *ThunderLog
Click to show internal directories.
Click to hide internal directories.