Documentation
¶
Index ¶
- Constants
- func AliasDir() (string, error)
- func AliasOf(profile string) (string, error)
- func AliasPath(alias string) (string, error)
- func Aliases() (map[string]string, error)
- func AliasesOnPath() (bool, error)
- func Canon(name string) (string, error)
- func Chosen(flag, home string) (name, by string)
- func Collision(name string) (string, error)
- func Command(name string) (done, failed string)
- func DropAlias(name string) (done, failed string)
- func ExportPath(root, file string) (string, error)
- func FollowAlias(old, renamed string) (done, failed string)
- func Foreign(ctx context.Context, dir string, uid, most int) (int, string)
- func Home() (root, pinned string, err error)
- func Invalid(name string) error
- func Join(profile, rest string) string
- func Label(name, display string) string
- func MakeAlias(name, target string) (string, error)
- func Mounted(path string) bool
- func Names(cfg *config.Config) ([]string, error)
- func Normalize(name string) (string, error)
- func Opening(root string) string
- func OurAlias(alias string) (string, error)
- func OwnerOf(path string) (int, bool)
- func Picked(ctx context.Context) string
- func Rekeyed(cfg *config.Config, data, live []byte) []byte
- func RemoveAlias(name string) (bool, error)
- func SaveArchive(data []byte, file, output string) (string, error)
- func Settle(cfg *config.Config) (int, []string)
- func Settled(cfg *config.Config) home.Home
- func Shaped(name string) bool
- func Split(argument string) (profile, rest string)
- func SudoHome(root, name string) string
- func Suggest(name string) string
- func Unkeyed(cfg *config.Config, data []byte) []byte
- func Unlike(h home.Home, mode fs.FileMode) bool
- func Unsettled(cfg *config.Config, most int) []string
- func ValidAlias(name string) error
- func Validate(name string) error
- func WithPicked(ctx context.Context, name string) context.Context
- func WriteMeta(dir string, update MetaUpdate) error
- type Asking
- type Attendance
- type Boot
- type Change
- type DistributionError
- type Done
- type ExistsError
- type Holder
- type Info
- type Joiner
- type Leaver
- type Left
- type Made
- type Maker
- type Making
- type Manifest
- type Meta
- type MetaUpdate
- type Mover
- type Needer
- type NotFoundError
- type Outcome
- type Plan
- type Preparer
- type Problem
- type Profiles
- func (p *Profiles) Active() string
- func (p *Profiles) Attend(window, name string) (*Attendance, error)
- func (p *Profiles) Boot() Boot
- func (p *Profiles) Busy() string
- func (p *Profiles) Check(name string) error
- func (p *Profiles) Close() error
- func (p *Profiles) Config() *config.Config
- func (p *Profiles) Create(r Request) (Made, error)
- func (p *Profiles) Delete(name string, by Asking) (Done, error)
- func (p *Profiles) Describable(missingOnly bool) ([]string, error)
- func (p *Profiles) Describe(ctx context.Context, name string, overwrite bool, ...) (Outcome, error)
- func (p *Profiles) Dir(name string) string
- func (p *Profiles) Exists(name string) bool
- func (p *Profiles) Export(name string) ([]byte, string, error)
- func (p *Profiles) Hand(boot Boot) server.Account
- func (p *Profiles) Hold(names []string, by Asking, work func() error) (int, error)
- func (p *Profiles) Import(data []byte, name string) (string, error)
- func (p *Profiles) Info(name string) (Info, error)
- func (p *Profiles) Infos() ([]Info, error)
- func (p *Profiles) Install(ctx context.Context, source, name string, force bool) (*Plan, error)
- func (p *Profiles) List() ([]string, error)
- func (p *Profiles) Load(picked, by string, warn io.Writer) error
- func (p *Profiles) Manifest(name string) (*Manifest, error)
- func (p *Profiles) MigrateIdentity(old, renamed string) (Done, error)
- func (p *Profiles) Opening() string
- func (p *Profiles) Plan(ctx context.Context, source, workdir, name string) (*Plan, error)
- func (p *Profiles) Prepared() (Boot, bool)
- func (p *Profiles) PurgeIdentity(name string) (Done, error)
- func (p *Profiles) Rename(old, renamed string, by Asking) (Done, error)
- func (p *Profiles) SetBundled(name string, on bool) (string, error)
- func (p *Profiles) SetDescription(name, description string) error
- func (p *Profiles) SetOpening(name string) error
- func (p *Profiles) SetSyncImports(name, from string, on bool) (string, error)
- func (p *Profiles) Spawning(env func(cfg *config.Config, extra map[string]string) map[string]string)
- func (p *Profiles) Update(ctx context.Context, name string, forceConfig bool) (*Plan, error)
- func (p *Profiles) Use(name string) error
- func (p *Profiles) Windows(except string) map[string]int
- type Refuser
- type Registrant
- type Registry
- func (r *Registry) Delete(profile string) error
- func (r *Registry) Holds(profile string) string
- func (r *Registry) Joins() []Socket
- func (r *Registry) Leaves(making Making) []Left
- func (r *Registry) Made(making Making) ([]string, error)
- func (r *Registry) Move(old, renamed string) ([]string, error)
- func (r *Registry) Needs(profile string) string
- func (r *Registry) Prepare(account server.Account) ([]string, error)
- func (r *Registry) Refuses(making Making) string
- func (r *Registry) Register(registrant Registrant)
- func (r *Registry) Rename(old, renamed string) error
- func (r *Registry) Seed(making Making) ([]string, error)
- func (r *Registry) Stop(profile string) error
- func (r *Registry) Summarize(cfg *config.Config) Summary
- func (r *Registry) Use(profile string) error
- type Renamer
- type Request
- type Requirement
- type Seeder
- type Socket
- type Stopper
- type StoreError
- type Summarizer
- type Summary
- type User
- type ValueError
- type Worded
Constants ¶
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
const DescribeSystem = `` /* 1219-byte string literal not displayed */
What the helper model is told when it describes a profile
const HomeEnv = profileconfig.HomeEnv
Variable naming the folder of icebath's settings and profiles, or the folder of one profile in it
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
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 ¶
Folder of the aliases, short commands that open icebath on a profile: the person's folder of the commands icebath puts on PATH
func Aliases ¶
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 ¶
Whether the folder of aliases is on the PATH
func Chosen ¶
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 ¶
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 ¶
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 ¶
Removes the shell command icebath wrote for a deleted profile: what was done, nothing when there was none, or what failed
func ExportPath ¶
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 ¶
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 ¶
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 ¶
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 Join ¶
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 ¶
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 ¶
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 ¶
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 Opening ¶
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 Picked ¶
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 ¶
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 ¶
Removes the alias icebath wrote under the name, whether there was one
func SaveArchive ¶
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 ¶
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 ¶
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 Split ¶
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 ¶
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 Unkeyed ¶
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 ¶
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 ¶
Folders of the settings folder whose mode is not the home's, at most the count given, for the doctor to name
func ValidAlias ¶
Error unless the name is safe as the file name of an alias in the folder of aliases
func Validate ¶
Error unless the name can name a profile: shaped like one and not reserved, default passing
func WithPicked ¶
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 ¶
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) 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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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
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 ¶
A Renamer that says what it moved, such as how many projects followed the profile's folder: lines the rename reports
type Needer ¶
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 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 ¶
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 ¶
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 (*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 ¶
What the start of this process found of the container image and made of it, the zero Boot outside the image
func (*Profiles) Busy ¶
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 ¶
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 ¶
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) Create ¶
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 ¶
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 ¶
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) Export ¶
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 ¶
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 ¶
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 ¶
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 ¶
What a profile is: where, what it runs and what tells about it; an error for one that is not there
func (*Profiles) Install ¶
Installs a distribution from a git address or a local folder into a new profile, or over one with force: its plan
func (*Profiles) Load ¶
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) MigrateIdentity ¶
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 ¶
Profile a new icebath opens with when nothing picks one for the run, the default one when none is kept
func (*Profiles) Plan ¶
Stages the source and works out the install it would make, the name and source stamped into its manifest
func (*Profiles) Prepared ¶
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 ¶
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 ¶
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 ¶
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 ¶
Sets a profile's description, the default profile's included
func (*Profiles) SetOpening ¶
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 ¶
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 ¶
Pulls an installed distribution again from where it came from: what is the person's own kept, config.yaml too unless forced
type Refuser ¶
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 ¶
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) Joins ¶
Every socket the registrants need the account of the container image to reach
func (*Registry) Move ¶
Has every feature move what it keeps under the old name, the lines of those that say what they moved
func (*Registry) Prepare ¶
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) Register ¶
func (r *Registry) Register(registrant Registrant)
type Renamer ¶
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 ¶
Variable a distribution needs, and whether it can do without
type Seeder ¶
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 ¶
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 ¶
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 ¶
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 ¶
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
Source Files
¶
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. |