Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultVaultServer = "auth.negentropy.flant.com" DefaultVaultServerType = v1.AuthServer DefaultAuthSocketPath = "/run/authd/server-accessd.sock" )
View Source
const FlantIAMMountpoint = "flant_iam_auth"
Variables ¶
This section is empty.
Functions ¶
func ClientFromAuthd ¶
func ClientFromAuthd(settings AuthdSettings) (*api.Client, error)
Types ¶
type AuthdSettings ¶
type AuthdSettings struct { Server string `json:"vaultServerAddr"` ServerType string `json:"vaultServerType"` SocketPath string `json:"authdSocketPath"` }
func AssembleAuthdSettings ¶
func AssembleAuthdSettings(settings AuthdSettings) AuthdSettings
type FlantIAMAuth ¶
type FlantIAMAuth struct {
// contains filtered or unexported fields
}
func NewFlantIAMAuth ¶
func NewFlantIAMAuth(client *api.Client) *FlantIAMAuth
func (*FlantIAMAuth) PosixUsers ¶
func (c *FlantIAMAuth) PosixUsers(settings ServerAccessSettings) ([]PosixUser, error)
type Logical ¶
type Logical interface { Read(path string) (*api.Secret, error) ReadWithData(path string, data map[string][]string) (*api.Secret, error) List(path string) (*api.Secret, error) Write(path string, data map[string]interface{}) (*api.Secret, error) WriteBytes(path string, data []byte) (*api.Secret, error) Delete(path string) (*api.Secret, error) DeleteWithData(path string, data map[string][]string) (*api.Secret, error) Unwrap(wrappingToken string) (*api.Secret, error) }
type PosixUser ¶
type PosixUsers ¶
type PosixUsers struct {
Users []PosixUser `json:"posix_users"`
}
type PosixUsersData ¶
type PosixUsersData struct {
Data PosixUsers `json:"data"`
}
type ServerAccessSettings ¶
type ServerAccessSettings struct { TenantUUID string `json:"tenant"` ProjectUUID string `json:"project"` ServerUUID string `json:"server"` }
func AssembleServerAccessSettings ¶
func AssembleServerAccessSettings(settings ServerAccessSettings) ServerAccessSettings
Click to show internal directories.
Click to hide internal directories.