Documentation
¶
Index ¶
- func FancySelect(title string, items []list.Item) (string, error)
- func List(title string, items []list.Item) error
- func ListFleets() error
- func ListGateways(fleet api.Fleet) error
- func ListMachineEvents(fleetID, machineID string) error
- func ListMachines(fleets []ravelAPI.Fleet, fleetID string) error
- func SelectFleet() (fleetID string, err error)
- func SelectFleetWithFleets(fleets []ravelAPI.Fleet) (fleetID string, err error)
- func SelectGateway(fleet api.Fleet) (gateway *api.Gateway, err error)
- func SelectMachine(fleetID string) (string, error)
- func SelectOrCreateFleet() (fleetID string, err error)
- func ShowTable(columns []table.Column, envs map[string]string, height int)
- func StreamMachineLogs(ctx context.Context, client *valyent.Client, opts valyent.LogStreamOptions)
- type FancySelectItem
- type ListItem
- type StreamModel
- type StreamModelResultMsg
- type TableModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FancySelect ¶
FancySelect displays a list of items and allows the user to select one.
func ListFleets ¶
func ListFleets() error
ListFleets lists the fleets related to the currently authenticated's namespace without prompting the user to choose one for further actions.
func ListGateways ¶
func ListMachineEvents ¶
func SelectFleet ¶
SelectFleet prompts the user to select an existing fleet from the list.
func SelectFleetWithFleets ¶
SelectFleetWithFleets prompts the user to select an existing fleet from the list.
func SelectMachine ¶
func SelectOrCreateFleet ¶
SelectOrCreateFleet lets the user select or create a fleet.
func StreamMachineLogs ¶
StreamMachineLogs streams logs using the StreamModel and the LogStream API.
Types ¶
type FancySelectItem ¶
type FancySelectItem struct {
// contains filtered or unexported fields
}
func (FancySelectItem) Description ¶
func (i FancySelectItem) Description() string
func (FancySelectItem) FilterValue ¶
func (i FancySelectItem) FilterValue() string
func (FancySelectItem) Title ¶
func (i FancySelectItem) Title() string
func (FancySelectItem) Value ¶
func (i FancySelectItem) Value() string
type ListItem ¶
type ListItem struct {
// contains filtered or unexported fields
}
func (ListItem) Description ¶
func (ListItem) FilterValue ¶
type StreamModel ¶
type StreamModel struct {
Title string
// contains filtered or unexported fields
}
func NewStreamModel ¶
func NewStreamModel(Title string) StreamModel
func (StreamModel) Init ¶
func (m StreamModel) Init() tea.Cmd
func (StreamModel) Run ¶
func (m StreamModel) Run(streamFn func(p *tea.Program))
func (StreamModel) View ¶
func (m StreamModel) View() string
type StreamModelResultMsg ¶
func (StreamModelResultMsg) String ¶
func (r StreamModelResultMsg) String() string
type TableModel ¶
type TableModel struct {
// contains filtered or unexported fields
}
func (TableModel) Init ¶
func (m TableModel) Init() tea.Cmd
func (TableModel) View ¶
func (m TableModel) View() string
Click to show internal directories.
Click to hide internal directories.