Documentation ¶
Index ¶
- func NewHttpServer(configuration ConfigurationSet, secrets SecretsSet, access AccessSet, ...) *httpServer
- type AccessEndpoints
- type AccessService
- type AccessSet
- type ConfigurationEndpoints
- type ConfigurationService
- type ConfigurationSet
- type DashboardEndpoints
- type DashboardSet
- type Handlers
- type NotifSet
- type NotifyEndpoints
- type PermissionsBuilder
- type SecretsEndpoints
- type SecretsService
- type SecretsSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpServer ¶
func NewHttpServer(configuration ConfigurationSet, secrets SecretsSet, access AccessSet, dashboard DashboardSet, notify NotifSet, permissions PermissionsBuilder) *httpServer
Types ¶
type AccessEndpoints ¶
type AccessEndpoints interface { GenerateAccessKeyHandler(w http.ResponseWriter, r *http.Request) DeleteAccessKeysHandler(w http.ResponseWriter, r *http.Request) }
type AccessService ¶
type AccessService interface { GetAccessKeyPermissions(ctx context.Context, key string) (*permissions.AccessKeyPermissions, bool, error) GenerateAccessKey(ctx context.Context, accessKeyPerms dto.AccessKeyPermissionsDto) (dto.AccessKeyPermissionsDto, error) DeleteAccessKeys(ctx context.Context, keys []string) error }
type ConfigurationEndpoints ¶
type ConfigurationEndpoints interface { CloneConfigHandler(w http.ResponseWriter, r *http.Request) ReadConfigHandler(w http.ResponseWriter, r *http.Request) DeleteConfigHandler(w http.ResponseWriter, r *http.Request) }
type ConfigurationService ¶
type ConfigurationSet ¶
type ConfigurationSet interface { ConfigurationService ConfigurationEndpoints }
configuration
type DashboardEndpoints ¶
type DashboardEndpoints interface { HomeHandler(w http.ResponseWriter, r *http.Request) ConfigHandler(w http.ResponseWriter, r *http.Request) AccessHandler(w http.ResponseWriter, r *http.Request) CreateAccessKeyParamsHandler(w http.ResponseWriter, r *http.Request) CreateAccessKeyHandler(w http.ResponseWriter, r *http.Request) DeleteAccessKeyHandler(w http.ResponseWriter, r *http.Request) }
type Handlers ¶
type Handlers struct {
// contains filtered or unexported fields
}
func (Handlers) HealthCheckHandler ¶
func (e Handlers) HealthCheckHandler(w http.ResponseWriter, r *http.Request)
func (Handlers) ReadinessCheckHandler ¶
func (e Handlers) ReadinessCheckHandler(w http.ResponseWriter, r *http.Request)
type NotifyEndpoints ¶
type NotifyEndpoints interface {
NotifyHandler(w http.ResponseWriter, r *http.Request)
}
type PermissionsBuilder ¶
type PermissionsBuilder interface {
NewAccessKeyPermissions() *permissions.AccessKeyPermissions
}
other
type SecretsEndpoints ¶
type SecretsEndpoints interface {
UpsertSecretsHandler(w http.ResponseWriter, r *http.Request)
}
type SecretsService ¶
Click to show internal directories.
Click to hide internal directories.