settings

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SSHAgentAuthSockEnv = "SSH_AUTH_SOCK"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseProviders

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

func NewBaseProviders

func NewBaseProviders(params ProviderParams) *BaseProviders

func (*BaseProviders) AuthSock

func (b *BaseProviders) AuthSock() string

func (*BaseProviders) Clone

func (b *BaseProviders) Clone(opts ...CloneOpt) *BaseProviders

func (*BaseProviders) EnvsPrefix

func (b *BaseProviders) EnvsPrefix() string

func (*BaseProviders) IsDebug

func (b *BaseProviders) IsDebug() bool

func (*BaseProviders) Logger

func (b *BaseProviders) Logger() *slog.Logger

func (*BaseProviders) NodeBinPath

func (b *BaseProviders) NodeBinPath() string

func (*BaseProviders) NodeTmpDir

func (b *BaseProviders) NodeTmpDir() string

func (*BaseProviders) RegisterOnShutdown

func (b *BaseProviders) RegisterOnShutdown(name string, action func())

func (*BaseProviders) TmpDir

func (b *BaseProviders) TmpDir() string

func (*BaseProviders) WithLogger

func (b *BaseProviders) WithLogger(l *slog.Logger) *BaseProviders

type CloneOpt

type CloneOpt func(*BaseProviders)

func CloneWithAuthSock

func CloneWithAuthSock(path string) CloneOpt

func CloneWithEnvsPrefix

func CloneWithEnvsPrefix(prefix string) CloneOpt

func CloneWithLogger added in v0.12.0

func CloneWithLogger(l *slog.Logger) CloneOpt

func CloneWithNodeTmpPath added in v0.7.0

func CloneWithNodeTmpPath(dir string) CloneOpt

func CloneWithTmpDir added in v0.2.0

func CloneWithTmpDir(dir string) CloneOpt

type OnShutdown

type OnShutdown func(name string, action func())

type ProviderParams

type ProviderParams struct {
	Logger      *slog.Logger
	IsDebug     bool
	NodeTmpPath string
	NodeBinPath string
	TmpDir      string
	AuthSock    string
	EnvsPrefix  string
	OnShutdown  OnShutdown
}

type Settings

type Settings interface {
	Logger() *slog.Logger
	NodeTmpDir() string
	NodeBinPath() string
	IsDebug() bool
	TmpDir() string
	AuthSock() string
	EnvsPrefix() string
	RegisterOnShutdown(string, func())
}

Jump to

Keyboard shortcuts

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