instances

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(configGetter config.ConfigGetter, configManager model.ConfigManager) *Manager

func (*Manager) FindConfigInstance

func (m *Manager) FindConfigInstance(instanceType, instanceName string) (*model.ConfigInstance, error)

FindConfigInstance finds a specific instance by type and name

func (*Manager) GetAllInstances

func (m *Manager) GetAllInstances() []*model.ConfigInstance

GetAllInstances returns all arrs instances from current configuration

func (*Manager) GetInstance

func (m *Manager) GetInstance(instanceType, instanceName string) *model.ConfigInstance

GetInstance returns a specific instance by type and name (nil if not found)

func (*Manager) RegisterInstance

func (m *Manager) RegisterInstance(ctx context.Context, arrURL, apiKey string) (bool, error)

RegisterInstance attempts to automatically register an ARR instance It returns true if a new instance was registered, false if it already existed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL