package templates import ( "converge/pkg/models" "time" _ "time/tzdata" ) templ Sessions(state *models.State, loc *time.Location) {
-
} else {| rendez-vous id | start time | expiry time | username | host | os | shell |
|---|---|---|---|---|---|---|
| {agent.PublicId} | {agent.StartTime.In(location).Format(time.DateTime)} | {agent.ExpiryTime.In(location).Format(time.DateTime)} | {agent.EnvironmentInfo.Username} | {agent.EnvironmentInfo.Hostname} | {agent.EnvironmentInfo.OS} | {agent.EnvironmentInfo.Shell} |
-
} else {| id | start time | session type | rendez-vous id | username | host | os | shell |
|---|---|---|---|---|---|---|---|
| {client.ClientId} | {client.StartTime.In(location).Format(time.DateTime)} | {client.SessionType} | {client.PublicId} | {client.EnvironmentInfo.Username} | {client.EnvironmentInfo.Hostname} | {client.EnvironmentInfo.OS} | {client.EnvironmentInfo.Shell} |