Documentation
¶
Index ¶
- Constants
- func LocalGitData(ctx context.Context, rt *toolkit.Runtime, projectPath, key string) ([]byte, error)
- type BacklinksOptions
- type CatOptions
- type Config
- func (cfg *Config) AddKeg(alias string, target kegurl.Target) error
- func (cfg *Config) AddKegMap(entry KegMapEntry) error
- func (cfg *Config) Clone() *Config
- func (cfg *Config) DefaultKeg() string
- func (cfg *Config) DefaultRegistry() string
- func (cfg *Config) FallbackKeg() string
- func (cfg *Config) KegMap() []KegMapEntry
- func (cfg *Config) KegSearchPaths() []string
- func (cfg *Config) Kegs() map[string]kegurl.Target
- func (cfg *Config) ListKegs() []string
- func (cfg *Config) LogFile() string
- func (cfg *Config) LogLevel() string
- func (cfg *Config) LookupAlias(rt *toolkit.Runtime, projectRoot string) string
- func (cfg *Config) PrimaryKegSearchPath() string
- func (cfg *Config) Registries() []KegRegistry
- func (cfg *Config) ResolveAlias(alias string) (*kegurl.Target, error)
- func (cfg *Config) ResolveDefault(rt *toolkit.Runtime) (*kegurl.Target, error)
- func (cfg *Config) ResolveKegMap(rt *toolkit.Runtime, projectRoot string) (*kegurl.Target, error)
- func (cfg *Config) SetDefaultKeg(keg string) error
- func (cfg *Config) SetDefaultRegistry(_ context.Context, registry string) error
- func (cfg *Config) SetFallbackKeg(keg string) error
- func (cfg *Config) SetKegSearchPaths(paths []string) error
- func (cfg *Config) SetLogFile(_ context.Context, path string) error
- func (cfg *Config) SetLogLevel(level string) error
- func (cfg *Config) ToYAML() ([]byte, error)
- func (cfg *Config) Touch(rt *toolkit.Runtime)
- func (cfg *Config) Updated() time.Time
- func (cfg *Config) Write(rt *toolkit.Runtime, path string) error
- type ConfigEditOptions
- type ConfigOptions
- type ConfigService
- func (s *ConfigService) Config(cache bool) *Config
- func (s *ConfigService) DiscoveredKegAliases(cache bool) ([]string, error)
- func (s *ConfigService) ProjectConfig(cache bool) (*Config, error)
- func (s *ConfigService) ResetCache()
- func (s *ConfigService) ResolveTarget(alias string, cache bool) (*kegurl.Target, error)
- func (s *ConfigService) UserConfig(cache bool) (*Config, error)
- type CreateOptions
- type DeleteFileOptions
- type DeleteImageOptions
- type DirOptions
- type DownloadFileOptions
- type DownloadImageOptions
- type EditOptions
- type GrepOptions
- type IndexCatOptions
- type IndexOptions
- type InfoOptions
- type InitOptions
- type KegConfigEditOptions
- type KegInfoOptions
- type KegMapEntry
- type KegRegistry
- type KegService
- type KegTargetOptions
- type ListFilesOptions
- type ListImagesOptions
- type ListOptions
- type MetaOptions
- type MoveOptions
- type PathService
- type ProjectKegNotFoundError
- type RemoveOptions
- type ResolveKegOptions
- type StatsOptions
- type TagsOptions
- type Tap
- func (t *Tap) Backlinks(ctx context.Context, opts BacklinksOptions) ([]string, error)
- func (t *Tap) Cat(ctx context.Context, opts CatOptions) (string, error)
- func (t *Tap) Config(opts ConfigOptions) (string, error)
- func (t *Tap) Create(ctx context.Context, opts CreateOptions) (keg.NodeId, error)
- func (t *Tap) DeleteFile(ctx context.Context, opts DeleteFileOptions) error
- func (t *Tap) DeleteImage(ctx context.Context, opts DeleteImageOptions) error
- func (t *Tap) Dir(ctx context.Context, opts DirOptions) (string, error)
- func (t *Tap) DownloadFile(ctx context.Context, opts DownloadFileOptions) (string, error)
- func (t *Tap) DownloadImage(ctx context.Context, opts DownloadImageOptions) (string, error)
- func (t *Tap) Edit(ctx context.Context, opts EditOptions) error
- func (t *Tap) Grep(ctx context.Context, opts GrepOptions) ([]string, error)
- func (t *Tap) Index(ctx context.Context, opts IndexOptions) (string, error)
- func (t *Tap) IndexCat(ctx context.Context, opts IndexCatOptions) (string, error)
- func (t *Tap) Info(ctx context.Context, opts InfoOptions) (string, error)
- func (t *Tap) InitKeg(ctx context.Context, name string, options InitOptions) (*kegurl.Target, error)
- func (t *Tap) KegConfigEdit(ctx context.Context, opts KegConfigEditOptions) error
- func (t *Tap) KegInfo(ctx context.Context, opts KegInfoOptions) (string, error)
- func (t *Tap) List(ctx context.Context, opts ListOptions) ([]string, error)
- func (t *Tap) ListFiles(ctx context.Context, opts ListFilesOptions) ([]string, error)
- func (t *Tap) ListImages(ctx context.Context, opts ListImagesOptions) ([]string, error)
- func (t *Tap) ListIndexes(ctx context.Context, opts IndexCatOptions) ([]string, error)
- func (t *Tap) ListKegs(cache bool) ([]string, error)
- func (t *Tap) LookupKeg(ctx context.Context, kegAlias string) (*keg.Keg, error)
- func (t *Tap) Meta(ctx context.Context, opts MetaOptions) (string, error)
- func (t *Tap) Move(ctx context.Context, opts MoveOptions) error
- func (t *Tap) Remove(ctx context.Context, opts RemoveOptions) error
- func (t *Tap) Stats(ctx context.Context, opts StatsOptions) (string, error)
- func (t *Tap) Tags(ctx context.Context, opts TagsOptions) ([]string, error)
- func (t *Tap) UploadFile(ctx context.Context, opts UploadFileOptions) (string, error)
- func (t *Tap) UploadImage(ctx context.Context, opts UploadImageOptions) (string, error)
- func (t *Tap) UserConfigEdit(ctx context.Context, opts ConfigEditOptions) error
- type TapOptions
- type UploadFileOptions
- type UploadImageOptions
Constants ¶
const ( // DefaultAppName is the base directory name used for Tapper user // configuration. Helpers use this value to build platform specific config // paths, for example: // $XDG_CONFIG_HOME/tapper (or ~/.config/tapper) on Unix-like systems // %APPDATA%\tapper on Windows // Example config file: // $XDG_CONFIG_HOME/tapper/aliases.yaml DefaultAppName = "tapper" // DefaultLocalConfigDir is the directory name used for repository or // project local configuration. DefaultLocalConfigDir = ".tapper" )
Config version strings identify KEG configuration schema versions. Each constant is a stable identifier for a particular config schema. When a new schema is introduced add a new constant and update the Config alias to point to the latest version. These values are used by parsing and migration code (for example ParseConfigData) to detect older formats and perform upgrades. Use a YYYY-MM format for easy sorting and human readability.
Variables ¶
This section is empty.
Functions ¶
func LocalGitData ¶
func LocalGitData(ctx context.Context, rt *toolkit.Runtime, projectPath, key string) ([]byte, error)
LocalGitData attempts to run `git -C projectPath config --local --get key`.
If git is not present or the command fails it returns an error. The returned bytes are trimmed of surrounding whitespace. The function logs diagnostic messages using the logger from rt.
Types ¶
type BacklinksOptions ¶
type BacklinksOptions struct {
KegTargetOptions
// NodeID is the target node to inspect incoming links for.
NodeID string
// Format to use. %i is node id
// %d is date
// %t is node title
// %% for literal %
Format string
IdOnly bool
Reverse bool
}
type CatOptions ¶
type CatOptions struct {
// NodeIDs are the node identifiers to read (e.g., "0", "42").
// Multiple IDs produce concatenated output separated by blank lines.
NodeIDs []string
// Tag is an optional tag expression (same syntax as tap tags) used to
// select nodes. Mutually exclusive with NodeIDs.
Tag string
KegTargetOptions
// Edit opens the node in the editor instead of printing output.
Edit bool
// ContentOnly displays content only.
ContentOnly bool
// StatsOnly displays stats only.
StatsOnly bool
// MetaOnly displays metadata only.
MetaOnly bool
// Stream carries stdin piping information when editing.
Stream *toolkit.Stream
}
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config represents the user's tapper configuration.
Config is a data-only model. We do not preserve YAML comments or original document formatting.
func DefaultProjectConfig ¶
DefaultProjectConfig returns a project-scoped config with sensible defaults. The provided user value is used as the default/fallback alias, and the optional userKegRepo is added to kegSearchPaths.
func DefaultUserConfig ¶
DefaultUserConfig returns a sensible default Config for a new user.
The returned Config is a fully populated in-memory config suitable as a starting point when no on-disk config is available. The DefaultRegistry is set to "knut", default/fallback aliases are initialized to name, and kegSearchPaths starts with userRepos.
func MergeConfig ¶
MergeConfig merges multiple Config values into a single configuration.
Merge semantics:
- Later configs override earlier values for scalar keys.
- kegSearchPaths are appended in order with deduplication.
- KegMap entries are appended in order, but entries with the same alias are replaced by later entries.
- The returned Config will have a Kegs map and a KegMap slice.
func ParseConfig ¶
ParseConfig parses raw YAML into a Config data model.
func ReadConfig ¶
ReadConfig reads the YAML file at path and returns a parsed Config.
When the file does not exist the function returns a Config value and an error that wraps keg.ErrNotExist so callers can detect no-config cases.
func (*Config) AddKegMap ¶
func (cfg *Config) AddKegMap(entry KegMapEntry) error
AddKegMap adds or updates a keg map entry in the Config.
func (*Config) DefaultKeg ¶
DefaultKeg returns the alias to use when no explicit keg is provided.
func (*Config) DefaultRegistry ¶
DefaultRegistry returns the default registry name.
func (*Config) FallbackKeg ¶ added in v0.2.0
FallbackKeg returns the last-resort keg alias.
func (*Config) KegMap ¶
func (cfg *Config) KegMap() []KegMapEntry
KegMap returns the list of path/regex to keg alias mappings.
func (*Config) KegSearchPaths ¶ added in v0.2.0
KegSearchPaths returns local discovery paths for file-backed kegs.
func (*Config) ListKegs ¶
ListKegs returns a sorted slice of all keg names in the configuration. Returns an empty slice if the config or its data is nil.
func (*Config) LookupAlias ¶
LookupAlias returns the keg alias matching the given project root path. It first checks regex patterns in KegMap entries, then prefix matches. For multiple prefix matches, the longest matching prefix wins. Returns empty string if no match is found or config data is nil.
func (*Config) PrimaryKegSearchPath ¶ added in v0.2.0
PrimaryKegSearchPath returns the first configured local discovery path.
func (*Config) Registries ¶
func (cfg *Config) Registries() []KegRegistry
Registries return the list of configured registries.
func (*Config) ResolveAlias ¶
ResolveAlias looks up the keg by alias and returns a parsed Target.
Returns (nil, error) when not found or parse fails.
func (*Config) ResolveDefault ¶
ResolveDefault resolves the current DefaultKeg alias to a target.
func (*Config) ResolveKegMap ¶
ResolveKegMap chooses the appropriate keg (via alias) based on path.
Precedence rules:
- Regex entries in KegMap have the highest precedence.
- PathPrefix entries are considered next; when multiple prefixes match the longest prefix wins.
- If no entry matches, resolution returns an alias-not-found error.
The function expands env vars and tildes prior to comparisons, so stored prefixes and patterns may contain ~ or $VAR values.
func (*Config) SetDefaultKeg ¶
SetDefaultKeg sets the alias used when no explicit keg is provided.
func (*Config) SetDefaultRegistry ¶
SetDefaultRegistry sets the default registry.
func (*Config) SetFallbackKeg ¶ added in v0.2.0
SetFallbackKeg sets the fallback keg alias.
func (*Config) SetKegSearchPaths ¶ added in v0.2.0
SetKegSearchPaths sets local discovery paths for file-backed kegs.
func (*Config) SetLogFile ¶
SetLogFile sets the log file path.
func (*Config) SetLogLevel ¶
SetLogLevel sets the log level.
type ConfigEditOptions ¶
type ConfigEditOptions struct {
// Project indicates whether to edit local config instead of user config
Project bool
User bool
ConfigPath string
}
ConfigEditOptions configures behavior for Tap.UserConfigEdit.
type ConfigOptions ¶
type ConfigService ¶
type ConfigService struct {
Runtime *toolkit.Runtime
PathService *PathService
// ConfigPath is the path to the config file.
ConfigPath string
// contains filtered or unexported fields
}
ConfigService loads, merges, and resolves tapper configuration state.
func NewConfigService ¶
func NewConfigService(root string, rt *toolkit.Runtime) (*ConfigService, error)
NewConfigService builds a ConfigService rooted at root.
func (*ConfigService) Config ¶
func (s *ConfigService) Config(cache bool) *Config
Config returns the merged user and project configuration with optional caching. If cache is true and a merged config exists, it returns the cached version. Otherwise, it retrieves both configs, merges them, caches the result, and returns it. When ConfigPath is set, it directly reads that file and bypasses normal merge behavior.
func (*ConfigService) DiscoveredKegAliases ¶ added in v0.2.0
func (s *ConfigService) DiscoveredKegAliases(cache bool) ([]string, error)
DiscoveredKegAliases returns aliases discovered from configured kegSearchPaths.
func (*ConfigService) ProjectConfig ¶
func (s *ConfigService) ProjectConfig(cache bool) (*Config, error)
ProjectConfig returns the project-level configuration with optional caching. If cache is true and a cached config exists, it returns the cached version. Otherwise, it reads the config from the local config root and caches the result.
func (*ConfigService) ResetCache ¶
func (s *ConfigService) ResetCache()
ResetCache clears cached user, project, and merged configs.
func (*ConfigService) ResolveTarget ¶
ResolveTarget resolves an alias to a keg target. Resolution order is: explicit configured alias, discovered local keg alias. When alias is empty it uses defaultKeg, then fallbackKeg.
func (*ConfigService) UserConfig ¶
func (s *ConfigService) UserConfig(cache bool) (*Config, error)
UserConfig returns the global user configuration.
type CreateOptions ¶
type DeleteFileOptions ¶ added in v0.2.0
type DeleteFileOptions struct {
KegTargetOptions
NodeID string
Name string
}
DeleteFileOptions configures behavior for Tap.DeleteFile.
type DeleteImageOptions ¶ added in v0.2.0
type DeleteImageOptions struct {
KegTargetOptions
NodeID string
Name string
}
DeleteImageOptions configures behavior for Tap.DeleteImage.
type DirOptions ¶
type DirOptions struct {
KegTargetOptions
NodeID string
}
type DownloadFileOptions ¶ added in v0.2.0
type DownloadFileOptions struct {
KegTargetOptions
NodeID string
Name string
Dest string
}
DownloadFileOptions configures behavior for Tap.DownloadFile.
type DownloadImageOptions ¶ added in v0.2.0
type DownloadImageOptions struct {
KegTargetOptions
NodeID string
Name string
Dest string
}
DownloadImageOptions configures behavior for Tap.DownloadImage.
type EditOptions ¶
type EditOptions struct {
// NodeID is the node identifier to edit (e.g., "0", "42")
NodeID string
KegTargetOptions
// Stream carries stdin piping information.
Stream *toolkit.Stream
}
type GrepOptions ¶
type GrepOptions struct {
KegTargetOptions
// Query is the regex pattern used to search nodes.
Query string
// Format to use. %i is node id
// %d is date
// %t is node title
// %% for literal %
Format string
IdOnly bool
Reverse bool
// IgnoreCase enables case-insensitive regex matching.
IgnoreCase bool
}
type IndexCatOptions ¶ added in v0.2.0
type IndexCatOptions struct {
KegTargetOptions
// Name is the index file name to dump, e.g. "changes.md" or "nodes.tsv".
// A leading "dex/" prefix is stripped automatically.
Name string
}
type IndexOptions ¶
type IndexOptions struct {
KegTargetOptions
// Rebuild rebuilds the full index
Rebuild bool
// NoUpdate skips updating node meta information
NoUpdate bool
}
type InfoOptions ¶
type InfoOptions struct {
KegTargetOptions
}
InfoOptions configures behavior for Tap.Info.
type InitOptions ¶
type InitOptions struct {
// Destination selection. Exactly one may be true.
Project bool
User bool
Registry bool
// For project destination: when true, use cwd as the project root base.
// Otherwise git root is preferred (falling back to cwd).
Cwd bool
// Registry-specific options.
Repo string // registry name
UserName string // registry namespace
TokenEnv string
// Keg name (user destination)
Name string
// Explicit filesystem path for local destinations.
Path string
Creator string
Title string
Keg string
}
type KegConfigEditOptions ¶ added in v0.2.0
type KegConfigEditOptions struct {
KegTargetOptions
Stream *toolkit.Stream
}
KegConfigEditOptions configures behavior for Tap.KegConfigEdit.
type KegInfoOptions ¶
type KegInfoOptions struct {
KegTargetOptions
}
KegInfoOptions configures behavior for Tap.KegInfo.
type KegMapEntry ¶
type KegMapEntry struct {
Alias string `yaml:"alias,omitempty"`
PathPrefix string `yaml:"pathPrefix,omitempty"`
PathRegex string `yaml:"pathRegex,omitempty"`
}
KegMapEntry is an entry mapping a path prefix or regex to a keg alias.
type KegRegistry ¶
type KegRegistry struct {
Name string `yaml:"name,omitempty"`
Url string `yaml:"url,omitempty"`
Token string `yaml:"token,omitempty"`
TokenEnv string `yaml:"tokenEnv,omitempty"`
}
KegRegistry describes a named registry configuration entry.
type KegService ¶
type KegService struct {
// Runtime provides filesystem and environment access used to resolve kegs.
Runtime *toolkit.Runtime
// ConfigService resolves configured keg aliases and targets.
ConfigService *ConfigService
// contains filtered or unexported fields
}
KegService resolves keg targets from config, project paths, and explicit filesystem locations.
func (*KegService) Resolve ¶
func (s *KegService) Resolve(ctx context.Context, opts ResolveKegOptions) (*keg.Keg, error)
Resolve returns a keg using explicit path, project, alias, or configured fallback resolution.
type KegTargetOptions ¶
type KegTargetOptions struct {
// Keg is the configured alias.
Keg string
// Project resolves using project-local keg discovery.
Project bool
// Cwd, when combined with Project, uses cwd as the base instead of git root.
Cwd bool
// Path is an explicit local project path used for project keg discovery.
Path string
}
KegTargetOptions describes how a command should resolve a keg target.
type ListFilesOptions ¶ added in v0.2.0
type ListFilesOptions struct {
KegTargetOptions
NodeID string
}
type ListImagesOptions ¶ added in v0.2.0
type ListImagesOptions struct {
KegTargetOptions
NodeID string
}
ListImagesOptions configures behavior for Tap.ListImages.
type ListOptions ¶
type ListOptions struct {
KegTargetOptions
// Format to use. %i is node id, %d
// %i is node id
// %d is date
// %t is node title
// %% for literal %
Format string
IdOnly bool
Reverse bool
}
type MetaOptions ¶
type MetaOptions struct {
// NodeID is the node identifier to inspect (e.g., "0", "42")
NodeID string
KegTargetOptions
// Edit opens metadata in the editor.
Edit bool
// Stream carries stdin piping information.
Stream *toolkit.Stream
}
MetaOptions configures behavior for Tap.Meta.
type MoveOptions ¶
type MoveOptions struct {
KegTargetOptions
SourceID string
DestID string
}
type PathService ¶
func NewPathService ¶
func NewPathService(rt *toolkit.Runtime, root string) (*PathService, error)
func (*PathService) Project ¶
func (s *PathService) Project() string
func (*PathService) ProjectConfig ¶
func (s *PathService) ProjectConfig() string
func (*PathService) UserConfig ¶
func (s *PathService) UserConfig() string
type ProjectKegNotFoundError ¶
type ProjectKegNotFoundError struct {
Tried []string
}
ProjectKegNotFoundError indicates project-local keg discovery failed. Tried contains the concrete keg-file locations that were checked.
func (*ProjectKegNotFoundError) Error ¶
func (e *ProjectKegNotFoundError) Error() string
type RemoveOptions ¶
type RemoveOptions struct {
KegTargetOptions
NodeIDs []string
}
type ResolveKegOptions ¶
type ResolveKegOptions struct {
// Root is the base path used for project and fallback resolution.
Root string
// Keg is the explicit keg alias to resolve.
Keg string
// Project resolves a keg from project-local locations.
Project bool
// Cwd limits project resolution to the current working directory.
Cwd bool
// Path resolves a keg from an explicit filesystem path.
Path string
// NoCache disables in-memory keg caching for this resolution.
NoCache bool
}
ResolveKegOptions controls how KegService resolves a keg target.
type StatsOptions ¶
type StatsOptions struct {
// NodeID is the node identifier to inspect (e.g., "0", "42")
NodeID string
KegTargetOptions
}
type TagsOptions ¶
type TagsOptions struct {
KegTargetOptions
// Tag filters nodes by tag. When empty, all tags are listed.
Tag string
// Format to use. %i is node id
// %d is date
// %t is node title
// %% for literal %
Format string
IdOnly bool
Reverse bool
}
type Tap ¶
type Tap struct {
Root string
// Runtime carries process-level dependencies.
Runtime *toolkit.Runtime
PathService *PathService
ConfigService *ConfigService
KegService *KegService
}
func NewTap ¶
func NewTap(opts TapOptions) (*Tap, error)
func (*Tap) Config ¶
func (t *Tap) Config(opts ConfigOptions) (string, error)
Config displays the merged or project configuration.
func (*Tap) DeleteFile ¶ added in v0.2.0
func (t *Tap) DeleteFile(ctx context.Context, opts DeleteFileOptions) error
DeleteFile removes a file attachment from a node.
func (*Tap) DeleteImage ¶ added in v0.2.0
func (t *Tap) DeleteImage(ctx context.Context, opts DeleteImageOptions) error
DeleteImage removes an image from a node.
func (*Tap) DownloadFile ¶ added in v0.2.0
DownloadFile retrieves a node file attachment and writes it to a local path. Returns the destination path.
func (*Tap) DownloadImage ¶ added in v0.2.0
DownloadImage retrieves a node image and writes it to a local path. Returns the destination path.
func (*Tap) Edit ¶
func (t *Tap) Edit(ctx context.Context, opts EditOptions) error
Edit opens a node in an editor using a temporary markdown file.
The temp file format is:
--- <meta yaml> --- <markdown body>
If stdin is piped, it seeds the temp file content. On save, frontmatter is written to meta.yaml and the body is written to the node content file.
func (*Tap) Index ¶
Index updates indices for a keg (nodes.tsv, tags, links, backlinks). Default behavior is incremental. Set opts.Rebuild to force a full rebuild.
func (*Tap) IndexCat ¶ added in v0.2.0
IndexCat returns the raw contents of a named dex index file. opts.Name may include or omit a leading "dex/" prefix; both are accepted.
func (*Tap) InitKeg ¶
func (t *Tap) InitKeg(ctx context.Context, name string, options InitOptions) (*kegurl.Target, error)
InitKeg creates a keg entry for the given name.
It validates destination flags, infers an alias when needed, and initializes one of three destinations:
- user: filesystem-backed keg under the first configured kegSearchPaths entry
- project: filesystem-backed keg under project path or explicit --path
- registry: API target entry written to config only
func (*Tap) KegConfigEdit ¶ added in v0.2.0
func (t *Tap) KegConfigEdit(ctx context.Context, opts KegConfigEditOptions) error
KegConfigEdit opens the keg configuration file in the default editor.
func (*Tap) ListImages ¶ added in v0.2.0
ListImages returns the names of images for a node.
func (*Tap) ListIndexes ¶ added in v0.2.0
ListIndexes returns the names of available index files for a keg (e.g. "changes.md", "nodes.tsv").
func (*Tap) ListKegs ¶
ListKegs returns available keg aliases from local discovery paths and config. When cache is true, cached config values may be used.
func (*Tap) UploadFile ¶ added in v0.2.0
UploadFile reads a local file and stores it as a node file attachment. Returns the stored filename.
func (*Tap) UploadImage ¶ added in v0.2.0
UploadImage reads a local file and stores it as a node image. Returns the stored filename.
func (*Tap) UserConfigEdit ¶ added in v0.2.0
func (t *Tap) UserConfigEdit(ctx context.Context, opts ConfigEditOptions) error
UserConfigEdit opens the configuration file in the default editor.
type UploadFileOptions ¶ added in v0.2.0
type UploadFileOptions struct {
KegTargetOptions
NodeID string
FilePath string
Name string
}
UploadFileOptions configures behavior for Tap.UploadFile.
type UploadImageOptions ¶ added in v0.2.0
type UploadImageOptions struct {
KegTargetOptions
NodeID string
FilePath string
Name string
}
UploadImageOptions configures behavior for Tap.UploadImage.