Documentation ¶
Index ¶
- type ApiClient
- func (a *ApiClient) AuthCallback() (time.Duration, error)
- func (a *ApiClient) AuthTokenKey() string
- func (a *ApiClient) Authenticate() (bool, error)
- func (a *ApiClient) Crypt() (*crypto.Crypt, *sync.Mutex)
- func (a *ApiClient) GetNode() userspace.SpaceNode
- func (a *ApiClient) Initialize(clientIDKey string, clientRSAKey *crypto.RSAKey, node userspace.SpaceNode) error
- func (a *ApiClient) IsAuthenticated() bool
- func (a *ApiClient) IsRunning() bool
- func (a *ApiClient) Reset()
- func (a *ApiClient) Start() error
- func (a *ApiClient) Stop()
- func (a *ApiClient) WaitForAuth() bool
- type AuthReqKey
- type AuthRequest
- type AuthRespKey
- type AuthResponse
- type CreateMeshAuthKeyReq
- type CreateMeshAuthKeyResp
- type ErrorResponse
- type TSNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiClient ¶
type ApiClient struct { Node userspace.SpaceNode // x-auth-key header AuthIDKey string // authenticated rest client for // api requests RestApiClient *rest.RestApiClient // contains filtered or unexported fields }
func NewApiClient ¶
func (*ApiClient) AuthTokenKey ¶
func (*ApiClient) Authenticate ¶
func (*ApiClient) Initialize ¶
func (*ApiClient) IsAuthenticated ¶
func (*ApiClient) WaitForAuth ¶
type AuthReqKey ¶
type AuthRequest ¶
type AuthRespKey ¶
type AuthResponse ¶
type CreateMeshAuthKeyReq ¶
type CreateMeshAuthKeyReq struct {
ExpiresIn int64 `json:"expiresIn,omitempty"`
}
type CreateMeshAuthKeyResp ¶
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.