Documentation ¶
Index ¶
- Constants
- func GetControlClients() (schema.ControlClients, error)
- func Init(ctx context.Context, opts ...Option) (func(), error)
- func InitClientServer(ctx context.Context)
- func InitHttpClient()
- func InitLogger() (func(), error)
- func InitMachine() error
- func Run(ctx context.Context, opts ...Option) error
- type Option
- type State
- type Up
- func (a *Up) GetAuthUrl() (*schema.ControlMachineAuthResult, error)
- func (a *Up) GetLoginResult(timeout int) (*schema.ControlLoginResult, error)
- func (a *Up) GetUserDetail() (*schema.ControlUserDetail, error)
- func (a *Up) ParseW3sData(ctx context.Context, order *schema.ControlClient) (*schema.ClientConfig, error)
Constants ¶
View Source
const ( StateNotAuthenticated = State(iota) StateAuthenticating StateAuthenticated )
Variables ¶
This section is empty.
Functions ¶
func InitClientServer ¶
func InitHttpClient ¶
func InitHttpClient()
Types ¶
type Option ¶
type Option func(*options)
Option Defining configuration items
func SetConfigFile ¶
SetConfigFile setting the configuration file
type Up ¶
type Up struct { UserDetail *schema.ControlUserDetail State State UpCode string }
func (*Up) GetAuthUrl ¶
func (a *Up) GetAuthUrl() (*schema.ControlMachineAuthResult, error)
func (*Up) GetLoginResult ¶
func (a *Up) GetLoginResult(timeout int) (*schema.ControlLoginResult, error)
GetLoginResult Get login result information
func (*Up) GetUserDetail ¶
func (a *Up) GetUserDetail() (*schema.ControlUserDetail, error)
func (*Up) ParseW3sData ¶
func (a *Up) ParseW3sData(ctx context.Context, order *schema.ControlClient) (*schema.ClientConfig, error)
Click to show internal directories.
Click to hide internal directories.