Skip to content

Commit

Permalink
SandboxTrack contains a SandboxConfigVersion (#21)
Browse files Browse the repository at this point in the history
Signed-off-by: Raphaël Pinson <[email protected]>
  • Loading branch information
raphink authored Dec 13, 2024
1 parent a8d99e0 commit 84220a5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions instruqt/sandboxconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,21 @@ type SandboxConfig struct {
Version int
Deleted *time.Time
}

type SandboxConfigVersionStatus string

const (
SandboxConfigVersionStatusDraft SandboxConfigVersionStatus = "draft"
SandboxConfigVersionStatusPublished SandboxConfigVersionStatus = "published"
SandboxConfigVersionStatusArchived SandboxConfigVersionStatus = "archived"
SandboxConfigVersionStatusIsolated SandboxConfigVersionStatus = "isolated"
)

type SandboxConfigVersion struct {
Id string
Config SandboxConfig
Version int
Description string
Status SandboxConfigVersionStatus
Published_At *time.Time
}
2 changes: 1 addition & 1 deletion instruqt/track.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ type SandboxTrack struct {
Participant struct { // Information about the participant of the sandbox track.
Id string
}
SandboxConfig *SandboxConfig // The SandboxConfig associated the track.
SandboxConfig *SandboxConfigVersion // The SandboxConfig associated the track.
}

// GetTrackById retrieves a track from Instruqt using its unique track ID.
Expand Down

0 comments on commit 84220a5

Please sign in to comment.