{"modulePath":"github.com/stackgenhq/genie","version":"v0.1.8-rc.24","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executable\n\nPackage executable provides a generic tool wrapper for arbitrary binaries.\n\n## Types\n\n```go\ntype Config struct {\n\tName        string   `yaml:\"name\" toml:\"name\"`\n\tBinary      string   `yaml:\"binary\" toml:\"binary\"`\n\tDescription string   `yaml:\"description\" toml:\"description\"`\n\tEnv         []EnvVar `yaml:\"env,omitempty\" toml:\"env,omitempty\"`\n}\n```\nConfig holds the configuration for a generic executable tool.\n\n```go\nfunc (cfg Config) Tool(ctx context.Context, sp security.SecretProvider) (tool.Tool, error)\n```\nTool validates the configuration and returns an executable tool.\n\n```go\ntype Configs []Config\n```\nConfigs represents a list of executable tool configurations.\n\n```go\nfunc (c Configs) Tools(ctx context.Context, sp security.SecretProvider) []tool.Tool\n```\nTools resolves secrets and validates binary availability, converting valid configurations into tool.Tool instances.\n\n```go\ntype EnvVar struct {\n\tKey    string `yaml:\"key\" toml:\"key\"`\n\tValue  string `yaml:\"value,omitempty\" toml:\"value,omitempty\"`\n\tSecret string `yaml:\"secret,omitempty\" toml:\"secret,omitempty\"`\n}\n```\nEnvVar represents an environment variable key-value pair, or a lookup.\n\n","path":"github.com/stackgenhq/genie/pkg/tools/executable","name":"executable","synopsis":"Package executable provides a generic tool wrapper for arbitrary binaries.","isRedistributable":true}
