Documentation ¶
Index ¶
- Variables
- func AddFlags(flags *pflag.FlagSet)
- func ReloadConfigFromFile(logger log.Logger, filename string) error
- func ReloadConfigFromYamlReader(logger log.Logger, r Reader) error
- func SetRuntimeConfig(f func(c *RuntimeConfig))
- type Allower
- type Allowers
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (x *Config) GetAppName() string
- func (m *Config) GetGlobal() *GlobalOptions
- func (x *Config) GetJwtIssuer() jwt.JWTIssuer
- func (x *Config) GetOAuthOptions(id string) *oauth2.Options
- func (x *Config) GetRateLimit(name string) Allower
- func (m *Config) GetSecurity() *Security
- func (m *Config) GetStorage() *Storages
- func (x *Config) GetUploadDir() (afero.Fs, error)
- func (x *Config) GetWorkspace() afero.Fs
- func (x *Config) Init(_ log.Logger) error
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (x *Config) SetWorkspace(path string)
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type Converter
- type CustomType
- func (*CustomType) Descriptor() ([]byte, []int)
- func (*CustomType) ProtoMessage()
- func (m *CustomType) Reset()
- func (m *CustomType) String() string
- func (m *CustomType) XXX_DiscardUnknown()
- func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CustomType) XXX_Merge(src proto.Message)
- func (m *CustomType) XXX_Size() int
- func (m *CustomType) XXX_Unmarshal(b []byte) error
- type GlobalOptions
- func (*GlobalOptions) Descriptor() ([]byte, []int)
- func (m *GlobalOptions) GetAdminEmail() string
- func (m *GlobalOptions) GetAppName() string
- func (m *GlobalOptions) GetCopyright() string
- func (m *GlobalOptions) GetDefaultLoginType() string
- func (m *GlobalOptions) GetDisableLoginForm() bool
- func (m *GlobalOptions) GetLogo() string
- func (m *GlobalOptions) GetMaxBodySize() *capacity.Capacity
- func (m *GlobalOptions) GetMaxUploadSize() *capacity.Capacity
- func (m *GlobalOptions) GetOauth2() []*oauth2.Options
- func (m *GlobalOptions) GetSubTitle() string
- func (m *GlobalOptions) GetTitle() string
- func (m *GlobalOptions) GetUploadPath() string
- func (m *GlobalOptions) GetWorkspace() string
- func (*GlobalOptions) ProtoMessage()
- func (m *GlobalOptions) Reset()
- func (m *GlobalOptions) String() string
- func (x *GlobalOptions) UnmarshalJSONPB(unmarshaller *jsonpb.Unmarshaler, b []byte) error
- func (m *GlobalOptions) XXX_DiscardUnknown()
- func (m *GlobalOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GlobalOptions) XXX_Merge(src proto.Message)
- func (m *GlobalOptions) XXX_Size() int
- func (m *GlobalOptions) XXX_Unmarshal(b []byte) error
- type Limiter
- type PasswordComplexity
- type RateLimit
- func (*RateLimit) Descriptor() ([]byte, []int)
- func (m *RateLimit) GetBurst() int32
- func (m *RateLimit) GetLimit() string
- func (r RateLimit) MarshalJSON() ([]byte, error)
- func (*RateLimit) ProtoMessage()
- func (m *RateLimit) Reset()
- func (m *RateLimit) String() string
- func (r *RateLimit) UnmarshalJSON(data []byte) (err error)
- func (r *RateLimit) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, b []byte) error
- func (m *RateLimit) XXX_DiscardUnknown()
- func (m *RateLimit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RateLimit) XXX_Merge(src proto.Message)
- func (m *RateLimit) XXX_Size() int
- func (m *RateLimit) XXX_Unmarshal(b []byte) error
- type Reader
- type RuntimeConfig
- func (*RuntimeConfig) Descriptor() ([]byte, []int)
- func (c *RuntimeConfig) GetLoginSessionInactivityTime() uint32
- func (c *RuntimeConfig) GetLoginSessionMaxTime() uint32
- func (c *RuntimeConfig) GetPasswordFailedLockConfig() (failedSec, failedThreshold int64)
- func (m *RuntimeConfig) GetSecurity() *RuntimeSecurityConfig
- func (*RuntimeConfig) ProtoMessage()
- func (m *RuntimeConfig) Reset()
- func (m *RuntimeConfig) String() string
- func (m *RuntimeConfig) XXX_DiscardUnknown()
- func (m *RuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RuntimeConfig) XXX_Merge(src proto.Message)
- func (m *RuntimeConfig) XXX_Size() int
- func (m *RuntimeConfig) XXX_Unmarshal(b []byte) error
- type RuntimeSecurityConfig
- func (*RuntimeSecurityConfig) Descriptor() ([]byte, []int)
- func (m *RuntimeSecurityConfig) GetAccountInactiveLock() uint32
- func (m *RuntimeSecurityConfig) GetForceEnableMfa() bool
- func (m *RuntimeSecurityConfig) GetLoginSessionInactivityTime() uint32
- func (m *RuntimeSecurityConfig) GetLoginSessionMaxTime() uint32
- func (m *RuntimeSecurityConfig) GetPasswordComplexity() PasswordComplexity
- func (m *RuntimeSecurityConfig) GetPasswordExpireTime() uint32
- func (m *RuntimeSecurityConfig) GetPasswordFailedLockDuration() uint32
- func (m *RuntimeSecurityConfig) GetPasswordFailedLockThreshold() uint32
- func (m *RuntimeSecurityConfig) GetPasswordHistory() uint32
- func (m *RuntimeSecurityConfig) GetPasswordMinLength() uint32
- func (*RuntimeSecurityConfig) ProtoMessage()
- func (m *RuntimeSecurityConfig) Reset()
- func (m *RuntimeSecurityConfig) String() string
- func (m *RuntimeSecurityConfig) XXX_DiscardUnknown()
- func (m *RuntimeSecurityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RuntimeSecurityConfig) XXX_Merge(src proto.Message)
- func (m *RuntimeSecurityConfig) XXX_Size() int
- func (m *RuntimeSecurityConfig) XXX_Unmarshal(b []byte) error
- type Security
- func (*Security) Descriptor() ([]byte, []int)
- func (m *Security) GetJwtSecret() string
- func (m *Security) GetRateLimit() []*RateLimit
- func (m *Security) GetSecret() string
- func (*Security) ProtoMessage()
- func (m *Security) Reset()
- func (m *Security) String() string
- func (m *Security) XXX_DiscardUnknown()
- func (m *Security) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Security) XXX_Merge(src proto.Message)
- func (m *Security) XXX_Size() int
- func (m *Security) XXX_Unmarshal(b []byte) error
- type Storage
- func (*Storage) Descriptor() ([]byte, []int)
- func (m *Storage) GetName() string
- func (m *Storage) GetRef() *StorageRef
- func (m *Storage) GetSource() isStorage_Source
- func (x *Storage) GetStorageSource() isStorage_Source
- func (*Storage) ProtoMessage()
- func (m *Storage) Reset()
- func (m *Storage) String() string
- func (m *Storage) XXX_DiscardUnknown()
- func (m *Storage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Storage) XXX_Merge(src proto.Message)
- func (*Storage) XXX_OneofWrappers() []interface{}
- func (m *Storage) XXX_Size() int
- func (m *Storage) XXX_Unmarshal(b []byte) error
- type StorageRef
- func (*StorageRef) Descriptor() ([]byte, []int)
- func (m *StorageRef) GetName() string
- func (m *StorageRef) GetPath() string
- func (m *StorageRef) GetStorage() *Storage
- func (*StorageRef) ProtoMessage()
- func (m *StorageRef) Reset()
- func (m *StorageRef) String() string
- func (x *StorageRef) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, b []byte) error
- func (m *StorageRef) XXX_DiscardUnknown()
- func (m *StorageRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StorageRef) XXX_Merge(src proto.Message)
- func (m *StorageRef) XXX_Size() int
- func (m *StorageRef) XXX_Unmarshal(b []byte) error
- type Storage_Ldap
- type Storage_Mysql
- type Storage_Redis
- type Storage_Ref
- type Storage_Sqlite
- type Storages
- func (*Storages) Descriptor() ([]byte, []int)
- func (m *Storages) GetDefault() *Storage
- func (m *Storages) GetLogging() *Storage
- func (m *Storages) GetSession() *Storage
- func (m *Storages) GetUser() *Storage
- func (*Storages) ProtoMessage()
- func (m *Storages) Reset()
- func (m *Storages) String() string
- func (m *Storages) XXX_DiscardUnknown()
- func (m *Storages) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Storages) XXX_Merge(src proto.Message)
- func (m *Storages) XXX_Size() int
- func (m *Storages) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var PasswordComplexity_name = map[int32]string{
0: "unsafe",
1: "general",
2: "safe",
3: "very_safe",
}
View Source
var PasswordComplexity_value = map[string]int32{
"unsafe": 0,
"general": 1,
"safe": 2,
"very_safe": 3,
}
Functions ¶
func SetRuntimeConfig ¶
func SetRuntimeConfig(f func(c *RuntimeConfig))
Types ¶
type Allower ¶
func NewLimiterWrapper ¶
type Config ¶
type Config struct { Storage *Storages `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"` Global *GlobalOptions `protobuf:"bytes,2,opt,name=global,proto3" json:"global,omitempty"` Smtp *github_com_MicroOps_cn_idas_pkg_client_email.SmtpOptions `` /* 129-byte string literal not displayed */ Security *Security `protobuf:"bytes,4,opt,name=security,proto3" json:"security,omitempty"` Trace github_com_MicroOps_cn_fuck_clients_tracing.TraceOptions `protobuf:"bytes,5,opt,name=trace,proto3,customtype=github.com/MicroOps-cn/fuck/clients/tracing.TraceOptions" json:"trace"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Config) Descriptor ¶
func (*Config) GetAppName ¶
func (*Config) GetGlobal ¶
func (m *Config) GetGlobal() *GlobalOptions
func (*Config) GetJwtIssuer ¶ added in v1.4.0
func (*Config) GetRateLimit ¶
func (*Config) GetSecurity ¶
func (*Config) GetStorage ¶
func (*Config) GetWorkspace ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) SetWorkspace ¶
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type Converter ¶
func (*Converter) UnmarshalYAML ¶
type CustomType ¶
type CustomType struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CustomType) Descriptor ¶
func (*CustomType) Descriptor() ([]byte, []int)
func (*CustomType) ProtoMessage ¶
func (*CustomType) ProtoMessage()
func (*CustomType) Reset ¶
func (m *CustomType) Reset()
func (*CustomType) String ¶
func (m *CustomType) String() string
func (*CustomType) XXX_DiscardUnknown ¶
func (m *CustomType) XXX_DiscardUnknown()
func (*CustomType) XXX_Marshal ¶
func (m *CustomType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CustomType) XXX_Merge ¶
func (m *CustomType) XXX_Merge(src proto.Message)
func (*CustomType) XXX_Size ¶
func (m *CustomType) XXX_Size() int
func (*CustomType) XXX_Unmarshal ¶
func (m *CustomType) XXX_Unmarshal(b []byte) error
type GlobalOptions ¶
type GlobalOptions struct { MaxUploadSize *capacity.Capacity `protobuf:"bytes,1,opt,name=max_upload_size,json=maxUploadSize,proto3" json:"max_upload_size,omitempty"` MaxBodySize *capacity.Capacity `protobuf:"bytes,2,opt,name=max_body_size,json=maxBodySize,proto3" json:"max_body_size,omitempty"` UploadPath string `protobuf:"bytes,3,opt,name=upload_path,json=uploadPath,proto3" json:"upload_path,omitempty"` Workspace string `protobuf:"bytes,4,opt,name=workspace,proto3" json:"workspace,omitempty"` // Deprecated: use security.secret Secret *string `protobuf:"bytes,5,opt,name=secret,proto3,customtype=string" json:"secret,omitempty"` // Deprecated: use security.jwt_secret JwtSecret *string `protobuf:"bytes,6,opt,name=jwt_secret,json=jwtSecret,proto3,customtype=string" json:"jwt_secret,omitempty"` AppName string `protobuf:"bytes,7,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"` Oauth2 []*oauth2.Options `protobuf:"bytes,8,rep,name=oauth2,proto3" json:"oauth2,omitempty"` DisableLoginForm bool `protobuf:"varint,9,opt,name=disable_login_form,json=disableLoginForm,proto3" json:"disable_login_form,omitempty"` Title string `protobuf:"bytes,10,opt,name=title,proto3" json:"title,omitempty"` SubTitle string `protobuf:"bytes,11,opt,name=sub_title,json=subTitle,proto3" json:"sub_title,omitempty"` Logo string `protobuf:"bytes,12,opt,name=logo,proto3" json:"logo,omitempty"` Copyright string `protobuf:"bytes,13,opt,name=copyright,proto3" json:"copyright,omitempty"` AdminEmail string `protobuf:"bytes,14,opt,name=admin_email,json=adminEmail,proto3" json:"admin_email,omitempty"` DefaultLoginType string `protobuf:"bytes,15,opt,name=default_login_type,json=defaultLoginType,proto3" json:"default_login_type,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func NewGlobalOptions ¶
func NewGlobalOptions() *GlobalOptions
func (*GlobalOptions) Descriptor ¶
func (*GlobalOptions) Descriptor() ([]byte, []int)
func (*GlobalOptions) GetAdminEmail ¶
func (m *GlobalOptions) GetAdminEmail() string
func (*GlobalOptions) GetAppName ¶
func (m *GlobalOptions) GetAppName() string
func (*GlobalOptions) GetCopyright ¶
func (m *GlobalOptions) GetCopyright() string
func (*GlobalOptions) GetDefaultLoginType ¶
func (m *GlobalOptions) GetDefaultLoginType() string
func (*GlobalOptions) GetDisableLoginForm ¶
func (m *GlobalOptions) GetDisableLoginForm() bool
func (*GlobalOptions) GetLogo ¶
func (m *GlobalOptions) GetLogo() string
func (*GlobalOptions) GetMaxBodySize ¶
func (m *GlobalOptions) GetMaxBodySize() *capacity.Capacity
func (*GlobalOptions) GetMaxUploadSize ¶
func (m *GlobalOptions) GetMaxUploadSize() *capacity.Capacity
func (*GlobalOptions) GetOauth2 ¶
func (m *GlobalOptions) GetOauth2() []*oauth2.Options
func (*GlobalOptions) GetSubTitle ¶
func (m *GlobalOptions) GetSubTitle() string
func (*GlobalOptions) GetTitle ¶
func (m *GlobalOptions) GetTitle() string
func (*GlobalOptions) GetUploadPath ¶
func (m *GlobalOptions) GetUploadPath() string
func (*GlobalOptions) GetWorkspace ¶
func (m *GlobalOptions) GetWorkspace() string
func (*GlobalOptions) ProtoMessage ¶
func (*GlobalOptions) ProtoMessage()
func (*GlobalOptions) Reset ¶
func (m *GlobalOptions) Reset()
func (*GlobalOptions) String ¶
func (m *GlobalOptions) String() string
func (*GlobalOptions) UnmarshalJSONPB ¶
func (x *GlobalOptions) UnmarshalJSONPB(unmarshaller *jsonpb.Unmarshaler, b []byte) error
func (*GlobalOptions) XXX_DiscardUnknown ¶
func (m *GlobalOptions) XXX_DiscardUnknown()
func (*GlobalOptions) XXX_Marshal ¶
func (m *GlobalOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GlobalOptions) XXX_Merge ¶
func (m *GlobalOptions) XXX_Merge(src proto.Message)
func (*GlobalOptions) XXX_Size ¶
func (m *GlobalOptions) XXX_Size() int
func (*GlobalOptions) XXX_Unmarshal ¶
func (m *GlobalOptions) XXX_Unmarshal(b []byte) error
type PasswordComplexity ¶
type PasswordComplexity int32
@sync-to-public:public/src/services/idas/enums.ts:PasswordComplexity
const ( PasswordComplexity_unsafe PasswordComplexity = 0 PasswordComplexity_general PasswordComplexity = 1 PasswordComplexity_safe PasswordComplexity = 2 PasswordComplexity_very_safe PasswordComplexity = 3 )
func (PasswordComplexity) EnumDescriptor ¶
func (PasswordComplexity) EnumDescriptor() ([]byte, []int)
func (PasswordComplexity) String ¶
func (x PasswordComplexity) String() string
type RateLimit ¶
type RateLimit struct { Name github_com_MicroOps_cn_fuck_wrapper.OneOrMore[string] `protobuf:"bytes,1,opt,name=name,proto3,customtype=github.com/MicroOps-cn/fuck/wrapper.OneOrMore[string]" json:"name"` Allower Limiter `protobuf:"bytes,2,opt,name=allower,proto3,customtype=Limiter" json:"-"` Limit string `protobuf:"bytes,3,opt,name=limit,proto3" json:"limit,omitempty"` Burst int32 `protobuf:"varint,4,opt,name=burst,proto3" json:"burst,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RateLimit) Descriptor ¶
func (RateLimit) MarshalJSON ¶
func (*RateLimit) ProtoMessage ¶
func (*RateLimit) ProtoMessage()
func (*RateLimit) UnmarshalJSON ¶
func (*RateLimit) UnmarshalJSONPB ¶
func (r *RateLimit) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, b []byte) error
func (*RateLimit) XXX_DiscardUnknown ¶
func (m *RateLimit) XXX_DiscardUnknown()
func (*RateLimit) XXX_Marshal ¶
func (*RateLimit) XXX_Unmarshal ¶
type RuntimeConfig ¶
type RuntimeConfig struct { Security *RuntimeSecurityConfig `protobuf:"bytes,1,opt,name=security,proto3" json:"security,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func GetRuntimeConfig ¶
func GetRuntimeConfig() *RuntimeConfig
func (*RuntimeConfig) Descriptor ¶
func (*RuntimeConfig) Descriptor() ([]byte, []int)
func (*RuntimeConfig) GetLoginSessionInactivityTime ¶
func (c *RuntimeConfig) GetLoginSessionInactivityTime() uint32
func (*RuntimeConfig) GetLoginSessionMaxTime ¶
func (c *RuntimeConfig) GetLoginSessionMaxTime() uint32
func (*RuntimeConfig) GetPasswordFailedLockConfig ¶
func (c *RuntimeConfig) GetPasswordFailedLockConfig() (failedSec, failedThreshold int64)
func (*RuntimeConfig) GetSecurity ¶
func (m *RuntimeConfig) GetSecurity() *RuntimeSecurityConfig
func (*RuntimeConfig) ProtoMessage ¶
func (*RuntimeConfig) ProtoMessage()
func (*RuntimeConfig) Reset ¶
func (m *RuntimeConfig) Reset()
func (*RuntimeConfig) String ¶
func (m *RuntimeConfig) String() string
func (*RuntimeConfig) XXX_DiscardUnknown ¶
func (m *RuntimeConfig) XXX_DiscardUnknown()
func (*RuntimeConfig) XXX_Marshal ¶
func (m *RuntimeConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RuntimeConfig) XXX_Merge ¶
func (m *RuntimeConfig) XXX_Merge(src proto.Message)
func (*RuntimeConfig) XXX_Size ¶
func (m *RuntimeConfig) XXX_Size() int
func (*RuntimeConfig) XXX_Unmarshal ¶
func (m *RuntimeConfig) XXX_Unmarshal(b []byte) error
type RuntimeSecurityConfig ¶
type RuntimeSecurityConfig struct { ForceEnableMfa bool `protobuf:"varint,1,opt,name=force_enable_mfa,json=forceEnableMfa,proto3" json:"forceEnableMfa"` PasswordComplexity PasswordComplexity `` /* 141-byte string literal not displayed */ PasswordMinLength uint32 `protobuf:"varint,3,opt,name=password_min_length,json=passwordMinLength,proto3" json:"passwordMinLength"` PasswordExpireTime uint32 `protobuf:"varint,4,opt,name=password_expire_time,json=passwordExpireTime,proto3" json:"passwordExpireTime"` PasswordFailedLockThreshold uint32 `` /* 134-byte string literal not displayed */ PasswordFailedLockDuration uint32 `` /* 131-byte string literal not displayed */ PasswordHistory uint32 `protobuf:"varint,7,opt,name=password_history,json=passwordHistory,proto3" json:"passwordHistory"` AccountInactiveLock uint32 `protobuf:"varint,8,opt,name=account_inactive_lock,json=accountInactiveLock,proto3" json:"accountInactiveLock"` LoginSessionInactivityTime uint32 `` /* 131-byte string literal not displayed */ LoginSessionMaxTime uint32 `protobuf:"varint,10,opt,name=login_session_max_time,json=loginSessionMaxTime,proto3" json:"loginSessionMaxTime"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RuntimeSecurityConfig) Descriptor ¶
func (*RuntimeSecurityConfig) Descriptor() ([]byte, []int)
func (*RuntimeSecurityConfig) GetAccountInactiveLock ¶
func (m *RuntimeSecurityConfig) GetAccountInactiveLock() uint32
func (*RuntimeSecurityConfig) GetForceEnableMfa ¶
func (m *RuntimeSecurityConfig) GetForceEnableMfa() bool
func (*RuntimeSecurityConfig) GetLoginSessionInactivityTime ¶
func (m *RuntimeSecurityConfig) GetLoginSessionInactivityTime() uint32
func (*RuntimeSecurityConfig) GetLoginSessionMaxTime ¶
func (m *RuntimeSecurityConfig) GetLoginSessionMaxTime() uint32
func (*RuntimeSecurityConfig) GetPasswordComplexity ¶
func (m *RuntimeSecurityConfig) GetPasswordComplexity() PasswordComplexity
func (*RuntimeSecurityConfig) GetPasswordExpireTime ¶
func (m *RuntimeSecurityConfig) GetPasswordExpireTime() uint32
func (*RuntimeSecurityConfig) GetPasswordFailedLockDuration ¶
func (m *RuntimeSecurityConfig) GetPasswordFailedLockDuration() uint32
func (*RuntimeSecurityConfig) GetPasswordFailedLockThreshold ¶
func (m *RuntimeSecurityConfig) GetPasswordFailedLockThreshold() uint32
func (*RuntimeSecurityConfig) GetPasswordHistory ¶
func (m *RuntimeSecurityConfig) GetPasswordHistory() uint32
func (*RuntimeSecurityConfig) GetPasswordMinLength ¶
func (m *RuntimeSecurityConfig) GetPasswordMinLength() uint32
func (*RuntimeSecurityConfig) ProtoMessage ¶
func (*RuntimeSecurityConfig) ProtoMessage()
func (*RuntimeSecurityConfig) Reset ¶
func (m *RuntimeSecurityConfig) Reset()
func (*RuntimeSecurityConfig) String ¶
func (m *RuntimeSecurityConfig) String() string
func (*RuntimeSecurityConfig) XXX_DiscardUnknown ¶
func (m *RuntimeSecurityConfig) XXX_DiscardUnknown()
func (*RuntimeSecurityConfig) XXX_Marshal ¶
func (m *RuntimeSecurityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RuntimeSecurityConfig) XXX_Merge ¶
func (m *RuntimeSecurityConfig) XXX_Merge(src proto.Message)
func (*RuntimeSecurityConfig) XXX_Size ¶
func (m *RuntimeSecurityConfig) XXX_Size() int
func (*RuntimeSecurityConfig) XXX_Unmarshal ¶
func (m *RuntimeSecurityConfig) XXX_Unmarshal(b []byte) error
type Security ¶
type Security struct { TrustIp github_com_MicroOps_cn_fuck_sets.IPNets `protobuf:"bytes,1,opt,name=trust_ip,json=trustIp,proto3,customtype=github.com/MicroOps-cn/fuck/sets.IPNets" json:"trust_ip"` RateLimit []*RateLimit `protobuf:"bytes,2,rep,name=rate_limit,json=rateLimit,proto3" json:"rate_limit,omitempty"` Secret string `protobuf:"bytes,3,opt,name=secret,proto3" json:"secret,omitempty"` //@deprecated JwtSecret string `protobuf:"bytes,4,opt,name=jwt_secret,json=jwtSecret,proto3" json:"jwt_secret,omitempty"` Jwt *github_com_MicroOps_cn_idas_pkg_utils_jwt.JWTConfig `protobuf:"bytes,5,opt,name=jwt,proto3,customtype=github.com/MicroOps-cn/idas/pkg/utils/jwt.JWTConfig" json:"jwt,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Security) Descriptor ¶
func (*Security) GetJwtSecret ¶
func (*Security) GetRateLimit ¶
func (*Security) ProtoMessage ¶
func (*Security) ProtoMessage()
func (*Security) XXX_DiscardUnknown ¶
func (m *Security) XXX_DiscardUnknown()
func (*Security) XXX_Marshal ¶
func (*Security) XXX_Unmarshal ¶
type Storage ¶
type Storage struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are valid to be assigned to Source: // *Storage_Ref // *Storage_Mysql // *Storage_Redis // *Storage_Ldap // *Storage_Sqlite Source isStorage_Source `protobuf_oneof:"source"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Storage) Descriptor ¶
func (*Storage) GetRef ¶
func (m *Storage) GetRef() *StorageRef
func (*Storage) GetStorageSource ¶
func (x *Storage) GetStorageSource() isStorage_Source
func (*Storage) ProtoMessage ¶
func (*Storage) ProtoMessage()
func (*Storage) XXX_DiscardUnknown ¶
func (m *Storage) XXX_DiscardUnknown()
func (*Storage) XXX_Marshal ¶
func (*Storage) XXX_OneofWrappers ¶
func (*Storage) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Storage) XXX_Unmarshal ¶
type StorageRef ¶
type StorageRef struct { Storage *Storage `protobuf:"bytes,1,opt,name=storage,proto3" json:"storage,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StorageRef) Descriptor ¶
func (*StorageRef) Descriptor() ([]byte, []int)
func (*StorageRef) GetName ¶
func (m *StorageRef) GetName() string
func (*StorageRef) GetPath ¶
func (m *StorageRef) GetPath() string
func (*StorageRef) GetStorage ¶
func (m *StorageRef) GetStorage() *Storage
func (*StorageRef) ProtoMessage ¶
func (*StorageRef) ProtoMessage()
func (*StorageRef) Reset ¶
func (m *StorageRef) Reset()
func (*StorageRef) String ¶
func (m *StorageRef) String() string
func (*StorageRef) UnmarshalJSONPB ¶
func (x *StorageRef) UnmarshalJSONPB(_ *jsonpb.Unmarshaler, b []byte) error
func (*StorageRef) XXX_DiscardUnknown ¶
func (m *StorageRef) XXX_DiscardUnknown()
func (*StorageRef) XXX_Marshal ¶
func (m *StorageRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StorageRef) XXX_Merge ¶
func (m *StorageRef) XXX_Merge(src proto.Message)
func (*StorageRef) XXX_Size ¶
func (m *StorageRef) XXX_Size() int
func (*StorageRef) XXX_Unmarshal ¶
func (m *StorageRef) XXX_Unmarshal(b []byte) error
type Storage_Ldap ¶
type Storage_Ldap struct {
Ldap *github_com_MicroOps_cn_idas_pkg_client_ldap.Client `` /* 130-byte string literal not displayed */
}
type Storage_Mysql ¶
type Storage_Mysql struct {
Mysql *github_com_MicroOps_cn_fuck_clients_gorm.MySQLClient `` /* 134-byte string literal not displayed */
}
type Storage_Redis ¶
type Storage_Redis struct {
Redis *github_com_MicroOps_cn_fuck_clients_redis.Client `` /* 130-byte string literal not displayed */
}
type Storage_Ref ¶
type Storage_Ref struct {
Ref *StorageRef `protobuf:"bytes,10,opt,name=ref,proto3,oneof" json:"ref,omitempty"`
}
type Storage_Sqlite ¶
type Storage_Sqlite struct {
Sqlite *github_com_MicroOps_cn_fuck_clients_gorm.SQLiteClient `` /* 137-byte string literal not displayed */
}
type Storages ¶
type Storages struct { Default *Storage `protobuf:"bytes,1,opt,name=default,proto3" json:"default,omitempty"` Session *Storage `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"` User *Storage `protobuf:"bytes,3,opt,name=user,proto3" json:"user,omitempty"` Logging *Storage `protobuf:"bytes,4,opt,name=logging,proto3" json:"logging,omitempty"` Geoip *github_com_MicroOps_cn_idas_pkg_client_geoip.Client `` /* 127-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Storages) Descriptor ¶
func (*Storages) GetDefault ¶
func (*Storages) GetLogging ¶
func (*Storages) GetSession ¶
func (*Storages) ProtoMessage ¶
func (*Storages) ProtoMessage()
func (*Storages) XXX_DiscardUnknown ¶
func (m *Storages) XXX_DiscardUnknown()
func (*Storages) XXX_Marshal ¶
func (*Storages) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.