Documentation ¶
Index ¶
- Variables
- func AdminUserPassword() string
- func AdminUserUsername() string
- func BasicAuth(handler http.HandlerFunc) http.HandlerFunc
- func CertPath() string
- func ClearDeviceOnEnroll() bool
- func DBHost() string
- func DBMaxConnections() int
- func DBMaxIdleConnections() int
- func DBName() string
- func DBPassword() string
- func DBPort() string
- func DBSSLMode() string
- func DBUsername() string
- func DebugMode() bool
- func EnrollmentProfile() string
- func EscrowURL() string
- func FileExists(filename string) bool
- func Find(slice []string, val string) (int, bool)
- func GetBasicAuthPassword() string
- func GetBasicAuthUser() string
- func InfoRequestInterval() int
- func KeyPassword() string
- func KeyPath() string
- func LogLevel() string
- func NanoAPIKey() string
- func NanoURL() string
- func OnceIn() int
- func PrintStruct(input interface{})
- func Prometheus() bool
- func PushOnNewBuild() bool
- func RedisHost() string
- func RedisPassword() string
- func RedisPort() string
- func ScepCertIssuer() string
- func ScepCertMinValidity() int
- func Sign() bool
- func SignedEnrollmentProfile() bool
- func Verify(plaintext string, h SaltedSHA512PBKDF2Dictionary) error
- type DefaultProvider
- type IFlagProvider
- type SaltedSHA512PBKDF2Dictionary
Constants ¶
This section is empty.
Variables ¶
var ErrNoMatch = errors.New("password does not match")
Functions ¶
func AdminUserPassword ¶
func AdminUserPassword() string
func AdminUserUsername ¶
func AdminUserUsername() string
func BasicAuth ¶
func BasicAuth(handler http.HandlerFunc) http.HandlerFunc
BasicAuth provides basic authentication for certain routes
func ClearDeviceOnEnroll ¶
func ClearDeviceOnEnroll() bool
func DBMaxConnections ¶
func DBMaxConnections() int
func DBMaxIdleConnections ¶
func DBMaxIdleConnections() int
func DBPassword ¶
func DBPassword() string
func DBUsername ¶
func DBUsername() string
func EnrollmentProfile ¶
func EnrollmentProfile() string
func FileExists ¶
func GetBasicAuthPassword ¶
func GetBasicAuthPassword() string
func GetBasicAuthUser ¶
func GetBasicAuthUser() string
func InfoRequestInterval ¶
func InfoRequestInterval() int
func KeyPassword ¶
func KeyPassword() string
func NanoAPIKey ¶
func NanoAPIKey() string
func PrintStruct ¶
func PrintStruct(input interface{})
func Prometheus ¶
func Prometheus() bool
func PushOnNewBuild ¶
func PushOnNewBuild() bool
func RedisPassword ¶
func RedisPassword() string
func ScepCertIssuer ¶
func ScepCertIssuer() string
func ScepCertMinValidity ¶
func ScepCertMinValidity() int
func SignedEnrollmentProfile ¶
func SignedEnrollmentProfile() bool
func Verify ¶
func Verify(plaintext string, h SaltedSHA512PBKDF2Dictionary) error
Types ¶
type DefaultProvider ¶
type DefaultProvider struct{}
DefaultProvider is the "production" implementation of IFlagProvider. It is simply a skeleton wrapper for all of the other legacy public methods in this package.
func (DefaultProvider) ClearDeviceOnEnroll ¶
func (provider DefaultProvider) ClearDeviceOnEnroll() bool
ClearDeviceOnEnroll returns whether to delete device profiles and install applications when a device enrolls
type IFlagProvider ¶
type IFlagProvider interface {
ClearDeviceOnEnroll() bool
}
IFlagProvider is the public interface for all flag.Lookup calls
var FlagProvider IFlagProvider = DefaultProvider{}
FlagProvider is the variable that should be used to access public methods in this file. It intentionally has an identical public interface to the legacy public methods in this class to make migration easier. During unit tests, simply swap out this public variable for a unit-test-specific implementation of IFlagProvider. Swap back the original FlagProvider by simply instantiating a new DefaultProvider.
type SaltedSHA512PBKDF2Dictionary ¶
type SaltedSHA512PBKDF2Dictionary struct { Iterations int `plist:"iterations"` Salt []byte `plist:"salt"` Entropy []byte `plist:"entropy"` }
func SaltedSHA512PBKDF2 ¶
func SaltedSHA512PBKDF2(plaintext string) (SaltedSHA512PBKDF2Dictionary, error)