security

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ACLFolderPerms              = os.FileMode(0755) // the ACL folder permissions.
	ACLFilePerms                = os.FileMode(0755) // the ACL file permissions.
	ACLUserROPerms              = os.FileMode(0400) // the ACL user read-only permissions.
	ACLUserRWGroupOtherROPerms  = os.FileMode(0644) // the ACL user read-write permissions but read-only for group and other.
	ACLUserRWXGroupOtherRXPerms = os.FileMode(0755) // the ACL user read-write-execute permissions but read-execute for group and other.
)

Variables

This section is empty.

Functions

func ServiceAccountGroupId

func ServiceAccountGroupId() string

func ServiceAccountGroupName

func ServiceAccountGroupName() string

func ServiceAccountUserId

func ServiceAccountUserId() string

func ServiceAccountUserName

func ServiceAccountUserName() string

func SetServiceAccount

func SetServiceAccount(svcAcc ServiceAccount)

Types

type ServiceAccount

type ServiceAccount struct {
	UserName  string
	UserId    string
	GroupName string
	GroupId   string
}

Directories

Path Synopsis
Package principal provides routines to set and check security for users, groups, files, and folders.
Package principal provides routines to set and check security for users, groups, files, and folders.

Jump to

Keyboard shortcuts

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