mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
Add AppServer.SetHostID (#62873)
This commit is contained in:
@@ -44,6 +44,8 @@ type AppServer interface {
|
||||
GetHostname() string
|
||||
// GetHostID returns ID of the host the server is running on.
|
||||
GetHostID() string
|
||||
// SetHostID sets ID of the host the server is running on.
|
||||
SetHostID(string)
|
||||
// GetRotation gets the state of certificate authority rotation.
|
||||
GetRotation() Rotation
|
||||
// SetRotation sets the state of certificate authority rotation.
|
||||
@@ -149,6 +151,11 @@ func (s *AppServerV3) GetHostID() string {
|
||||
return s.Spec.HostID
|
||||
}
|
||||
|
||||
// SetHostID sets ID of the host the server is running on.
|
||||
func (s *AppServerV3) SetHostID(hostID string) {
|
||||
s.Spec.HostID = hostID
|
||||
}
|
||||
|
||||
// GetKind returns the resource kind.
|
||||
func (s *AppServerV3) GetKind() string {
|
||||
return s.Kind
|
||||
|
||||
Reference in New Issue
Block a user