profile

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: MIT Imports: 43 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Default = "default"

Profile that is always there and can't be deleted, the one settings are kept in until another is made and used

View Source
const DescribeSystem = `` /* 1219-byte string literal not displayed */

What the helper model is told when it describes a profile

Variable naming the folder of icebath's settings and profiles, or the folder of one profile in it

View Source
const ImportRecord = "import-sync.json"

Record of what a profile imports from other agents, such as Claude Code and Codex, which a profile that keeps syncing them holds a copy of

View Source
const (
	ManifestFile = "distribution.yaml"
)

Files of a distribution: its manifest, the template of its .env, and what that template is kept as in the profile

Variables

This section is empty.

Functions

func AliasDir

func AliasDir() (string, error)

Folder of the aliases, short commands that open icebath on a profile: the person's folder of the commands icebath puts on PATH

func AliasOf

func AliasOf(profile string) (string, error)

Alias that opens the profile, empty when none does

func AliasPath

func AliasPath(alias string) (string, error)

File of an alias in the folder of aliases, a .bat on Windows

func Aliases

func Aliases() (map[string]string, error)

Alias of each profile, read in one pass over the folder of aliases, one named otherwise winning over one named for the profile

func AliasesOnPath

func AliasesOnPath() (bool, error)

Whether the folder of aliases is on the PATH

func Canon

func Canon(name string) (string, error)

Name a profile goes by once normalized and checked

func Chosen

func Chosen(flag, home string) (name, by string)

Profile picked for this run before the settings are read, and what picked it: the one -p names, else the profile folder ICEBATH_HOME names, else the one a launcher pinned, else the one the icebath that started this one gave it. Empty when nothing picks one, so the run opens with the profile icebath opens with

func Collision

func Collision(name string) (string, error)

Why the name can't be an alias, empty when it can: reserved, a command of icebath, or a command already on the PATH that is not an alias icebath wrote

func Command

func Command(name string) (done, failed string)

Writes the shell command that opens icebath on the profile, named after it: what was done, or why nothing was, each a sentence

func DropAlias

func DropAlias(name string) (done, failed string)

Removes the shell command icebath wrote for a deleted profile: what was done, nothing when there was none, or what failed

func ExportPath

func ExportPath(root, file string) (string, error)

Where an export goes when no output is named, under the file name the export gave it: the profile-exports folder of icebath's folder, else of the user's home or the temporary folder when that lies in a git checkout, refused when every one does, or the folder is a link or another user's

func FollowAlias

func FollowAlias(old, renamed string) (done, failed string)

Moves the shell command of a renamed profile to its new name, made for it even when the old name had none: what was done, or what failed

func Foreign

func Foreign(ctx context.Context, dir string, uid, most int) (int, string)

How many entries of the folder and below it belong to another user than the uid, at most the count given, and the first of them; links are looked at and never followed, and the look ends with the context

func Home

func Home() (root, pinned string, err error)

Folder of icebath's settings and profiles, the one function that names it: the one ICEBATH_HOME names, its ~ and variables expanded, else the user's config folder's icebath with ICEBATH_DATA_DIR_SUFFIX after the name; with the profile it names when it names one profile's folder. Every feature, the records of the install, the uninstall and the backups follow it

func Invalid

func Invalid(name string) error

Refusal of a name that is no profile name, with a valid one to use instead

func Join

func Join(profile, rest string) string

Argument opening a screen on the profile with the rest after it, the way Split reads it; no @name for the profile in use

func Label

func Label(name, display string) string

Display name of a profile followed by its name in parentheses, the name alone when they are the same or it has none

func MakeAlias

func MakeAlias(name, target string) (string, error)

Writes the alias that opens icebath on the profile target, or on the profile of its own name: its file, or an error saying why it could not be written

func Mounted

func Mounted(path string) bool

Whether the folder is a mount point of its own, such as the data volume of a container, as this process sees them in /proc/self/mountinfo

func Names

func Names(cfg *config.Config) ([]string, error)

Every profile the settings know, by name, the default one first

func Normalize

func Normalize(name string) (string, error)

Name a profile goes by: lower case, default matched in any case

func Opening

func Opening(root string) string

Profile the settings every profile shares under the folder name as the one icebath opens with, read before they are loaded; empty for the default one

func OurAlias

func OurAlias(alias string) (string, error)

Alias icebath wrote under the name, empty when there is none

func OwnerOf

