xcelerate

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultXcodePath = "/usr/bin/xcodebuild"

	ErrFmtCreateConfigFile = `failed to create xcelerate config file: %w`
	ErrFmtEncodeConfigFile = `failed to encode xcelerate config file: %w`
	ErrFmtCreateFolder     = `failed to create .xcelerate folder (%s): %w`
	ErrNoAuthConfig        = "read auth config: %w"
)
View Source
const (
	BinDir              = "bin"
	ErrFmtDetermineHome = `could not determine home: %w`
)

Variables

This section is empty.

Functions

func DirPath

func DirPath(osProxy utils.OsProxy) string

func PathFor

func PathFor(osProxy utils.OsProxy, subpath string) string

Types

type Config

type Config struct {
	ProxyVersion           string                 `json:"proxyVersion"`
	ProxySocketPath        string                 `json:"proxySocketPath"`
	CLIVersion             string                 `json:"cliVersion"`
	WrapperVersion         string                 `json:"wrapperVersion"`
	OriginalXcodebuildPath string                 `json:"originalXcodebuildPath"`
	BuildCacheEnabled      bool                   `json:"buildCacheEnabled"`
	BuildCacheEndpoint     string                 `json:"buildCacheEndpoint"`
	PushEnabled            bool                   `json:"pushEnabled"`
	DebugLogging           bool                   `json:"debugLogging,omitempty"`
	Silent                 bool                   `json:"silent,omitempty"`
	AuthConfig             common.CacheAuthConfig `json:"authConfig,omitempty"`
}

func DefaultConfig

func DefaultConfig() Config

func NewConfig

func NewConfig(ctx context.Context,
	logger log.Logger,
	params Params,
	envs map[string]string,
	osProxy utils.OsProxy,
	cmdFunc utils.CommandFunc,
) (Config, error)

func ReadConfig

func ReadConfig(osProxy utils.OsProxy, decoderFactory utils.DecoderFactory) (Config, error)

func (Config) Save

func (config Config) Save(logger log.Logger, os utils.OsProxy, encoderFactory utils.EncoderFactory) error

type Params

type Params struct {
	BuildCacheEnabled       bool
	BuildCacheEndpoint      string
	DebugLogging            bool
	Silent                  bool
	XcodePathOverride       string
	ProxySocketPathOverride string
	PushEnabled             bool
}

func DefaultParams

func DefaultParams() Params

Jump to

Keyboard shortcuts

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