object_storage

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 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

Index

Constants

View Source
const (
	ContainerActionDelete = iota
	ContainerActionChangeType
	ContainerActionAddPolicy
)

Action identifiers for object storage container detail view.

View Source
const (
	UserActionShowSecret = iota
	UserActionDisable
	UserActionEnable
	UserActionDeleteUser
)

Action identifiers for user detail view.

Variables

This section is empty.

Functions

This section is empty.

Types

type DetailView

type DetailView struct {
	views.BaseView
	// contains filtered or unexported fields
}

DetailView displays object storage container details with actions.

func NewDetailView

func NewDetailView(ctx *views.Context, container map[string]any, users []map[string]any) *DetailView

NewDetailView creates a detail view for a container.

func (*DetailView) HandleKey

func (v *DetailView) HandleKey(msg tea.KeyMsg) tea.Cmd

func (*DetailView) HelpText

func (v *DetailView) HelpText() string

func (*DetailView) Render

func (v *DetailView) Render(width, height int) string

func (*DetailView) Title

func (v *DetailView) Title() string

type ExecuteContainerActionMsg

type ExecuteContainerActionMsg struct {
	Container map[string]any
	Action    int
	ExtraData map[string]any
}

ExecuteContainerActionMsg is dispatched when the user confirms an action.

type ExecuteUserActionMsg

type ExecuteUserActionMsg struct {
	User   map[string]any
	Action int
}

ExecuteUserActionMsg is dispatched when the user confirms an action.

type UserDetailView

type UserDetailView struct {
	views.BaseView
	// contains filtered or unexported fields
}

UserDetailView displays S3 user details with activate/deactivate and secret key actions.

func NewUserDetailView

func NewUserDetailView(ctx *views.Context, user map[string]any) *UserDetailView

NewUserDetailView creates a detail view for an S3 user.

func (*UserDetailView) HandleKey

func (v *UserDetailView) HandleKey(msg tea.KeyMsg) tea.Cmd

func (*UserDetailView) HelpText

func (v *UserDetailView) HelpText() string

func (*UserDetailView) Render

func (v *UserDetailView) Render(width, height int) string

func (*UserDetailView) SetSecret

func (v *UserDetailView) SetSecret(secret string)

SetSecret populates the revealed secret key and shows it.

func (*UserDetailView) Title

func (v *UserDetailView) Title() string

Jump to

Keyboard shortcuts

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