Documentation ¶
Overview ¶
Package security contains common methods regarding encryption and passwords.
Index ¶
- func RandOraclePassword() (string, error)
- func SetupConnStringOnServer(ctx context.Context, onServer runSQLOnServer, username, db, DBDomain string) (string, string, error)
- func SetupUserPwConnStringByClient(ctx context.Context, onClient runSQLOnClient, username, db, DBDomain string) (string, error)
- func SetupUserPwConnStringOnServer(ctx context.Context, onServer runSQLOnServer, username, db, DBDomain string) (string, error)
- type Security
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandOraclePassword ¶
RandOraclePassword returns a random password containing letters and numbers. It is caller's responsibility to handle the error.
func SetupConnStringOnServer ¶
func SetupConnStringOnServer(ctx context.Context, onServer runSQLOnServer, username, db, DBDomain string) (string, string, error)
SetupConnStringOnServer generates and sets a random password for the given user on the DB server and returns the connection string without user/password part and the generated password.
func SetupUserPwConnStringByClient ¶
func SetupUserPwConnStringByClient(ctx context.Context, onClient runSQLOnClient, username, db, DBDomain string) (string, error)
SetupUserPwConnStringByClient sets the password for the given user to a randomized password with the client and returns the connection string.
func SetupUserPwConnStringOnServer ¶
func SetupUserPwConnStringOnServer(ctx context.Context, onServer runSQLOnServer, username, db, DBDomain string) (string, error)
SetupUserPwConnStringOnServer sets the password for the given user to a randomized password on the DB server and returns the connection string.
Types ¶
type Security ¶
type Security struct {
// contains filtered or unexported fields
}
Security provides login and encryption methods.
func (*Security) IsContainerHealthy ¶
IsContainerHealthy checks the health status of a named container.