func OwnerOf(path string) (int, bool)

User id that owns the path, false when it can't be told

func Picked

func Picked(ctx context.Context) string

Profile the command works on, as its window names it to the server; empty for none, where the server's profile in use serves

func Rekeyed

func Rekeyed(cfg *config.Config, data, live []byte) []byte

A config.yaml that holds no credentials, such as one a backup without keys holds, with each credential of live put back where it holds none, so writing it over live keeps the keys live has; the data as it is when either does not parse

func RemoveAlias

func RemoveAlias(name string) (bool, error)

Removes the alias icebath wrote under the name, whether there was one

func SaveArchive

func SaveArchive(data []byte, file, output string) (string, error)

Saves a profile's archive where asked, always as a .tar.gz, else under the file name its export gave it in the folder exports go to of icebath's folder on this machine: where it went

func Settle

func Settle(cfg *config.Config) (int, []string)

Puts the home in force on the folders of the settings folder: each gets the mode, and a process running as root that the home names an owner for gives them, and what is below them, to it. How many folders changed, and what went wrong, a sentence each

func Settled

func Settled(cfg *config.Config) home.Home

How the home stands for the settings, worked out now: the folder of icebath's settings and profiles, the mode its folders are made with and who they are given to, and what of the variables is not taken, in words

func Shaped

func Shaped(name string) bool

Whether the text has the shape of a profile name, reserved ones included

func Split

func Split(argument string) (profile, rest string)

Profile a screen is opened on and the rest of its argument: a leading @name names the profile, the one in use when there is none

func SudoHome

func SudoHome(root, name string) string

Folder of icebath of the user who ran sudo, when this process runs as root under sudo and that user has the profile and this root does not; empty otherwise

func Suggest

func Suggest(name string) string

Valid name made of a typed one, my-work when nothing usable is left

func Unkeyed

func Unkeyed(cfg *config.Config, data []byte) []byte

A config.yaml of the profile of the settings without the credentials it holds, the rest kept as written, as an export writes it; the data as it is when it does not parse

func Unlike

func Unlike(h home.Home, mode fs.FileMode) bool

Whether a folder's mode is not the one the home makes folders with: its permission, set-user, set-group and sticky bits

func Unsettled

func Unsettled(cfg *config.Config, most int) []string

Folders of the settings folder whose mode is not the home's, at most the count given, for the doctor to name

func ValidAlias

func ValidAlias(name string) error

Error unless the name is safe as the file name of an alias in the folder of aliases

func Validate

func Validate(name string) error

Error unless the name can name a profile: shaped like one and not reserved, default passing

func WithPicked

func WithPicked(ctx context.Context, name string) context.Context

Context of a command on the profile it works on, which its requests to a server name

func WriteMeta

func WriteMeta(dir string, update MetaUpdate) error

Changes the fields given of the profile folder's profile.yaml, keeping everything else it holds in its order

Types

type Asking

type Asking struct {
	Window string
	Others bool
}

Who asks for a rename or delete: the window that asks, which never counts among the windows on the profile, and whether to go ahead while other windows work on it, which follow a rename and move to the default profile after a delete

type Attendance

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

One window working on a profile through this server for as long as it attends: the record and lock that tell every icebath of this computer so, and what became of its profile since it last looked

func (*Attendance) Changes

func (a *Attendance) Changes() []Change

Changes of the window's profile since the last call, oldest first

func (*Attendance) Close

func (a *Attendance) Close()

Ends the attendance: the window no longer counts anywhere. Closing again does nothing

func (*Attendance) Profile

func (a *Attendance) Profile() string

Profile the window works on now

func (*Attendance) Ready

func (a *Attendance) Ready() <-chan struct{}

Signals each change of the window's profile, which Changes then hands over

type Boot

type Boot struct {
	// It runs from the container image, as the image's marker says of its program; nothing else holds outside the image
	Marked bool
	// It started as root, and stays root as server.StayRoot asks
	Root, Stays bool
	// It prepares the container for the account: the first process of the container, or a server
	Prepares bool
	// The account of the image as the start left it, its runtime folder among it once handed; zero when the image has none
	Account server.Account
	// Ids the variables asked the account to take, zero for one not asked
	UID, GID int
	// Folder of the defaults the image carries
	Defaults string
	// When it started, and the start of the first process of the container, which tells the start of this container from that of an
	// earlier one
	At    time.Time
	First string
	// What the start did, each a sentence a person reads, and what went wrong
	Done     []string
	Problems []Problem
	// contains filtered or unexported fields
}

