accountaccess

package
v0.7.0-rc.12 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0 Imports: 4 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

Overview

Package accountaccess defines local account observations shared across IPC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Name  string `json:"name"`
	UID   uint32 `json:"uid"`
	GID   uint32 `json:"gid"`
	Home  string `json:"home"`
	Shell string `json:"shell"`
}

func (Account) KeyDiscoverySupported

func (a Account) KeyDiscoverySupported() bool

KeyDiscoverySupported bounds discovery to root, the owner and accounts using common interactive shells. Shell metadata describes configuration, not login proof.

func (Account) Ref

func (a Account) Ref() Ref

type Detail

type Detail struct {
	Account       Account        `json:"account"`
	Groups        []string       `json:"groups"`
	GroupsProblem string         `json:"groups_problem,omitempty"`
	Source        sshkeys.Source `json:"source"`
}

type Inventory

type Inventory struct {
	Accounts []Account               `json:"accounts"`
	Access   map[string]SystemAccess `json:"access"`
}

type Ref

type Ref struct {
	Name string `json:"name"`
	UID  uint32 `json:"uid"`
}

func (Ref) Validate

func (r Ref) Validate() error

type SystemAccess

type SystemAccess string
const (
	AccessRoot         SystemAccess = "root"
	AccessPassword     SystemAccess = "password"
	AccessPasswordless SystemAccess = "passwordless"
	AccessReview       SystemAccess = "review"
	AccessUnavailable  SystemAccess = "unavailable"
)

Jump to

Keyboard shortcuts

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