Documentation ¶
Overview ¶
Copyright © 2021 NAME HERE zhangjialecn@gmail.com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func CallReceiver(options *CallReceiverOptions)
- func Configuration()
- func Execute()
- func GatewayAuthLogin()
- func GetAuthMethods()
- func GetDetectionStatus(ticket string, ch chan GetDetectionStatusResponseBody)
- func GetDetectionTicket()
- func Launch(resource *Resource)
- func List() (*[]Resource, error)
- func Login(user string, password string)
- type CallReceiverOptions
- type GetDetectionStatusResponseBody
- type GetDetectionTicketResponseBody
- type GetLaunchStatusResponseBody
- type ListResponseBody
- type Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallReceiver ¶
func CallReceiver(options *CallReceiverOptions)
func Configuration ¶
func Configuration()
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GatewayAuthLogin ¶
func GatewayAuthLogin()
func GetAuthMethods ¶
func GetAuthMethods()
func GetDetectionStatus ¶
func GetDetectionStatus(ticket string, ch chan GetDetectionStatusResponseBody)
func GetDetectionTicket ¶
func GetDetectionTicket()
Types ¶
type CallReceiverOptions ¶
type GetDetectionTicketResponseBody ¶
type GetDetectionTicketResponseBody struct { ClientDetectionStaTicket string `json:"clientDetectionStaTicket"` ClientDetectionTicket string `json:"clientDetectionTicket"` PostbackUrl string `json:"postbackUrl"` ServerProtocolVersion string `json:"serverProtocolVersion"` Status string `json:"status"` }
type ListResponseBody ¶
type Resource ¶
type Resource struct { Clienttypes []string `json:"clienttypes"` Iconurl string `json:"iconurl"` Id string `json:"id"` Launchstatusurl string `json:"launchstatusurl"` Launchurl string `json:"launchurl"` Name string `json:"name"` Path string `json:"path"` Shortcutvalidationurl string `json:"shortcutvalidationurl"` Subscriptionurl string `json:"subscriptionurl"` }