What a process found as it started from the container image of icebath, and what its start made of the container

func Booted

func Booted(prepares bool) (Boot, error)

What this process finds as it starts from the container image of icebath, before anything else of it runs. A process that prepares the container, the first of it or a server, refuses to start as a user of the image that is not its account, which could prepare nothing; started as root, it first gives the account the ids ICEBATH_UID and ICEBATH_GID ask for (PUID and PGID where those are not set). Any process started as root takes the login environment of the account from here, so every folder it works out is the account's, and becomes the account once Hand handed it what it needs; one that ICEBATH_DOCKER_EXEC_AS_ROOT keeps root changes nothing. The zero Boot outside the image

type Change

type Change struct {
	Renamed string
	Deleted bool
}

What became of the profile a window works on: it was renamed to a name, or it was deleted, which moves the window to the default profile

type DistributionError

type DistributionError struct{ Msg string }

Install, update or manifest failure of a distribution

func (*DistributionError) Error

func (e *DistributionError) Error() string

type Done

type Done struct {
	Path string
	// Name the profile has now, or the name the default profile shows
	Name string
	// What was done besides the act itself, and what failed, each a sentence; the act stands all the same
	Done, Failed []string
	Settled      bool
	// Why a delete failed once nothing could stop it
	Failure string
	// Other windows work on the profile, so nothing changed: asked again with Others, the act goes ahead and they follow
	Windows int
}

What a delete, rename or identity retry did, and whether every feature settled what it keeps under the name

type ExistsError

type ExistsError struct{ Msg string }

Profile that is already there, matching fs.ErrExist

func (*ExistsError) Error

func (e *ExistsError) Error() string

func (*ExistsError) Is

func (e *ExistsError) Is(target error) bool

type Holder

type Holder interface {
	Holds(profile string) string
}

What a feature has under way in a profile that its folder must not move or go from under, such as a reply being written: why it can't now, empty when nothing is

type Info

type Info struct {
	Name string
	Path string
	// The profile that is always there
	Default bool
	// The profile a new icebath opens with
	Sticky   bool
	Model    string
	Provider string
	Skills   int
	HasEnv   bool
	HasSoul  bool
	// Distribution it was installed from, empty for one made here
	Distribution        string
	DistributionVersion string
	DistributionSource  string
	// It gets every skill that comes with icebath, and keeps pulling what another profile imports from other agents
	Bundled, SyncImports bool
	Meta
}

One profile as its listing and details show it

type Joiner

type Joiner interface {
	Joins() []Socket
}

What a feature needs the account of the container image to reach, such as the socket of a daemon mounted into the container, whose group the account joins as a process started as root prepares the container

type Leaver

type Leaver interface {
	Leaves(making Making) []Left
}

What a feature has a new profile leave behind of the profile it takes settings or keys from, such as the chat apps whose bots answer one profile at a time: taken out of the profile before it is in place, so no feature of it ever reads them

type Left

type Left struct {
	Title     string
	Keys      []string
	Variables []string
}

What a new profile leaves behind of one feature: the keys of its settings, the variables of the .env that set them, and the feature as a person calls it, such as "the chat app Telegram"

type Made

type Made struct {
	Name string
	Path string
	// Profile it was cloned from, or the one it took keys from
	Source string
	// Profile the request came from
	Launch string
	// What features put into it, and what they carried over into it from the profile it came from
	Seeded, Notes []string
	// Steps that failed, the profile made all the same
	Warnings []string
	// Keys of the launch profile's .env were copied into it
	Keys bool
}

What a create did

type Maker

type Maker interface {
	Made(making Making) ([]string, error)
}

What a feature carries over into a profile just made from the profile it came from, such as its logins or its model: lines the create reports after the profile's alias and keys

type Making

type Making struct {
	Profile string
	// Profile its settings or files were cloned from, empty for a fresh one
	Source string
	// Every file of the source was copied, not its settings alone
	All bool
	// Profile the request came from, whose keys, logins and model a fresh profile takes unless Bare
	Launch string
	Bare   bool
	// Messaging channels of the source were copied with it
	Channels bool
	// Model to pin, with its provider
	Model, Provider string
}

What a new profile is made from

type Manifest

