Documentation
¶
Index ¶
- type Client
- type ICSConnection
- func (connection *ICSConnection) Connect(ctx context.Context) error
- func (connection *ICSConnection) GetClient() (*client.Client, error)
- func (connection *ICSConnection) Logout(ctx context.Context) error
- func (connection *ICSConnection) NewClient(ctx context.Context) (*client.Client, error)
- func (connection *ICSConnection) UpdateCredentials(username string, password string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
NewClient creates a new client from a URL. The client authenticates with the server with username/password before returning if the URL contains user information.
type ICSConnection ¶
type ICSConnection struct { Client *client.Client Username string Password string Hostname string Port string Insecure bool // contains filtered or unexported fields }
func (*ICSConnection) GetClient ¶
func (connection *ICSConnection) GetClient() (*client.Client, error)
NewClient creates a new ics-go-sdk client for the ICSConnection obj
func (*ICSConnection) Logout ¶
func (connection *ICSConnection) Logout(ctx context.Context) error
Logout calls SessionManager.Logout for the given connection.
func (*ICSConnection) NewClient ¶
NewClient creates a new ics-go-sdk client for the ICSConnection obj
func (*ICSConnection) UpdateCredentials ¶
func (connection *ICSConnection) UpdateCredentials(username string, password string)
UpdateCredentials updates username and password. Note: Updated username and password will be used when there is no session active
Click to show internal directories.
Click to hide internal directories.