core

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type Auth

type Auth struct {
	Type      string `json:"horusec_auth_type,omitempty"`
	*Keycloak `json:",inline,omitempty"`
	*LDAP     `json:",inline,omitempty"`
}

type Configuration

type Configuration struct {
	*General `json:",inline,omitempty"`
	*Auth    `json:",inline,omitempty"`
	*Manager `json:",inline,omitempty"`
}

type ConfigurationReader

type ConfigurationReader interface {
	GetConfig(context.Context) (*Configuration, error)
}

type ConfigurationWriter

type ConfigurationWriter interface {
	CreateOrUpdate(context.Context, []byte) error
}

type General

type General struct {
	EnableApplicationAdmin bool   `json:"horusec_enable_application_admin"`
	JwtSecretKey           string `json:"horusec_jwt_secret_key,omitempty"`
	ApplicationAdminData   *Admin `json:"horusec_application_admin_data,omitempty"`
}

type Keycloak

type Keycloak struct {
	BasePath          string `json:"horusec_keycloak_base_path,omitempty"`
	ClientID          string `json:"horusec_keycloak_client_id,omitempty"`
	ClientSecret      string `json:"horusec_keycloak_client_secret,omitempty"`
	Realm             string `json:"horusec_keycloak_realm,omitempty"`
	OTP               bool   `json:"horusec_keycloak_otp,omitempty"`
	*KeycloakReactApp `json:",inline,omitempty"`
}

type KeycloakReactApp

type KeycloakReactApp struct {
	ClientID string `json:"react_app_keycloak_client_id,omitempty"`
	Realm    string `json:"react_app_keycloak_realm,omitempty"`
	BasePath string `json:"react_app_keycloak_base_path,omitempty"`
}

type LDAP

type LDAP struct {
	Base               string `json:"horusec_ldap_base,omitempty"`
	Host               string `json:"horusec_ldap_host,omitempty"`
	Port               string `json:"horusec_ldap_port,omitempty"`
	UseSSL             string `json:"horusec_ldap_usessl,omitempty"`
	SkipTLS            string `json:"horusec_ldap_skip_tls,omitempty"`
	InsecureSkipVerify string `json:"horusec_ldap_insecure_skip_verify,omitempty"`
	BindDN             string `json:"horusec_ldap_binddn,omitempty"`
	BindPassword       string `json:"horusec_ldap_bindpassword,omitempty"`
	UserFilter         string `json:"horusec_ldap_userfilter,omitempty"`
	GroupFilter        string `json:"horusec_ldap_groupfilter,omitempty"`
	AdminGroup         string `json:"horusec_ldap_admin_group,omitempty"`
}

type Manager

type Manager struct {
	APIEndpoint      string `json:"react_app_horusec_endpoint_api"`
	AnalyticEndpoint string `json:"react_app_horusec_endpoint_analytic"`
	AccountEndpoint  string `json:"react_app_horusec_endpoint_account"`
	AuthEndpoint     string `json:"react_app_horusec_endpoint_auth"`
	ManagerEndpoint  string `json:"react_app_horusec_endpoint_manager"`
	ManagerPath      string `json:"react_app_horusec_manager_path"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL