Documentation ¶
Index ¶
- type Client
- func (c *Client) Close()
- func (c *Client) EnableDrive() *drive.Drive
- func (c *Client) GetPushToken() error
- func (c *Client) LoadSession(reader io.Reader) error
- func (c *Client) Login(username, password string) error
- func (c *Client) SaveSession(writer io.Writer) error
- func (c *Client) SetSecurityCode(securityCode string) error
- func (c *Client) TwoFactorAuthenticationIsRequired() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides the iCloud instance
func (*Client) EnableDrive ¶
EnableDrive enables iCloud Drive service
func (*Client) LoadSession ¶
LoadSession loads session from a reader
func (*Client) SaveSession ¶
SaveSession dumps session to a writer
func (*Client) SetSecurityCode ¶
SetSecurityCode sets the SecurityCode and trusts the Client
func (*Client) TwoFactorAuthenticationIsRequired ¶
TwoFactorAuthenticationIsRequired checks whether the two factor authentication is required.
Click to show internal directories.
Click to hide internal directories.