package group

import "github.com/coreos/rkt/pkg/group"

Index

Functions

func LookupGid

func LookupGid(groupName string) (gid int, err error)

LookupGid reads the group file and returns the gid of the group specified by groupName.

func LookupGidFromFile

func LookupGidFromFile(groupName, groupFile string) (gid int, err error)

LookupGid reads the group file specified by groupFile, and returns the gid of the group specified by groupName.

Types

type Group

type Group struct {
	Name  string
	Pass  string
	Gid   int
	Users []string
}

Group represents an entry in the group file.

Source Files

group.go

Version
v1.30.0 (latest)
Published
Apr 13, 2018
Platform
linux/amd64
Imports
8 packages
Last checked
1 day ago

Tools for package owners.