Versions in this module Expand all Collapse all v0 v0.0.4 Jul 21, 2023 v0.0.3 Jul 21, 2023 v0.0.2 Jul 21, 2023 v0.0.1 Jul 20, 2023 Changes in this version + type Device struct + DeviceID string + DeviceUsers []*User + Enabled bool + Name string + RSAPrivateKey string + RSAPublicKey string + Type string + func (d *Device) UpdateKeys() error + type Space struct + AccessStatus string + Certificate string + Cookbook string + FQDN string + IPAddress string + IaaS string + IsAdmin bool + IsEgressNode bool + IsOwned bool + LastSeen uint64 + LocalCARoot string + Port int + PublicKey string + Recipe string + Region string + SpaceID string + SpaceName string + Status string + Version string + VpnType string + func (s *Space) CanUseAsEgressNode() bool + func (s *Space) CreateDeviceConnectKeyPair() (string, string, error) + func (s *Space) GetApiCARoot() string + func (s *Space) GetEndpoint() (string, error) + func (s *Space) GetIaaS() string + func (s *Space) GetLastSeen() uint64 + func (s *Space) GetPublicKey() string + func (s *Space) GetRecipe() string + func (s *Space) GetRegion() string + func (s *Space) GetSpaceID() string + func (s *Space) GetSpaceName() string + func (s *Space) GetStatus() string + func (s *Space) GetVersion() string + func (s *Space) HasAdminAccess() bool + func (s *Space) IsRunning() bool + func (s *Space) IsSpaceOwned() bool + func (s *Space) Key() string + func (s *Space) RestApiClient(ctx context.Context) (*rest.RestApiClient, error) + type SpaceCollection []SpaceNode + func (sc SpaceCollection) Len() int + func (sc SpaceCollection) Less(i, j int) bool + func (sc SpaceCollection) Swap(i, j int) + type SpaceNode interface + CanUseAsEgressNode func() bool + CreateDeviceConnectKeyPair func() (string, string, error) + GetApiCARoot func() string + GetEndpoint func() (string, error) + GetIaaS func() string + GetLastSeen func() uint64 + GetPublicKey func() string + GetRecipe func() string + GetRegion func() string + GetSpaceID func() string + GetSpaceName func() string + GetStatus func() string + GetVersion func() string + HasAdminAccess func() bool + IsRunning func() bool + IsSpaceOwned func() bool + Key func() string + RestApiClient func(ctx context.Context) (*rest.RestApiClient, error) + type SpaceUser struct + Devices []*Device + IsAdmin bool + IsOwner bool + Name string + UserID string + type User struct + Active bool + Certificate string + FamilyName string + FirstName string + KeyTimestamp int64 + MiddleName string + Name string + PreferredName string + RSAPrivateKey string + RSAPublicKey string + UserID string + func (u *User) DecryptConfig(configData string) ([]byte, error) + func (u *User) EncryptConfig(configData []byte) (string, error) + func (u *User) SetKey(key *crypto.RSAKey) error