Documentation
¶
Index ¶
- func Export(dir string, tunnelClientBinary string) error
- func NormalizeBinaryPath(path string) (string, error)
- func PluginTargetDir(codexHome string) string
- func PluginTargetDirFor(codexHome string, marketplace string, pluginName string, version string) string
- func ReadInstalledBinaryHint(codexHome string) string
- func ResolveCodexHome(lookupEnv func(string) (string, bool)) string
- type AdminProfileResult
- type AliasOptions
- type CleanupOptions
- type ConnectOptions
- type CreateOptions
- type Detection
- type ListOptions
- type Manager
- func (m *Manager) ActivateAdminProfile(name string) (map[string]any, error)
- func (m *Manager) CleanupInventory(opts CleanupOptions) (map[string]any, error)
- func (m *Manager) Connect(opts ConnectOptions) (map[string]any, error)
- func (m *Manager) Create(opts CreateOptions) (map[string]any, error)
- func (m *Manager) DeleteAdminProfile(name string) (map[string]any, error)
- func (m *Manager) ListAdminProfiles() (map[string]any, error)
- func (m *Manager) ListRuntimes(opts ListOptions) (map[string]any, error)
- func (m *Manager) Remove(opts AliasOptions) (map[string]any, error)
- func (m *Manager) SetAdminProfile(name, baseURL, urlPath, adminKey string, activate bool) (map[string]any, error)
- func (m *Manager) Status(opts AliasOptions) (map[string]any, error)
- func (m *Manager) Stop(opts AliasOptions) (map[string]any, error)
- type PayloadError
- type PluginInstallation
- type RepairAction
- type StalePluginConfigEntry
- type UninstallResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeBinaryPath ¶
func PluginTargetDir ¶
func PluginTargetDirFor ¶
func ReadInstalledBinaryHint ¶
Types ¶
type AdminProfileResult ¶
type AdminProfileResult struct {
Name string `json:"name"`
ControlPlaneBaseURL string `json:"control_plane_base_url"`
ControlPlaneURLPath string `json:"control_plane_url_path,omitempty"`
AdminKey string `json:"admin_key"`
UpdatedAt string `json:"updated_at,omitempty"`
Path string `json:"path"`
Active bool `json:"active"`
}
type AliasOptions ¶
type CleanupOptions ¶
type CleanupOptions struct {
Apply bool
}
type ConnectOptions ¶
type CreateOptions ¶
type Detection ¶
type Detection struct {
CodexHome string
ConfigPath string
PluginDir string
PluginKey string
PluginMarketplace string
PluginVersion string
Detected bool
PluginName string
PluginInstalled bool
PluginBinaryHint string
PluginBinaryHintPath string
PluginBinaryHintFound bool
EnabledConfigKeys []string
Installations []PluginInstallation
StaleConfigEntries []StalePluginConfigEntry
InstallHint string
}
type ListOptions ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) ActivateAdminProfile ¶
func (*Manager) CleanupInventory ¶
func (m *Manager) CleanupInventory(opts CleanupOptions) (map[string]any, error)
func (*Manager) DeleteAdminProfile ¶
func (*Manager) ListRuntimes ¶
func (m *Manager) ListRuntimes(opts ListOptions) (map[string]any, error)
func (*Manager) SetAdminProfile ¶
type PayloadError ¶
func (*PayloadError) Error ¶
func (e *PayloadError) Error() string
type PluginInstallation ¶
type PluginInstallation struct {
Key string `json:"key"`
Marketplace string `json:"marketplace"`
Version string `json:"version"`
Dir string `json:"dir"`
ManifestPath string `json:"manifest_path"`
Installed bool `json:"installed"`
BinaryHintPath string `json:"binary_hint_path,omitempty"`
BinaryHint string `json:"binary_hint,omitempty"`
}
type RepairAction ¶
type StalePluginConfigEntry ¶
Click to show internal directories.
Click to hide internal directories.