Documentation
¶
Index ¶
- type Device
- type Space
- 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
- type SpaceNode
- type SpaceUser
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
DeviceID string `json:"deviceID,omitempty"`
Name string `json:"name,omitempty"`
Type string `json:"type,omitempty"`
Enabled bool `json:"enabled"`
RSAPrivateKey string `json:"rsaPrivateKey,omitempty"`
RSAPublicKey string `json:"rsaPublicKey,omitempty"`
DeviceUsers []*User `json:"-"`
}
func (*Device) UpdateKeys ¶
type Space ¶
type Space struct {
SpaceID string `json:"spaceID"`
SpaceName string `json:"spaceName"`
PublicKey string `json:"publicKey"`
Certificate string `json:"certificate"`
Cookbook string
Recipe string
IaaS string
Region string
Version string
IsEgressNode bool
Status string `json:"status"`
LastSeen uint64
// space access for
// user in context
IsOwned bool
IsAdmin bool
AccessStatus string
IPAddress string `json:"ipAddress"`
FQDN string `json:"fqdn"`
Port int `json:"port"`
VpnType string
LocalCARoot string `json:"localCARoot"`
}
func (*Space) CanUseAsEgressNode ¶
func (*Space) CreateDeviceConnectKeyPair ¶
func (*Space) GetApiCARoot ¶
func (*Space) GetEndpoint ¶
func (*Space) GetLastSeen ¶
func (*Space) GetPublicKey ¶
func (*Space) GetSpaceID ¶
func (*Space) GetSpaceName ¶
func (*Space) GetVersion ¶
func (*Space) HasAdminAccess ¶
func (*Space) IsSpaceOwned ¶
func (*Space) RestApiClient ¶
type SpaceCollection ¶
type SpaceCollection []SpaceNode
sorter to order spaces in order of recipe, cloud, region and deployment name
func (SpaceCollection) Len ¶
func (sc SpaceCollection) Len() int
func (SpaceCollection) Less ¶
func (sc SpaceCollection) Less(i, j int) bool
func (SpaceCollection) Swap ¶
func (sc SpaceCollection) Swap(i, j int)
type SpaceNode ¶
type SpaceNode interface {
// a key for the space node
Key() string
GetSpaceID() string
GetSpaceName() string
GetPublicKey() string
GetRecipe() string
GetIaaS() string
GetRegion() string
GetVersion() string
GetStatus() string
GetLastSeen() uint64
IsRunning() bool
IsSpaceOwned() bool
HasAdminAccess() bool
CanUseAsEgressNode() bool
GetApiCARoot() string
GetEndpoint() (string, error)
RestApiClient(ctx context.Context) (*rest.RestApiClient, error)
CreateDeviceConnectKeyPair() (string, string, error)
}
type User ¶
type User struct {
UserID string `json:"userID"`
Name string `json:"name"`
KeyTimestamp int64 `json:"keyTimestamp,omitempty"`
RSAPrivateKey string `json:"rsaPrivateKey,omitempty"`
RSAPublicKey string `json:"rsaPublicKey,omitempty"`
Certificate string `json:"certificate,omitempty"`
// indicates if user is active
// for the device in context
Active bool `json:"active"`
FirstName string `json:"-"`
MiddleName string `json:"-"`
FamilyName string `json:"-"`
PreferredName string `json:"-"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.