type Manifest struct {
	Name        string
	Version     string
	Description string
	Requires    string
	Author      string
	License     string
	Env         []Requirement
	Owned       []string
	Source      string
	InstalledAt string
}

What distribution.yaml says, with where it was installed from and when, once it is

func ReadManifest

func ReadManifest(dir string) (*Manifest, error)

Manifest of a profile's folder, nil when it has none, an error when it does not parse

type Meta

type Meta struct {
	Description string
	// Description written by the helper model rather than a person
	DescriptionAuto bool
	DisplayName     string
	// It is one of the bots of icebath, and the title its bot shows, kept by the bots of icebath
	Bot      bool
	BotTitle string
	// Names it had before it was renamed, oldest first
	PreviousNames []string
}

What profile.yaml tells about a profile

func ReadMeta

func ReadMeta(dir string) Meta

What the profile folder's profile.yaml tells, empty for one missing or broken

type MetaUpdate

type MetaUpdate struct {
	Description     *string
	DescriptionAuto *bool
	DisplayName     *string
	PreviousNames   *[]string
	// Whether it is one of the bots of icebath, false taking the block of the bots out, and the title its bot shows
	Bot      *bool
	BotTitle *string
}

Fields of profile.yaml to change, nil keeping what it holds

type Mover

type Mover interface {
	Move(old, renamed string) ([]string, error)
}

A Renamer that says what it moved, such as how many projects followed the profile's folder: lines the rename reports

type Needer

type Needer interface {
	Needs(profile string) string
}

What a feature counts on a profile for that a delete would leave without it, such as a room it is a member of: why the profile can't be deleted, empty when nothing counts on it. A rename takes nothing away, so it is asked of no rename

type NotFoundError

type NotFoundError struct{ Msg string }

Profile a command needs that is not there, matching fs.ErrNotExist

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

func (*NotFoundError) Is

func (e *NotFoundError) Is(target error) bool

type Outcome

type Outcome struct {
	Name        string
	OK          bool
	Reason      string
	Description string
}

How describing one profile went

type Plan

type Plan struct {
	Manifest   *Manifest
	Staged     string
	Provenance string
	Target     string
	// The profile is there already
	Existing bool
	// The profile already being a distribution, rather than another profile installed over
	Distribution bool
	// The profile's config.yaml is left as it is, as an update leaves it unless told otherwise; an install writes the distribution's
	PreservesConfig bool
	HasCron         bool
	// Of each variable the manifest needs, whether the environment or the profile's .env sets it
	Set map[string]bool
}

What an install would do: the manifest, where it was staged from and where it lands

type Preparer

type Preparer interface {
	Prepare(account server.Account) ([]string, error)
}

What a feature does as root in the container image where the process prepares the container, before it becomes the account, such as linking programs into a folder of the image only root writes: what it did, as sentences, and what went wrong

type Problem

type Problem struct {
	Key string
	// Whole sentences a person reads
	Text string
}

What went wrong as a process started in the image, under a name that stays the same from one start to the next

type Profiles

type Profiles struct {
	Registry
	// contains filtered or unexported fields
}

Profiles of the config folder: one folder each under profiles, holding the settings that aren't shared by all of them

func New

func New(cfg *config.Config) *Profiles

func (*Profiles) Active

func (p *Profiles) Active() string

Profile in use

func (*Profiles) Attend

func (p *Profiles) Attend(window, name string) (*Attendance, error)

Has the window work on the profile until the attendance closes, which every icebath of this computer counts as long as this process runs: its record and lock go with the window, and with the process however it ends

func (*Profiles) Boot

func (p *Profiles) Boot() Boot

What the start of this process found of the container image and made of it, the zero Boot outside the image

func (*Profiles) Busy

func (p *Profiles) Busy() string

What is under way in a profile of this computer that its folder must not move from under, such as a reply being written or a run; empty when nothing is. An update or an uninstall that asks this process to end waits for it to end

func (*Profiles) Check

func (p *Profiles) Check(name string) error

Why a window can't work on the profile with the name, nil when it can: the checks of a switch, the profile in use left as it is

func (*Profiles) Close

func (p *Profiles) Close() error

Stops watching the folders of the profiles and ends the attendance of every window still here, so none of them counts any longer

func (*Profiles) Config

func (p *Profiles) Config() *config.Config

Settings icebath keeps and reads

func (*Profiles) Create

func (p *Profiles) Create(r Request) (Made, error)

Makes a profile in a hidden staging folder published with one rename, then has every feature do its part for it; only the make itself fails it, what a feature could not do coming back as a warning

func (*Profiles) Delete

func (p *Profiles) Delete(name string, by Asking) (Done, error)

Deletes a profile: every feature stops what it runs for it and removes what it keeps of it, then its folder goes. Deleting the profile in use switches to the default one first, and the profile icebath opens with goes back to the default when it was this one, even when the folder would not go. While other windows work on it nothing changes unless the one asking says to go ahead, and then they move to the default profile. A profile with something under way, or one a feature counts on, such as a member of a room, is not deleted

func (*Profiles) Describable

func (p *Profiles) Describable(missingOnly bool) ([]string, error)

Profiles that can be described, those without a description a person wrote when missingOnly

func (*Profiles) Describe

func (p *Profiles) Describe(ctx context.Context, name string, overwrite bool, complete func(ctx context.Context, system, user string) (string, error)) (Outcome, error)

Has the helper model write what a profile is good at from its skills and model, through complete, and keeps it as written by the model; a description a person wrote is kept unless overwrite says otherwise. What the model could not do is an outcome that is not ok

func (*Profiles) Dir

func (p *Profiles) Dir(name string) string

Folder of the profile

func (*Profiles) Exists

func (p *Profiles) Exists(name string) bool

Whether the profile is there, the default always

func (*Profiles) Export

func (p *Profiles) Export(name string) ([]byte, string, error)

Archive of a profile's folder under one top folder named for it, without its credentials, the stores of this machine's package manager or what is never copied, with its text masked of secrets

func (*Profiles) Hand

func (p *Profiles) Hand(boot Boot) server.Account

Hands the account of the image what it needs before this process becomes it. Where a process started as root prepares the container, the account joins the groups of the sockets the features reach (Joins), the data volume, the settings folder of this process, is handed to it with its runtime files, and each feature that prepares the container does so (Prepare); then its runtime folder is made private to it, which a process started as the account makes itself. The account this process becomes, the zero one for a process that becomes no one: outside the image, started as a user of it, or kept root

func (*Profiles) Hold

func (p *Profiles) Hold(names []string, by Asking, work func() error) (int, error)

Runs the work, such as a restore writing over what icebath keeps of the profiles, while every rename and delete of every icebath of this computer waits for it. Nothing is done while something is under way in one of the profiles, such as a run, which the refusal names, nor while other windows work on them unless the one asking says to go ahead: the count of those windows then, and no error. What runs for the profiles is stopped before the work, as before a rename, each feature taking them up again on its own once their files are back

func (*Profiles) Import

func (p *Profiles) Import(data []byte, name string) (string, error)

Makes a profile of an archive holding one top folder, named as asked or for that folder, without the stores of another machine's package manager, its config.yaml and .env kept to their owner

func (*Profiles) Info

func (p *Profiles) Info(name string) (Info, error)

What a profile is: where, what it runs and what tells about it; an error for one that is not there

func (*Profiles) Infos

func (p *Profiles) Infos() ([]Info, error)

Every profile, the default one first, their details read side by side

func (*Profiles) Install

func (p *Profiles) Install(ctx context.Context, source, name string, force bool) (*Plan, error)

Installs a distribution from a git address or a local folder into a new profile, or over one with force: its plan

func (*Profiles) List

func (p *Profiles) List() ([]string, error)

Every profile by name, the default one first

func (*Profiles) Load

func (p *Profiles) Load(picked, by string, warn io.Writer) error

Reads the settings, makes the default profile when it isn't there and runs this process on the profile picked for the run, which by says picked as Chosen tells; else on the profile icebath opens with. A profile picked for the run that isn't there refuses the start, as a mistyped name would run the wrong profile; the profile icebath opens with that is gone gives way to the default one with a warning. From then on this process follows the profile it runs on when another icebath renames or deletes it, until Close

func (*Profiles) Manifest

func (p *Profiles) Manifest(name string) (*Manifest, error)

Manifest of a profile, nil when it is no distribution

func (*Profiles) MigrateIdentity

func (p *Profiles) MigrateIdentity(old, renamed string) (Done, error)

Moves again what the features keep under a renamed profile's old name, for a rename whose move of it failed: what moved and what did not

func (*Profiles) Opening

func (p *Profiles) Opening() string

Profile a new icebath opens with when nothing picks one for the run, the default one when none is kept

func (*Profiles) Plan

