Documentation
¶
Index ¶
- type CognitoClient
- func (c *CognitoClient) AddTarget(host string) (Response, error)
- func (c *CognitoClient) GetTargets() (Response, error)
- func (c *CognitoClient) Pull(namespace, host string) (Response, error)
- func (c *CognitoClient) Push(namespace, host, value string) (Response, error)
- func (c *CognitoClient) Refresh() error
- func (c *CognitoClient) RemoveTarget(host string) (Response, error)
- func (c *CognitoClient) SetNotification(address string) (Response, error)
- type Object
- type Response
- type TokenResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CognitoClient ¶
type CognitoClient struct { ClientID string `json:"client_id"` API string `json:"api"` Username string `json:"username"` Password string `json:"password"` // temp attributes AccessToken string `json:"access_token"` IDToken string `json:"id_token"` RefreshToken string `json:"refresh_token"` }
func Authenticate ¶
func Authenticate() (*CognitoClient, error)
func NewCognitoClientFromJSON ¶
func NewCognitoClientFromJSON(filePath string) (*CognitoClient, error)
func (*CognitoClient) GetTargets ¶
func (c *CognitoClient) GetTargets() (Response, error)
func (*CognitoClient) Push ¶
func (c *CognitoClient) Push(namespace, host, value string) (Response, error)
func (*CognitoClient) Refresh ¶
func (c *CognitoClient) Refresh() error
func (*CognitoClient) RemoveTarget ¶
func (c *CognitoClient) RemoveTarget(host string) (Response, error)
func (*CognitoClient) SetNotification ¶
func (c *CognitoClient) SetNotification(address string) (Response, error)
Click to show internal directories.
Click to hide internal directories.