Documentation ¶
Index ¶
Constants ¶
View Source
const (
GRPCMaxClientSendSize = 32 << 20
)
Variables ¶
View Source
var (
ConfigFileName = "config"
)
Functions ¶
Types ¶
type Auth ¶
type Auth struct { Provider string `mapstructure:"provider" default:"default"` Default DefaultAuth `mapstructure:"default"` OIDC auth.OIDCAuth `mapstructure:"oidc"` }
type Config ¶
type Config struct { Port int `mapstructure:"port" default:"8080"` EncryptionSecretKeyKey string `mapstructure:"encryption_secret_key"` Notifier notifiers.Config `mapstructure:"notifier"` LogLevel string `mapstructure:"log_level" default:"info"` DB store.Config `mapstructure:"db"` // Deprecated: use Auth.Default.HeaderKey instead note on the AuthenticatedUserHeaderKey AuthenticatedUserHeaderKey string `mapstructure:"authenticated_user_header_key"` AuditLogTraceIDHeaderKey string `mapstructure:"audit_log_trace_id_header_key" default:"X-Trace-Id"` Jobs Jobs `mapstructure:"jobs"` Telemetry tracing.Config `mapstructure:"telemetry"` Auth Auth `mapstructure:"auth"` }
func LoadConfig ¶
type DefaultAuth ¶
type DefaultAuth struct {
HeaderKey string `mapstructure:"header_key" default:"X-Auth-Email"`
}
type Jobs ¶
type Jobs struct { FetchResources jobs.Job `mapstructure:"fetch_resources"` RevokeExpiredGrants jobs.Job `mapstructure:"revoke_expired_grants"` ExpiringGrantNotification jobs.Job `mapstructure:"expiring_grant_notification"` RevokeGrantsByUserCriteria jobs.Job `mapstructure:"revoke_grants_by_user_criteria"` GrantDormancyCheck jobs.Job `mapstructure:"grant_dormancy_check"` // Deprecated: use ExpiringGrantNotification instead ExpiringAccessNotification jobs.Job `mapstructure:"expiring_access_notification"` // Deprecated: use RevokeExpiredGrants instead RevokeExpiredAccess jobs.Job `mapstructure:"revoke_expired_access"` }
type ServiceDeps ¶
type Services ¶
type Services struct { ResourceService *resource.Service ActivityService *activity.Service ProviderService *provider.Service PolicyService *policy.Service ApprovalService *approval.Service AppealService *appeal.Service GrantService *grant.Service }
func InitServices ¶
func InitServices(deps ServiceDeps) (*Services, error)
Click to show internal directories.
Click to hide internal directories.