func (p *Profiles) Plan(ctx context.Context, source, workdir, name string) (*Plan, error)

Stages the source and works out the install it would make, the name and source stamped into its manifest

func (*Profiles) Prepared

func (p *Profiles) Prepared() (Boot, bool)

The start of the process that prepared the container this one runs in, as it kept it in the runtime folder of the account; false when none kept one in this container, such as before it started again

func (*Profiles) PurgeIdentity

func (p *Profiles) PurgeIdentity(name string) (Done, error)

Removes again what the features keep of a deleted profile, for a delete whose removal of it failed: a line for each that failed again

func (*Profiles) Rename

func (p *Profiles) Rename(old, renamed string, by Asking) (Done, error)

Renames a profile: what runs for it stops, its folder moves, every feature moves what it keeps under the old name, and the profile in use, the one icebath opens with and the windows on it follow. While other windows work on it nothing changes unless the one asking says to go ahead. Renaming the default profile only sets the name it shows

func (*Profiles) SetBundled

func (p *Profiles) SetBundled(name string, on bool) (string, error)

Gives the profile every skill that comes with icebath from its next start on, or only the essential ones: the note of what changed

func (*Profiles) SetDescription

func (p *Profiles) SetDescription(name, description string) error

Sets a profile's description, the default profile's included

func (*Profiles) SetOpening

func (p *Profiles) SetOpening(name string) error

Makes the profile the one a new icebath opens with when nothing picks one for the run, the default one by keeping none. Windows open now stay on the profile they run on

func (*Profiles) SetSyncImports

func (p *Profiles) SetSyncImports(name, from string, on bool) (string, error)

Has the profile keep pulling what the profile from imports from other agents, by a copy of its record, or stop: the note of what changed. From is the profile of the window that asks, the one in use for none

func (*Profiles) Spawning

func (p *Profiles) Spawning(env func(cfg *config.Config, extra map[string]string) map[string]string)

Names how the environment of a program run for a profile is made, such as git copying a distribution: as the terminal makes its commands', the profile's own variables with the credentials no command sees left out

func (*Profiles) Update

func (p *Profiles) Update(ctx context.Context, name string, forceConfig bool) (*Plan, error)

Pulls an installed distribution again from where it came from: what is the person's own kept, config.yaml too unless forced

func (*Profiles) Use

func (p *Profiles) Use(name string) error

Runs this process on the profile from now on: the window or the command that asked has it to itself, and no other window and no later start follows it. What the process starts carries it through the environment each process is given

func (*Profiles) Windows

func (p *Profiles) Windows(except string) map[string]int

Windows of this computer working on each profile, by name, through any icebath and its server, the window named left out. A record whose icebath let go of its lock is of a window gone with it, and is cleared

type Refuser

type Refuser interface {
	Refuses(making Making) string
}

What a feature can't let a new profile be made as asked, such as a copy that would hold the bots of chat apps connected now: why the create is refused, empty when it is not. Asked before anything is made

type Registrant

type Registrant interface {
	Delete(profile string) error
}

What a feature keeps for each profile, removed with it when it is deleted, and removed again by purge-identity when that failed. Removing what is already gone is no failure

type Registry

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

func (*Registry) Delete

func (r *Registry) Delete(profile string) error

func (*Registry) Holds

func (r *Registry) Holds(profile string) string

func (*Registry) Joins

func (r *Registry) Joins() []Socket

Every socket the registrants need the account of the container image to reach

func (*Registry) Leaves

func (r *Registry) Leaves(making Making) []Left

func (*Registry) Made

func (r *Registry) Made(making Making) ([]string, error)

func (*Registry) Move

func (r *Registry) Move(old, renamed string) ([]string, error)

Has every feature move what it keeps under the old name, the lines of those that say what they moved

func (*Registry) Needs

func (r *Registry) Needs(profile string) string

func (*Registry) Prepare

func (r *Registry) Prepare(account server.Account) ([]string, error)

Has every registrant that prepares the container do so as root, for the account given: what each did, and what went wrong of each

func (*Registry) Refuses

func (r *Registry) Refuses(making Making) string

func (*Registry) Register

func (r *Registry) Register(registrant Registrant)

func (*Registry) Rename

func (r *Registry) Rename(old, renamed string) error

func (*Registry) Seed

func (r *Registry) Seed(making Making) ([]string, error)

func (*Registry) Stop

