Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIHostDefault = "https://agentapi.resim.ai/agent/v1" APIHostKey = "api-host" AuthHostDefault = "https://resim.us.auth0.com" AuthHostKey = "auth-host" PoolLabelsKey = "pool-labels" OneTaskKey = "one-task" UsernameKey = "username" PasswordKey = "password" AgentNameKey = "name" EnvPrefix = "RERUN_AGENT" LogLevelKey = "log-level" LogFilesizeKey = "log-max-filesize" LogFilesizeDefault = 500 ConfigPath = "$HOME/resim" CredentialCacheFilename = "cache.json" )
Variables ¶
This section is empty.
Functions ¶
func CreateTmpResimDir ¶
func CreateTmpResimDir() error
Types ¶
type Agent ¶
type Agent struct {
APIClient *api.ClientWithResponses
DockerClient *client.Client
CurrentToken *oauth2.Token
TokenMutex sync.Mutex
ClientID string
AuthHost string
APIHost string
Name string
PoolLabels []string
ConfigDirOverride string
LogDirOverride string
LogLevel string
Status agentStatus
CurrentTaskName string
CurrentTaskStatus api.TaskStatus
}
func (*Agent) GetConfigDir ¶
func (*Agent) InitializeLogging ¶
func (*Agent) LoadConfig ¶
type Task ¶
type Task api.TaskPollOutput
Directories
¶
| Path | Synopsis |
|---|---|
|
Package api provides primitives to interact with the openapi HTTP API.
|
Package api provides primitives to interact with the openapi HTTP API. |
|
test
|
|
Click to show internal directories.
Click to hide internal directories.