config

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: BSD-3-Clause Imports: 7 Imported by: 1 module, 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

Overview

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v0.0.7

type Action string
const (
	ActionDelete Action = "delete"
)

type Alias

type Alias struct {
	Entity  string            `yaml:"entity"`
	Group   string            `yaml:"group"`
	Use     string            `yaml:"use"`
	Aliases []string          `yaml:"aliases,omitempty"`
	Short   string            `yaml:"short"`
	Command []string          `yaml:"command"`
	Flags   map[string]string `yaml:"flags,omitempty"`
	Prompt  *Prompt           `yaml:"prompt,omitempty"`
}

type Call

type Call struct {
	Content string `yaml:"content"`
	Entity  string `yaml:"entity"`
}

type Column

type Column struct {
	Title   string `yaml:"title"`
	Content string `yaml:"content"`
	// contains filtered or unexported fields
}

func (*Column) Get

func (c *Column) Get(v any) (any, error)

func (Column) String

func (c Column) String() string

type Columns

type Columns []Column

func ParseColumns

func ParseColumns(s string) Columns

type Config

type Config struct {
	DefaultContent string            `yaml:"default_content,omitempty"`
	Calls          map[string]Call   `yaml:"contents,omitempty"`
	Entities       map[string]Entity `yaml:"entities,omitempty"`
	Aliases        []Alias           `yaml:"aliases,omitempty"`
	Flags          []FlagConfig      `yaml:"flags,omitempty"`
}

func For

func For(provider string) Config

type Configs

type Configs map[string]Config

func Defaults

func Defaults() Configs

type Entity

type Entity struct {
	Aliases []string `yaml:"aliases,omitempty"`
	Columns Columns  `yaml:"columns"`
}

type FlagConfig

type FlagConfig struct {
	AppliesTo  string `yaml:"applies_to"`
	TrimPrefix string `yaml:"trim_prefix"`
}

type Prompt added in v0.0.7

type Prompt struct {
	Action         Action   `yaml:"action"`
	DisplayCommand []string `yaml:"display"`
}

Directories

Path Synopsis
generate
iaas command
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

Jump to

Keyboard shortcuts

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