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