Documentation ¶
Overview ¶
Defines W&B settings.
Index ¶
- type Settings
- func (s *Settings) EnsureAPIKey() error
- func (s *Settings) GetAPIKey() string
- func (s *Settings) GetEntity() string
- func (s *Settings) GetFilesDir() string
- func (s *Settings) GetIgnoreGlobs() []string
- func (s *Settings) GetInternalLogFile() string
- func (s *Settings) GetLogDir() string
- func (s *Settings) GetProject() string
- func (s *Settings) GetRunID() string
- func (s *Settings) GetRunURL() string
- func (s *Settings) IsOffline() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Settings ¶
type Settings struct { // The source proto. // // DO NOT ADD USAGES. Used to refactor incrementally. Proto *service.Settings }
Settings for the SDK.
This is derived from the Settings proto and adapted for use in Go.
func (*Settings) EnsureAPIKey ¶
Ensures the APIKey is set if it needs to be.
Reads the API key from .netrc if it's not already set.
func (*Settings) GetFilesDir ¶
The local directory where the run's files are stored.
func (*Settings) GetIgnoreGlobs ¶
Unix glob patterns relative to `files_dir` to not upload.
func (*Settings) GetInternalLogFile ¶
Filename to use for internal logs.
Click to show internal directories.
Click to hide internal directories.