Documentation ¶
Index ¶
- Variables
- type Admin
- func (*Admin) Descriptor() ([]byte, []int)deprecated
- func (x *Admin) GetPassword() string
- func (x *Admin) GetUsername() string
- func (*Admin) ProtoMessage()
- func (x *Admin) ProtoReflect() protoreflect.Message
- func (x *Admin) Reset()
- func (x *Admin) String() string
- func (m *Admin) Validate() error
- func (m *Admin) ValidateAll() error
- type AdminMultiError
- type AdminValidationError
- type Bootstrap
- func (*Bootstrap) Descriptor() ([]byte, []int)deprecated
- func (x *Bootstrap) GetApp() *conf.AppConfig
- func (x *Bootstrap) GetData() *conf.Data
- func (x *Bootstrap) GetLogging() *conf.Logging
- func (x *Bootstrap) GetSecurity() *conf.Security
- func (x *Bootstrap) GetServices() *conf.Services
- func (x *Bootstrap) GetTracing() *conf.Tracers
- func (x *Bootstrap) GetUser() *UserConf
- func (*Bootstrap) ProtoMessage()
- func (x *Bootstrap) ProtoReflect() protoreflect.Message
- func (x *Bootstrap) Reset()
- func (x *Bootstrap) String() string
- func (m *Bootstrap) Validate() error
- func (m *Bootstrap) ValidateAll() error
- type BootstrapMultiError
- type BootstrapValidationError
- type UserConf
- func (*UserConf) Descriptor() ([]byte, []int)deprecated
- func (x *UserConf) GetAdmin() *Admin
- func (x *UserConf) GetEmailConfirmExpiry() *durationpb.Duration
- func (x *UserConf) GetEmailRecoverExpiry() *durationpb.Duration
- func (x *UserConf) GetPasswordScoreMin() int32
- func (x *UserConf) GetPermission() *authz.PermissionConf
- func (x *UserConf) GetPhoneConfirmExpiry() *durationpb.Duration
- func (x *UserConf) GetPhoneRecoverExpiry() *durationpb.Duration
- func (x *UserConf) GetRootUrl() string
- func (x *UserConf) GetTotp_2FaIssuer() *wrapperspb.StringValue
- func (*UserConf) ProtoMessage()
- func (x *UserConf) ProtoReflect() protoreflect.Message
- func (x *UserConf) Reset()
- func (x *UserConf) String() string
- func (m *UserConf) Validate() error
- func (m *UserConf) ValidateAll() error
- type UserConfMultiError
- type UserConfValidationError
Constants ¶
This section is empty.
Variables ¶
var File_user_private_conf_conf_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Admin ¶
type Admin struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*Admin) Descriptor
deprecated
func (*Admin) GetPassword ¶
func (*Admin) GetUsername ¶
func (*Admin) ProtoMessage ¶
func (*Admin) ProtoMessage()
func (*Admin) ProtoReflect ¶
func (x *Admin) ProtoReflect() protoreflect.Message
func (*Admin) Validate ¶
Validate checks the field values on Admin with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Admin) ValidateAll ¶
ValidateAll checks the field values on Admin with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AdminMultiError, or nil if none found.
type AdminMultiError ¶
type AdminMultiError []error
AdminMultiError is an error wrapping multiple validation errors returned by Admin.ValidateAll() if the designated constraints aren't met.
func (AdminMultiError) AllErrors ¶
func (m AdminMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AdminMultiError) Error ¶
func (m AdminMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AdminValidationError ¶
type AdminValidationError struct {
// contains filtered or unexported fields
}
AdminValidationError is the validation error returned by Admin.Validate if the designated constraints aren't met.
func (AdminValidationError) Cause ¶
func (e AdminValidationError) Cause() error
Cause function returns cause value.
func (AdminValidationError) Error ¶
func (e AdminValidationError) Error() string
Error satisfies the builtin error interface
func (AdminValidationError) ErrorName ¶
func (e AdminValidationError) ErrorName() string
ErrorName returns error name.
func (AdminValidationError) Field ¶
func (e AdminValidationError) Field() string
Field function returns field value.
func (AdminValidationError) Key ¶
func (e AdminValidationError) Key() bool
Key function returns key value.
func (AdminValidationError) Reason ¶
func (e AdminValidationError) Reason() string
Reason function returns reason value.
type Bootstrap ¶
type Bootstrap struct { Data *conf.Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` Security *conf.Security `protobuf:"bytes,3,opt,name=security,proto3" json:"security,omitempty"` Services *conf.Services `protobuf:"bytes,4,opt,name=services,proto3" json:"services,omitempty"` User *UserConf `protobuf:"bytes,5,opt,name=user,proto3" json:"user,omitempty"` Logging *conf.Logging `protobuf:"bytes,6,opt,name=logging,proto3" json:"logging,omitempty"` Tracing *conf.Tracers `protobuf:"bytes,7,opt,name=tracing,proto3" json:"tracing,omitempty"` App *conf.AppConfig `protobuf:"bytes,8,opt,name=app,proto3" json:"app,omitempty"` // contains filtered or unexported fields }
func (*Bootstrap) Descriptor
deprecated
func (*Bootstrap) GetLogging ¶
func (*Bootstrap) GetSecurity ¶
func (*Bootstrap) GetServices ¶
func (*Bootstrap) GetTracing ¶
func (*Bootstrap) ProtoMessage ¶
func (*Bootstrap) ProtoMessage()
func (*Bootstrap) ProtoReflect ¶
func (x *Bootstrap) ProtoReflect() protoreflect.Message
func (*Bootstrap) Validate ¶
Validate checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Bootstrap) ValidateAll ¶
ValidateAll checks the field values on Bootstrap with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BootstrapMultiError, or nil if none found.
type BootstrapMultiError ¶
type BootstrapMultiError []error
BootstrapMultiError is an error wrapping multiple validation errors returned by Bootstrap.ValidateAll() if the designated constraints aren't met.
func (BootstrapMultiError) AllErrors ¶
func (m BootstrapMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BootstrapMultiError) Error ¶
func (m BootstrapMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BootstrapValidationError ¶
type BootstrapValidationError struct {
// contains filtered or unexported fields
}
BootstrapValidationError is the validation error returned by Bootstrap.Validate if the designated constraints aren't met.
func (BootstrapValidationError) Cause ¶
func (e BootstrapValidationError) Cause() error
Cause function returns cause value.
func (BootstrapValidationError) Error ¶
func (e BootstrapValidationError) Error() string
Error satisfies the builtin error interface
func (BootstrapValidationError) ErrorName ¶
func (e BootstrapValidationError) ErrorName() string
ErrorName returns error name.
func (BootstrapValidationError) Field ¶
func (e BootstrapValidationError) Field() string
Field function returns field value.
func (BootstrapValidationError) Key ¶
func (e BootstrapValidationError) Key() bool
Key function returns key value.
func (BootstrapValidationError) Reason ¶
func (e BootstrapValidationError) Reason() string
Reason function returns reason value.
type UserConf ¶
type UserConf struct { // Minimum password score. [0-5] PasswordScoreMin int32 `protobuf:"varint,1,opt,name=password_score_min,json=passwordScoreMin,proto3" json:"password_score_min,omitempty"` Admin *Admin `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` RootUrl string `protobuf:"bytes,4,opt,name=root_url,json=rootUrl,proto3" json:"root_url,omitempty"` EmailConfirmExpiry *durationpb.Duration `protobuf:"bytes,5,opt,name=email_confirm_expiry,json=emailConfirmExpiry,proto3" json:"email_confirm_expiry,omitempty"` PhoneConfirmExpiry *durationpb.Duration `protobuf:"bytes,6,opt,name=phone_confirm_expiry,json=phoneConfirmExpiry,proto3" json:"phone_confirm_expiry,omitempty"` EmailRecoverExpiry *durationpb.Duration `protobuf:"bytes,7,opt,name=email_recover_expiry,json=emailRecoverExpiry,proto3" json:"email_recover_expiry,omitempty"` PhoneRecoverExpiry *durationpb.Duration `protobuf:"bytes,8,opt,name=phone_recover_expiry,json=phoneRecoverExpiry,proto3" json:"phone_recover_expiry,omitempty"` Totp_2FaIssuer *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=totp_2fa_issuer,json=totp2faIssuer,proto3,oneof" json:"totp_2fa_issuer,omitempty"` Permission *authz.PermissionConf `protobuf:"bytes,10,opt,name=permission,proto3" json:"permission,omitempty"` // contains filtered or unexported fields }
func (*UserConf) Descriptor
deprecated
func (*UserConf) GetEmailConfirmExpiry ¶
func (x *UserConf) GetEmailConfirmExpiry() *durationpb.Duration
func (*UserConf) GetEmailRecoverExpiry ¶
func (x *UserConf) GetEmailRecoverExpiry() *durationpb.Duration
func (*UserConf) GetPasswordScoreMin ¶
func (*UserConf) GetPermission ¶
func (x *UserConf) GetPermission() *authz.PermissionConf
func (*UserConf) GetPhoneConfirmExpiry ¶
func (x *UserConf) GetPhoneConfirmExpiry() *durationpb.Duration
func (*UserConf) GetPhoneRecoverExpiry ¶
func (x *UserConf) GetPhoneRecoverExpiry() *durationpb.Duration
func (*UserConf) GetRootUrl ¶
func (*UserConf) GetTotp_2FaIssuer ¶
func (x *UserConf) GetTotp_2FaIssuer() *wrapperspb.StringValue
func (*UserConf) ProtoMessage ¶
func (*UserConf) ProtoMessage()
func (*UserConf) ProtoReflect ¶
func (x *UserConf) ProtoReflect() protoreflect.Message
func (*UserConf) Validate ¶
Validate checks the field values on UserConf with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UserConf) ValidateAll ¶
ValidateAll checks the field values on UserConf with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserConfMultiError, or nil if none found.
type UserConfMultiError ¶
type UserConfMultiError []error
UserConfMultiError is an error wrapping multiple validation errors returned by UserConf.ValidateAll() if the designated constraints aren't met.
func (UserConfMultiError) AllErrors ¶
func (m UserConfMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserConfMultiError) Error ¶
func (m UserConfMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserConfValidationError ¶
type UserConfValidationError struct {
// contains filtered or unexported fields
}
UserConfValidationError is the validation error returned by UserConf.Validate if the designated constraints aren't met.
func (UserConfValidationError) Cause ¶
func (e UserConfValidationError) Cause() error
Cause function returns cause value.
func (UserConfValidationError) Error ¶
func (e UserConfValidationError) Error() string
Error satisfies the builtin error interface
func (UserConfValidationError) ErrorName ¶
func (e UserConfValidationError) ErrorName() string
ErrorName returns error name.
func (UserConfValidationError) Field ¶
func (e UserConfValidationError) Field() string
Field function returns field value.
func (UserConfValidationError) Key ¶
func (e UserConfValidationError) Key() bool
Key function returns key value.
func (UserConfValidationError) Reason ¶
func (e UserConfValidationError) Reason() string
Reason function returns reason value.