WHOOSH-LABELS-004: Standardize Automatic Label Creation to Match Ecosystem Convention #6
@@ -456,7 +456,17 @@ func (sm *SwarmManager) ListAgentServices() ([]swarm.Service, error) {
|
|||||||
|
|
||||||
// GetServiceLogs retrieves logs for a service
|
// GetServiceLogs retrieves logs for a service
|
||||||
func (sm *SwarmManager) GetServiceLogs(serviceID string, lines int) (string, error) {
|
func (sm *SwarmManager) GetServiceLogs(serviceID string, lines int) (string, error) {
|
||||||
options := types.ContainerLogsOptions{
|
// Create logs options struct inline to avoid import issues
|
||||||
|
options := struct {
|
||||||
|
ShowStdout bool
|
||||||
|
ShowStderr bool
|
||||||
|
Since string
|
||||||
|
Until string
|
||||||
|
Timestamps bool
|
||||||
|
Follow bool
|
||||||
|
Tail string
|
||||||
|
Details bool
|
||||||
|
}{
|
||||||
ShowStdout: true,
|
ShowStdout: true,
|
||||||
ShowStderr: true,
|
ShowStderr: true,
|
||||||
Tail: fmt.Sprintf("%d", lines),
|
Tail: fmt.Sprintf("%d", lines),
|
||||||
|
|||||||
Reference in New Issue
Block a user