func (r *Registry) Stop(profile string) error

func (*Registry) Summarize

func (r *Registry) Summarize(cfg *config.Config) Summary

func (*Registry) Use

func (r *Registry) Use(profile string) error

type Renamer

type Renamer interface {
	Rename(old, renamed string) error
}

What a feature keeps under a profile's name, moved to its new name once its folder moved, and moved again by migrate-identity when that failed. Moving what already moved is no failure

type Request

type Request struct {
	Name string
	// Copies the settings, keys, skills and extensions of a profile: the one named by From, else the one in use
	Clone bool
	From  string
	// Copies every file of the source but its history, not its settings alone
	All bool
	// Copies the messaging channels of the source too
	Channels bool
	// Carries over where agent imports sync from
	SyncImports bool
	// Seeds no bundled skills
	NoSkills    bool
	Description string
	Soul        string
	// Takes no keys, sign-ins or model: from the profile it is made from for a fresh one, from the source for a copy
	NoCredentials bool
	// Profile the request came from, the one in use when empty
	Launch string
	// Model to pin, with its provider
	Model, Provider string
}

Everything a create can be asked for, the zero value a fresh profile taking the keys, sign-ins and model of the profile it is made from

type Requirement

type Requirement struct {
	Name        string
	Description string
	Required    bool
	Default     any
}

Variable a distribution needs, and whether it can do without

type Seeder

type Seeder interface {
	Seed(making Making) ([]string, error)
}

What a feature puts into a profile just made before it is handed over, such as its bundled skills: lines the create reports first

type Socket

type Socket struct {
	Path string
	// Name the group of the socket is given when the image has none of its id, such as docker
	Group string
	// What it is, as the log and the doctor say it: "the Docker socket"
	Title string
}

A socket mounted into the container that the account of the image uses through the group that owns it

type Stopper

type Stopper interface {
	Stop(profile string) error
}

What a feature runs for a profile from its folder, such as its screen or its servers, stopped before the folder moves to a new name

type StoreError

type StoreError struct {
	Store string
	Err   error
}

Failure of a feature on one store it keeps, such as a database, which a delete or rename names

func (*StoreError) Error

func (e *StoreError) Error() string

func (*StoreError) Unwrap

func (e *StoreError) Unwrap() error

type Summarizer

type Summarizer interface {
	Summarize(cfg *config.Config) Summary
}

What a feature tells of a profile for its listing and description, such as the model it runs or the skills it has

type Summary

type Summary struct {
	Model    string
	Provider string
	// Names of the skills it has, by category/name or name
	Skills []string
}

What the features tell of a profile

type User

type User interface {
	Use(profile string) error
}

What a feature does once the profile in use changes, for one that keeps something of the profile in use

type ValueError

type ValueError struct{ Msg string }

Request that names no profile it can act on, or names it in a way it can't take

func (*ValueError) Error

func (e *ValueError) Error() string

type Worded

type Worded string

Failure a feature words in full, said as it is

func (Worded) Error

func (w Worded) Error() string

Directories

Path Synopsis
Page of Profiles in the settings menu: the profiles with the one this window runs on marked, a profile's own page, adding one in steps, describing every profile and exporting one; /profiles with a name switches this window to it, and /export is the job of exporting
Page of Profiles in the settings menu: the profiles with the one this window runs on marked, a profile's own page, adding one in steps, describing every profile and exporting one; /profiles with a name switches this window to it, and /export is the job of exporting
Package home works out the folder of icebath's settings and profiles and how its folders are made, from the variables a person sets and what the system says: ICEBATH_HOME names the folder, ICEBATH_DATA_DIR_SUFFIX puts a suffix on the name of the default one so several installs or channels live side by side, ICEBATH_HOME_MODE names the mode its folders are made with in place of the owner's alone, and ICEBATH_UID and ICEBATH_GID (PUID and PGID, as NAS images name them) the owner a process running as root gives them to.
Package home works out the folder of icebath's settings and profiles and how its folders are made, from the variables a person sets and what the system says: ICEBATH_HOME names the folder, ICEBATH_DATA_DIR_SUFFIX puts a suffix on the name of the default one so several installs or channels live side by side, ICEBATH_HOME_MODE names the mode its folders are made with in place of the owner's alone, and ICEBATH_UID and ICEBATH_GID (PUID and PGID, as NAS images name them) the owner a process running as root gives them to.

Jump to

Keyboard shortcuts

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