Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostnameArgs ¶
type HostnameArgs struct {
Hostname string
}
type Manager ¶
type Manager struct {
CommandContext func(ctx context.Context, name string, args ...string) utils.Cmd
}
func (Manager) Hostname ¶
Hostname get or change persistent system hostname. With no arguments, this prints currently configured hostname. When you pass a hostname, NetworkManager will set it as the new persistent system hostname.
func (Manager) Permissions ¶
func (m Manager) Permissions(ctx context.Context) ([]Permission, error)
Permissions Show caller permissions for authenticated operations.
type Permission ¶
type Permission struct { Permission string Value PermissionValue }
type PermissionValue ¶
type PermissionValue string
const ( PermissionValueAuth PermissionValue = "auth" PermissionValueYes PermissionValue = "yes" PermissionValueNo PermissionValue = "no" )
Click to show internal directories.
Click to hide internal directories.