cmd

package
v0.0.0-...-050de5a Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

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

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()

func Launch

func Launch(resource *Resource)

func List

func List() (*[]Resource, error)

func Login

func Login(user string, password string)

Types

type CallReceiverOptions

type CallReceiverOptions struct {
	Endpoint              string
	Action                string
	ServerProtocolVersion string
	Transport             string
	Ticket                string
	StaTicket             string
}

type GetDetectionStatusResponseBody

type GetDetectionStatusResponseBody struct {
	Status                   string `json:"status"`
	HdxIsPassThrough         string `json:"hdxIsPassThrough"`
	HdxIsPassThroughVariable string `json:"hdxIsPassThroughVariable"`
	HdxVersion               string `json:"hdxVersion"`
}

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 GetLaunchStatusResponseBody

type GetLaunchStatusResponseBody struct {
	FileFetchStaTicket    string `json:"fileFetchStaTicket"`
	FileFetchTicket       string `json:"fileFetchTicket"`
	FileFetchUrl          string `json:"fileFetchUrl"`
	ServerProtocolVersion string `json:"serverProtocolVersion"`
	Status                string `json:"status"`
}

type ListResponseBody

type ListResponseBody struct {
	Unauthorized           bool       `json:"unauthorized"`
	IsSubscriptionEnabled  bool       `json:"isSubscriptionEnabled"`
	IsUnauthenticatedStore bool       `json:"isUnauthenticatedStore"`
	Resources              []Resource `json:"resources"`
}

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"`
}

Jump to

Keyboard shortcuts

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