Documentation
¶
Overview ¶
Package api implements the REST API defined in api/openapi.yaml on top of the generated strict server (ADR 0003).
Index ¶
- Constants
- Variables
- func Register(mux *http.ServeMux, cfg config.Config, log *slog.Logger, deps Deps)
- func WriteProblem(w http.ResponseWriter, status int, title, detail string)
- type Applier
- type ClusterAdmin
- type Deps
- type Handlers
- func (h *Handlers) BulkMonitors(ctx context.Context, req gen.BulkMonitorsRequestObject) (gen.BulkMonitorsResponseObject, error)
- func (h *Handlers) ChangeMyPassword(ctx context.Context, req gen.ChangeMyPasswordRequestObject) (gen.ChangeMyPasswordResponseObject, error)
- func (h *Handlers) CloneMonitor(ctx context.Context, req gen.CloneMonitorRequestObject) (gen.CloneMonitorResponseObject, error)
- func (h *Handlers) CreateApiToken(ctx context.Context, req gen.CreateApiTokenRequestObject) (gen.CreateApiTokenResponseObject, error)
- func (h *Handlers) CreateJoinToken(ctx context.Context, req gen.CreateJoinTokenRequestObject) (gen.CreateJoinTokenResponseObject, error)
- func (h *Handlers) CreateMaintenanceWindow(ctx context.Context, req gen.CreateMaintenanceWindowRequestObject) (gen.CreateMaintenanceWindowResponseObject, error)
- func (h *Handlers) CreateMonitor(ctx context.Context, req gen.CreateMonitorRequestObject) (gen.CreateMonitorResponseObject, error)
- func (h *Handlers) CreateNotificationChannel(ctx context.Context, req gen.CreateNotificationChannelRequestObject) (gen.CreateNotificationChannelResponseObject, error)
- func (h *Handlers) CreateStreamTicket(ctx context.Context, _ gen.CreateStreamTicketRequestObject) (gen.CreateStreamTicketResponseObject, error)
- func (h *Handlers) CreateSystemChannel(ctx context.Context, req gen.CreateSystemChannelRequestObject) (gen.CreateSystemChannelResponseObject, error)
- func (h *Handlers) CreateTenant(ctx context.Context, req gen.CreateTenantRequestObject) (gen.CreateTenantResponseObject, error)
- func (h *Handlers) CreateUser(ctx context.Context, req gen.CreateUserRequestObject) (gen.CreateUserResponseObject, error)
- func (h *Handlers) DeleteMaintenanceWindow(ctx context.Context, req gen.DeleteMaintenanceWindowRequestObject) (gen.DeleteMaintenanceWindowResponseObject, error)
- func (h *Handlers) DeleteMonitor(ctx context.Context, req gen.DeleteMonitorRequestObject) (gen.DeleteMonitorResponseObject, error)
- func (h *Handlers) DeleteNotificationChannel(ctx context.Context, req gen.DeleteNotificationChannelRequestObject) (gen.DeleteNotificationChannelResponseObject, error)
- func (h *Handlers) DeletePlan(ctx context.Context, req gen.DeletePlanRequestObject) (gen.DeletePlanResponseObject, error)
- func (h *Handlers) DeleteSystemChannel(ctx context.Context, req gen.DeleteSystemChannelRequestObject) (gen.DeleteSystemChannelResponseObject, error)
- func (h *Handlers) DeleteTenant(ctx context.Context, req gen.DeleteTenantRequestObject) (gen.DeleteTenantResponseObject, error)
- func (h *Handlers) DeleteUser(ctx context.Context, req gen.DeleteUserRequestObject) (gen.DeleteUserResponseObject, error)
- func (h *Handlers) GetHealth(context.Context, gen.GetHealthRequestObject) (gen.GetHealthResponseObject, error)
- func (h *Handlers) GetIncident(ctx context.Context, req gen.GetIncidentRequestObject) (gen.GetIncidentResponseObject, error)
- func (h *Handlers) GetMaintenanceWindow(ctx context.Context, req gen.GetMaintenanceWindowRequestObject) (gen.GetMaintenanceWindowResponseObject, error)
- func (h *Handlers) GetMe(ctx context.Context, _ gen.GetMeRequestObject) (gen.GetMeResponseObject, error)
- func (h *Handlers) GetMonitor(ctx context.Context, req gen.GetMonitorRequestObject) (gen.GetMonitorResponseObject, error)
- func (h *Handlers) GetNotificationChannel(ctx context.Context, req gen.GetNotificationChannelRequestObject) (gen.GetNotificationChannelResponseObject, error)
- func (h *Handlers) GetOwnTenant(ctx context.Context, _ gen.GetOwnTenantRequestObject) (gen.GetOwnTenantResponseObject, error)
- func (h *Handlers) GetPlan(ctx context.Context, req gen.GetPlanRequestObject) (gen.GetPlanResponseObject, error)
- func (h *Handlers) GetSystemChannel(ctx context.Context, req gen.GetSystemChannelRequestObject) (gen.GetSystemChannelResponseObject, error)
- func (h *Handlers) GetTenant(ctx context.Context, req gen.GetTenantRequestObject) (gen.GetTenantResponseObject, error)
- func (h *Handlers) GetUptime(ctx context.Context, req gen.GetUptimeRequestObject) (gen.GetUptimeResponseObject, error)
- func (h *Handlers) ListAdminAudit(ctx context.Context, req gen.ListAdminAuditRequestObject) (gen.ListAdminAuditResponseObject, error)
- func (h *Handlers) ListApiTokens(ctx context.Context, _ gen.ListApiTokensRequestObject) (gen.ListApiTokensResponseObject, error)
- func (h *Handlers) ListAudit(ctx context.Context, req gen.ListAuditRequestObject) (gen.ListAuditResponseObject, error)
- func (h *Handlers) ListClusterNodes(ctx context.Context, _ gen.ListClusterNodesRequestObject) (gen.ListClusterNodesResponseObject, error)
- func (h *Handlers) ListHeartbeats(ctx context.Context, req gen.ListHeartbeatsRequestObject) (gen.ListHeartbeatsResponseObject, error)
- func (h *Handlers) ListIncidents(ctx context.Context, req gen.ListIncidentsRequestObject) (gen.ListIncidentsResponseObject, error)
- func (h *Handlers) ListMaintenanceWindows(ctx context.Context, _ gen.ListMaintenanceWindowsRequestObject) (gen.ListMaintenanceWindowsResponseObject, error)
- func (h *Handlers) ListMonitorTypes(ctx context.Context, _ gen.ListMonitorTypesRequestObject) (gen.ListMonitorTypesResponseObject, error)
- func (h *Handlers) ListMonitors(ctx context.Context, req gen.ListMonitorsRequestObject) (gen.ListMonitorsResponseObject, error)
- func (h *Handlers) ListNotificationChannels(ctx context.Context, _ gen.ListNotificationChannelsRequestObject) (gen.ListNotificationChannelsResponseObject, error)
- func (h *Handlers) ListPlans(ctx context.Context, _ gen.ListPlansRequestObject) (gen.ListPlansResponseObject, error)
- func (h *Handlers) ListSystemAlerts(ctx context.Context, req gen.ListSystemAlertsRequestObject) (gen.ListSystemAlertsResponseObject, error)
- func (h *Handlers) ListSystemChannels(ctx context.Context, _ gen.ListSystemChannelsRequestObject) (gen.ListSystemChannelsResponseObject, error)
- func (h *Handlers) ListTenants(ctx context.Context, _ gen.ListTenantsRequestObject) (gen.ListTenantsResponseObject, error)
- func (h *Handlers) ListUsers(ctx context.Context, _ gen.ListUsersRequestObject) (gen.ListUsersResponseObject, error)
- func (h *Handlers) Login(ctx context.Context, req gen.LoginRequestObject) (gen.LoginResponseObject, error)
- func (h *Handlers) Logout(ctx context.Context, req gen.LogoutRequestObject) (gen.LogoutResponseObject, error)
- func (h *Handlers) PauseMonitor(ctx context.Context, req gen.PauseMonitorRequestObject) (gen.PauseMonitorResponseObject, error)
- func (h *Handlers) PutPlan(ctx context.Context, req gen.PutPlanRequestObject) (gen.PutPlanResponseObject, error)
- func (h *Handlers) Refresh(ctx context.Context, req gen.RefreshRequestObject) (gen.RefreshResponseObject, error)
- func (h *Handlers) RemoveClusterNode(ctx context.Context, req gen.RemoveClusterNodeRequestObject) (gen.RemoveClusterNodeResponseObject, error)
- func (h *Handlers) ResumeMonitor(ctx context.Context, req gen.ResumeMonitorRequestObject) (gen.ResumeMonitorResponseObject, error)
- func (h *Handlers) ResumeTenant(ctx context.Context, req gen.ResumeTenantRequestObject) (gen.ResumeTenantResponseObject, error)
- func (h *Handlers) RevokeApiToken(ctx context.Context, req gen.RevokeApiTokenRequestObject) (gen.RevokeApiTokenResponseObject, error)
- func (h *Handlers) Setup(ctx context.Context, req gen.SetupRequestObject) (gen.SetupResponseObject, error)
- func (h *Handlers) SuspendTenant(ctx context.Context, req gen.SuspendTenantRequestObject) (gen.SuspendTenantResponseObject, error)
- func (h *Handlers) TestMonitor(ctx context.Context, req gen.TestMonitorRequestObject) (gen.TestMonitorResponseObject, error)
- func (h *Handlers) TestNotificationChannel(ctx context.Context, req gen.TestNotificationChannelRequestObject) (gen.TestNotificationChannelResponseObject, error)
- func (h *Handlers) TestSystemChannel(ctx context.Context, req gen.TestSystemChannelRequestObject) (gen.TestSystemChannelResponseObject, error)
- func (h *Handlers) UpdateMaintenanceWindow(ctx context.Context, req gen.UpdateMaintenanceWindowRequestObject) (gen.UpdateMaintenanceWindowResponseObject, error)
- func (h *Handlers) UpdateMonitor(ctx context.Context, req gen.UpdateMonitorRequestObject) (gen.UpdateMonitorResponseObject, error)
- func (h *Handlers) UpdateNotificationChannel(ctx context.Context, req gen.UpdateNotificationChannelRequestObject) (gen.UpdateNotificationChannelResponseObject, error)
- func (h *Handlers) UpdateSystemChannel(ctx context.Context, req gen.UpdateSystemChannelRequestObject) (gen.UpdateSystemChannelResponseObject, error)
- func (h *Handlers) UpdateTenant(ctx context.Context, req gen.UpdateTenantRequestObject) (gen.UpdateTenantResponseObject, error)
- func (h *Handlers) UpdateUser(ctx context.Context, req gen.UpdateUserRequestObject) (gen.UpdateUserResponseObject, error)
- type Problem
- type Unimplemented
- func (Unimplemented) BulkMonitors(context.Context, gen.BulkMonitorsRequestObject) (gen.BulkMonitorsResponseObject, error)
- func (Unimplemented) ChangeMyPassword(context.Context, gen.ChangeMyPasswordRequestObject) (gen.ChangeMyPasswordResponseObject, error)
- func (Unimplemented) CloneMonitor(context.Context, gen.CloneMonitorRequestObject) (gen.CloneMonitorResponseObject, error)
- func (Unimplemented) CreateApiToken(context.Context, gen.CreateApiTokenRequestObject) (gen.CreateApiTokenResponseObject, error)
- func (Unimplemented) CreateJoinToken(context.Context, gen.CreateJoinTokenRequestObject) (gen.CreateJoinTokenResponseObject, error)
- func (Unimplemented) CreateMaintenanceWindow(context.Context, gen.CreateMaintenanceWindowRequestObject) (gen.CreateMaintenanceWindowResponseObject, error)
- func (Unimplemented) CreateMonitor(context.Context, gen.CreateMonitorRequestObject) (gen.CreateMonitorResponseObject, error)
- func (Unimplemented) CreateNotificationChannel(context.Context, gen.CreateNotificationChannelRequestObject) (gen.CreateNotificationChannelResponseObject, error)
- func (Unimplemented) CreateStreamTicket(context.Context, gen.CreateStreamTicketRequestObject) (gen.CreateStreamTicketResponseObject, error)
- func (Unimplemented) CreateSystemChannel(context.Context, gen.CreateSystemChannelRequestObject) (gen.CreateSystemChannelResponseObject, error)
- func (Unimplemented) CreateTenant(context.Context, gen.CreateTenantRequestObject) (gen.CreateTenantResponseObject, error)
- func (Unimplemented) CreateUser(context.Context, gen.CreateUserRequestObject) (gen.CreateUserResponseObject, error)
- func (Unimplemented) DeleteMaintenanceWindow(context.Context, gen.DeleteMaintenanceWindowRequestObject) (gen.DeleteMaintenanceWindowResponseObject, error)
- func (Unimplemented) DeleteMonitor(context.Context, gen.DeleteMonitorRequestObject) (gen.DeleteMonitorResponseObject, error)
- func (Unimplemented) DeleteNotificationChannel(context.Context, gen.DeleteNotificationChannelRequestObject) (gen.DeleteNotificationChannelResponseObject, error)
- func (Unimplemented) DeletePlan(context.Context, gen.DeletePlanRequestObject) (gen.DeletePlanResponseObject, error)
- func (Unimplemented) DeleteSystemChannel(context.Context, gen.DeleteSystemChannelRequestObject) (gen.DeleteSystemChannelResponseObject, error)
- func (Unimplemented) DeleteTenant(context.Context, gen.DeleteTenantRequestObject) (gen.DeleteTenantResponseObject, error)
- func (Unimplemented) DeleteUser(context.Context, gen.DeleteUserRequestObject) (gen.DeleteUserResponseObject, error)
- func (Unimplemented) GetHealth(context.Context, gen.GetHealthRequestObject) (gen.GetHealthResponseObject, error)
- func (Unimplemented) GetIncident(context.Context, gen.GetIncidentRequestObject) (gen.GetIncidentResponseObject, error)
- func (Unimplemented) GetMaintenanceWindow(context.Context, gen.GetMaintenanceWindowRequestObject) (gen.GetMaintenanceWindowResponseObject, error)
- func (Unimplemented) GetMe(context.Context, gen.GetMeRequestObject) (gen.GetMeResponseObject, error)
- func (Unimplemented) GetMonitor(context.Context, gen.GetMonitorRequestObject) (gen.GetMonitorResponseObject, error)
- func (Unimplemented) GetNotificationChannel(context.Context, gen.GetNotificationChannelRequestObject) (gen.GetNotificationChannelResponseObject, error)
- func (Unimplemented) GetOwnTenant(context.Context, gen.GetOwnTenantRequestObject) (gen.GetOwnTenantResponseObject, error)
- func (Unimplemented) GetPlan(context.Context, gen.GetPlanRequestObject) (gen.GetPlanResponseObject, error)
- func (Unimplemented) GetSystemChannel(context.Context, gen.GetSystemChannelRequestObject) (gen.GetSystemChannelResponseObject, error)
- func (Unimplemented) GetTenant(context.Context, gen.GetTenantRequestObject) (gen.GetTenantResponseObject, error)
- func (Unimplemented) GetUptime(context.Context, gen.GetUptimeRequestObject) (gen.GetUptimeResponseObject, error)
- func (Unimplemented) ListAdminAudit(context.Context, gen.ListAdminAuditRequestObject) (gen.ListAdminAuditResponseObject, error)
- func (Unimplemented) ListApiTokens(context.Context, gen.ListApiTokensRequestObject) (gen.ListApiTokensResponseObject, error)
- func (Unimplemented) ListAudit(context.Context, gen.ListAuditRequestObject) (gen.ListAuditResponseObject, error)
- func (Unimplemented) ListClusterNodes(context.Context, gen.ListClusterNodesRequestObject) (gen.ListClusterNodesResponseObject, error)
- func (Unimplemented) ListHeartbeats(context.Context, gen.ListHeartbeatsRequestObject) (gen.ListHeartbeatsResponseObject, error)
- func (Unimplemented) ListIncidents(context.Context, gen.ListIncidentsRequestObject) (gen.ListIncidentsResponseObject, error)
- func (Unimplemented) ListMaintenanceWindows(context.Context, gen.ListMaintenanceWindowsRequestObject) (gen.ListMaintenanceWindowsResponseObject, error)
- func (Unimplemented) ListMonitorTypes(context.Context, gen.ListMonitorTypesRequestObject) (gen.ListMonitorTypesResponseObject, error)
- func (Unimplemented) ListMonitors(context.Context, gen.ListMonitorsRequestObject) (gen.ListMonitorsResponseObject, error)
- func (Unimplemented) ListNotificationChannels(context.Context, gen.ListNotificationChannelsRequestObject) (gen.ListNotificationChannelsResponseObject, error)
- func (Unimplemented) ListPlans(context.Context, gen.ListPlansRequestObject) (gen.ListPlansResponseObject, error)
- func (Unimplemented) ListSystemAlerts(context.Context, gen.ListSystemAlertsRequestObject) (gen.ListSystemAlertsResponseObject, error)
- func (Unimplemented) ListSystemChannels(context.Context, gen.ListSystemChannelsRequestObject) (gen.ListSystemChannelsResponseObject, error)
- func (Unimplemented) ListTenants(context.Context, gen.ListTenantsRequestObject) (gen.ListTenantsResponseObject, error)
- func (Unimplemented) ListUsers(context.Context, gen.ListUsersRequestObject) (gen.ListUsersResponseObject, error)
- func (Unimplemented) Login(context.Context, gen.LoginRequestObject) (gen.LoginResponseObject, error)
- func (Unimplemented) Logout(context.Context, gen.LogoutRequestObject) (gen.LogoutResponseObject, error)
- func (Unimplemented) PauseMonitor(context.Context, gen.PauseMonitorRequestObject) (gen.PauseMonitorResponseObject, error)
- func (Unimplemented) PutPlan(context.Context, gen.PutPlanRequestObject) (gen.PutPlanResponseObject, error)
- func (Unimplemented) Refresh(context.Context, gen.RefreshRequestObject) (gen.RefreshResponseObject, error)
- func (Unimplemented) RemoveClusterNode(context.Context, gen.RemoveClusterNodeRequestObject) (gen.RemoveClusterNodeResponseObject, error)
- func (Unimplemented) ResumeMonitor(context.Context, gen.ResumeMonitorRequestObject) (gen.ResumeMonitorResponseObject, error)
- func (Unimplemented) ResumeTenant(context.Context, gen.ResumeTenantRequestObject) (gen.ResumeTenantResponseObject, error)
- func (Unimplemented) RevokeApiToken(context.Context, gen.RevokeApiTokenRequestObject) (gen.RevokeApiTokenResponseObject, error)
- func (Unimplemented) Setup(context.Context, gen.SetupRequestObject) (gen.SetupResponseObject, error)
- func (Unimplemented) SuspendTenant(context.Context, gen.SuspendTenantRequestObject) (gen.SuspendTenantResponseObject, error)
- func (Unimplemented) TestMonitor(context.Context, gen.TestMonitorRequestObject) (gen.TestMonitorResponseObject, error)
- func (Unimplemented) TestNotificationChannel(context.Context, gen.TestNotificationChannelRequestObject) (gen.TestNotificationChannelResponseObject, error)
- func (Unimplemented) TestSystemChannel(context.Context, gen.TestSystemChannelRequestObject) (gen.TestSystemChannelResponseObject, error)
- func (Unimplemented) UpdateMaintenanceWindow(context.Context, gen.UpdateMaintenanceWindowRequestObject) (gen.UpdateMaintenanceWindowResponseObject, error)
- func (Unimplemented) UpdateMonitor(context.Context, gen.UpdateMonitorRequestObject) (gen.UpdateMonitorResponseObject, error)
- func (Unimplemented) UpdateNotificationChannel(context.Context, gen.UpdateNotificationChannelRequestObject) (gen.UpdateNotificationChannelResponseObject, error)
- func (Unimplemented) UpdateSystemChannel(context.Context, gen.UpdateSystemChannelRequestObject) (gen.UpdateSystemChannelResponseObject, error)
- func (Unimplemented) UpdateTenant(context.Context, gen.UpdateTenantRequestObject) (gen.UpdateTenantResponseObject, error)
- func (Unimplemented) UpdateUser(context.Context, gen.UpdateUserRequestObject) (gen.UpdateUserResponseObject, error)
Constants ¶
const BaseURL = "/api/v1"
BaseURL is the path prefix of all REST endpoints.
Variables ¶
var ErrNotImplemented = errors.New("not implemented")
ErrNotImplemented marks operations that exist in the contract but not yet in code.
Functions ¶
func Register ¶
Register mounts all API operations on mux under BaseURL. It panics if the embedded OpenAPI spec cannot be read, which is a build defect.
func WriteProblem ¶
func WriteProblem(w http.ResponseWriter, status int, title, detail string)
WriteProblem writes an RFC 9457 problem details response.
Types ¶
type ClusterAdmin ¶
type ClusterAdmin interface {
CreateJoinToken(ctx context.Context, role pki.Role, tenantID string, ttl time.Duration) (string, time.Time, error)
Remove(ctx context.Context, nodeID, requestedBy string) (membership.Removal, error)
Members() ([]cluster.Member, uint64, error)
Leader() (address, id string)
ID() string
}
ClusterAdmin is what the cluster administration endpoints need from the cluster host. cmd/pulsequorum fills it from the host's authority, membership manager and Raft node.
type Deps ¶
type Deps struct {
State store.State
Metrics store.Metrics
Cluster Applier
// ClusterAdmin serves the cluster administration (FA-CLU-08); nil answers 503.
ClusterAdmin ClusterAdmin
// Replication reports the state of the heartbeat replication to the other
// voters for the cluster listing (FA-REP-05); nil omits the lag.
Replication interface {
Status() []replication.PeerStatus
}
// ClockOffsets returns the fresh clock offsets of the peers in
// milliseconds, by node ID (ADR 0020); nil omits them.
ClockOffsets func() map[string]int64
// SSRFProtectionByNode returns whether SSRF protection is on for each node
// that answered recently, including this node (ADR 0030). Nil means unknown.
SSRFProtectionByNode func() map[string]bool
Registry *checker.Registry
// SSRFPolicy checks the destination hosts of saved monitors; nil when
// SSRF protection is off (ADR 0030).
SSRFPolicy checker.AddressPolicy
// CheckEnv runs on-demand checks (POST /monitors/{id}/test).
CheckEnv *checker.Env
NodeID string
// Authenticator verifies bearer credentials; nil denies every protected
// operation (auth.DenyAll).
Authenticator auth.Authenticator
// Now is the clock for uptime ranges; nil = time.Now.
Now func() time.Time
// Keyring encrypts and decrypts channel secrets (ADR 0011, 0014).
Keyring alert.Keyring
// Alerts validates channels and sends test messages.
Alerts *alert.Sender
// Local is the local authentication (AUTH_MODE=local); nil otherwise.
Local *auth.Local
// Stream and Tickets serve the live WebSocket stream; nil disables it.
Stream *stream.Hub
Tickets *auth.Tickets
// StreamClosing is closed when the server shuts down; open streams end then.
StreamClosing <-chan struct{}
// Degraded reports the degraded state of this voter (ADR 0024) for the
// health endpoint; nil omits it.
Degraded interface{ State() degraded.State }
}
Deps are the services the handlers use. Fields may be nil in tests that do not exercise the corresponding endpoints.
type Handlers ¶
type Handlers struct {
Unimplemented
// contains filtered or unexported fields
}
Handlers implements gen.StrictServerInterface.
func (*Handlers) BulkMonitors ¶
func (h *Handlers) BulkMonitors(ctx context.Context, req gen.BulkMonitorsRequestObject) (gen.BulkMonitorsResponseObject, error)
BulkMonitors applies one action to several monitors of the caller's tenant.
func (*Handlers) ChangeMyPassword ¶
func (h *Handlers) ChangeMyPassword(ctx context.Context, req gen.ChangeMyPasswordRequestObject) (gen.ChangeMyPasswordResponseObject, error)
ChangeMyPassword verifies the current password, stores the new one, ends all other sessions and starts a new one for this client.
func (*Handlers) CloneMonitor ¶
func (h *Handlers) CloneMonitor(ctx context.Context, req gen.CloneMonitorRequestObject) (gen.CloneMonitorResponseObject, error)
CloneMonitor copies a monitor; the copy starts paused (FA-MON-05).
func (*Handlers) CreateApiToken ¶
func (h *Handlers) CreateApiToken(ctx context.Context, req gen.CreateApiTokenRequestObject) (gen.CreateApiTokenResponseObject, error)
CreateApiToken creates an API token of the caller's tenant and returns its secret once (ADR 0031, section 1). The request has no Idempotency-Key: a retry would get the stored result of the first attempt, whose secret is lost, so every request creates a new token.
func (*Handlers) CreateJoinToken ¶
func (h *Handlers) CreateJoinToken(ctx context.Context, req gen.CreateJoinTokenRequestObject) (gen.CreateJoinTokenResponseObject, error)
CreateJoinToken issues a one-time token. The secret is returned once and never logged; the response must not be cached.
func (*Handlers) CreateMaintenanceWindow ¶
func (h *Handlers) CreateMaintenanceWindow(ctx context.Context, req gen.CreateMaintenanceWindowRequestObject) (gen.CreateMaintenanceWindowResponseObject, error)
CreateMaintenanceWindow validates the input and creates the window through Raft.
func (*Handlers) CreateMonitor ¶
func (h *Handlers) CreateMonitor(ctx context.Context, req gen.CreateMonitorRequestObject) (gen.CreateMonitorResponseObject, error)
CreateMonitor validates the input and creates the monitor through Raft.
func (*Handlers) CreateNotificationChannel ¶
func (h *Handlers) CreateNotificationChannel(ctx context.Context, req gen.CreateNotificationChannelRequestObject) (gen.CreateNotificationChannelResponseObject, error)
CreateNotificationChannel validates the input, encrypts the secrets and creates the channel through Raft.
func (*Handlers) CreateStreamTicket ¶
func (h *Handlers) CreateStreamTicket(ctx context.Context, _ gen.CreateStreamTicketRequestObject) (gen.CreateStreamTicketResponseObject, error)
CreateStreamTicket issues a ticket for the caller (FA-AUTH-11).
func (*Handlers) CreateSystemChannel ¶
func (h *Handlers) CreateSystemChannel(ctx context.Context, req gen.CreateSystemChannelRequestObject) (gen.CreateSystemChannelResponseObject, error)
CreateSystemChannel creates a system channel. The event system is included server-side.
func (*Handlers) CreateTenant ¶
func (h *Handlers) CreateTenant(ctx context.Context, req gen.CreateTenantRequestObject) (gen.CreateTenantResponseObject, error)
CreateTenant creates a tenant. Without an ID the server generates a UUID.
func (*Handlers) CreateUser ¶
func (h *Handlers) CreateUser(ctx context.Context, req gen.CreateUserRequestObject) (gen.CreateUserResponseObject, error)
CreateUser creates a local user. The password is hashed here; the FSM only accepts Argon2id hashes.
func (*Handlers) DeleteMaintenanceWindow ¶
func (h *Handlers) DeleteMaintenanceWindow(ctx context.Context, req gen.DeleteMaintenanceWindowRequestObject) (gen.DeleteMaintenanceWindowResponseObject, error)
DeleteMaintenanceWindow removes the window. Alerts and uptime accounting return to normal from the next evaluation on.
func (*Handlers) DeleteMonitor ¶
func (h *Handlers) DeleteMonitor(ctx context.Context, req gen.DeleteMonitorRequestObject) (gen.DeleteMonitorResponseObject, error)
DeleteMonitor removes the monitor; its measurement data expires with the retention (FA-MON-07).
func (*Handlers) DeleteNotificationChannel ¶
func (h *Handlers) DeleteNotificationChannel(ctx context.Context, req gen.DeleteNotificationChannelRequestObject) (gen.DeleteNotificationChannelResponseObject, error)
DeleteNotificationChannel removes the channel. Its monitor links and pending deliveries are removed with it by the schema.
func (*Handlers) DeletePlan ¶
func (h *Handlers) DeletePlan(ctx context.Context, req gen.DeletePlanRequestObject) (gen.DeletePlanResponseObject, error)
DeletePlan deletes a plan that no tenant uses. The plans default and system cannot be deleted.
func (*Handlers) DeleteSystemChannel ¶
func (h *Handlers) DeleteSystemChannel(ctx context.Context, req gen.DeleteSystemChannelRequestObject) (gen.DeleteSystemChannelResponseObject, error)
DeleteSystemChannel removes a system channel.
func (*Handlers) DeleteTenant ¶
func (h *Handlers) DeleteTenant(ctx context.Context, req gen.DeleteTenantRequestObject) (gen.DeleteTenantResponseObject, error)
DeleteTenant deletes a suspended tenant with all its data (ADR 0029). The caller confirms the tenant name. The default and system tenants cannot be deleted.
func (*Handlers) DeleteUser ¶
func (h *Handlers) DeleteUser(ctx context.Context, req gen.DeleteUserRequestObject) (gen.DeleteUserResponseObject, error)
DeleteUser removes a user and, by cascade, its sessions.
func (*Handlers) GetHealth ¶
func (h *Handlers) GetHealth(context.Context, gen.GetHealthRequestObject) (gen.GetHealthResponseObject, error)
GetHealth returns the public node status.
func (*Handlers) GetIncident ¶
func (h *Handlers) GetIncident(ctx context.Context, req gen.GetIncidentRequestObject) (gen.GetIncidentResponseObject, error)
GetIncident returns one incident of the caller's tenant.
func (*Handlers) GetMaintenanceWindow ¶
func (h *Handlers) GetMaintenanceWindow(ctx context.Context, req gen.GetMaintenanceWindowRequestObject) (gen.GetMaintenanceWindowResponseObject, error)
GetMaintenanceWindow returns one window of the caller's tenant.
func (*Handlers) GetMe ¶
func (h *Handlers) GetMe(ctx context.Context, _ gen.GetMeRequestObject) (gen.GetMeResponseObject, error)
GetMe returns the caller.
func (*Handlers) GetMonitor ¶
func (h *Handlers) GetMonitor(ctx context.Context, req gen.GetMonitorRequestObject) (gen.GetMonitorResponseObject, error)
GetMonitor returns one monitor.
func (*Handlers) GetNotificationChannel ¶
func (h *Handlers) GetNotificationChannel(ctx context.Context, req gen.GetNotificationChannelRequestObject) (gen.GetNotificationChannelResponseObject, error)
GetNotificationChannel returns one channel of the caller's tenant.
func (*Handlers) GetOwnTenant ¶
func (h *Handlers) GetOwnTenant(ctx context.Context, _ gen.GetOwnTenantRequestObject) (gen.GetOwnTenantResponseObject, error)
GetOwnTenant returns the caller's tenant with its effective limits and usage. The tenant comes from the token only (FA-TEN-02); the organization binding, the overrides and the source are not shown.
func (*Handlers) GetPlan ¶
func (h *Handlers) GetPlan(ctx context.Context, req gen.GetPlanRequestObject) (gen.GetPlanResponseObject, error)
GetPlan returns one plan. The system plan is not found.
func (*Handlers) GetSystemChannel ¶
func (h *Handlers) GetSystemChannel(ctx context.Context, req gen.GetSystemChannelRequestObject) (gen.GetSystemChannelResponseObject, error)
GetSystemChannel returns one system channel. Channels of tenants are not found.
func (*Handlers) GetTenant ¶
func (h *Handlers) GetTenant(ctx context.Context, req gen.GetTenantRequestObject) (gen.GetTenantResponseObject, error)
GetTenant returns one tenant. The system tenant is not found.
func (*Handlers) GetUptime ¶
func (h *Handlers) GetUptime(ctx context.Context, req gen.GetUptimeRequestObject) (gen.GetUptimeResponseObject, error)
GetUptime returns the uptime of a monitor over a range, for the consensus or one node (FA-UPT-01).
func (*Handlers) ListAdminAudit ¶
func (h *Handlers) ListAdminAudit(ctx context.Context, req gen.ListAdminAuditRequestObject) (gen.ListAdminAuditResponseObject, error)
ListAdminAudit returns the audit log of all tenants, including the platform actions of the system tenant, or of the tenant named by the filter.
func (*Handlers) ListApiTokens ¶
func (h *Handlers) ListApiTokens(ctx context.Context, _ gen.ListApiTokensRequestObject) (gen.ListApiTokensResponseObject, error)
ListApiTokens returns the API tokens of the caller's tenant, newest first.
func (*Handlers) ListAudit ¶
func (h *Handlers) ListAudit(ctx context.Context, req gen.ListAuditRequestObject) (gen.ListAuditResponseObject, error)
ListAudit returns the audit log of the caller's tenant. API tokens with the role tenant-admin may read it (ADR 0031).
func (*Handlers) ListClusterNodes ¶
func (h *Handlers) ListClusterNodes(ctx context.Context, _ gen.ListClusterNodesRequestObject) (gen.ListClusterNodesResponseObject, error)
ListClusterNodes returns the Raft configuration with quorum warnings (FA-CLU-11).
func (*Handlers) ListHeartbeats ¶
func (h *Handlers) ListHeartbeats(ctx context.Context, req gen.ListHeartbeatsRequestObject) (gen.ListHeartbeatsResponseObject, error)
ListHeartbeats returns raw heartbeats of a monitor, oldest first.
func (*Handlers) ListIncidents ¶
func (h *Handlers) ListIncidents(ctx context.Context, req gen.ListIncidentsRequestObject) (gen.ListIncidentsResponseObject, error)
ListIncidents returns the caller's incidents, newest first (FA-INC-02).
func (*Handlers) ListMaintenanceWindows ¶
func (h *Handlers) ListMaintenanceWindows(ctx context.Context, _ gen.ListMaintenanceWindowsRequestObject) (gen.ListMaintenanceWindowsResponseObject, error)
ListMaintenanceWindows returns the maintenance windows of the caller's tenant.
func (*Handlers) ListMonitorTypes ¶
func (h *Handlers) ListMonitorTypes(ctx context.Context, _ gen.ListMonitorTypesRequestObject) (gen.ListMonitorTypesResponseObject, error)
ListMonitorTypes lists the checker plugins with their JSON Schema (FA-API-06).
func (*Handlers) ListMonitors ¶
func (h *Handlers) ListMonitors(ctx context.Context, req gen.ListMonitorsRequestObject) (gen.ListMonitorsResponseObject, error)
ListMonitors returns a page of the caller's monitors.
func (*Handlers) ListNotificationChannels ¶
func (h *Handlers) ListNotificationChannels(ctx context.Context, _ gen.ListNotificationChannelsRequestObject) (gen.ListNotificationChannelsResponseObject, error)
ListNotificationChannels returns the channels of the caller's tenant.
func (*Handlers) ListPlans ¶
func (h *Handlers) ListPlans(ctx context.Context, _ gen.ListPlansRequestObject) (gen.ListPlansResponseObject, error)
ListPlans returns the plans with the number of tenants on each.
func (*Handlers) ListSystemAlerts ¶
func (h *Handlers) ListSystemAlerts(ctx context.Context, req gen.ListSystemAlertsRequestObject) (gen.ListSystemAlertsResponseObject, error)
ListSystemAlerts returns the replicated state of the system alerts (FA-OBS-01, ADR 0025). Platform admins only. The query active=true (default) returns only the alerts that are active now.
func (*Handlers) ListSystemChannels ¶
func (h *Handlers) ListSystemChannels(ctx context.Context, _ gen.ListSystemChannelsRequestObject) (gen.ListSystemChannelsResponseObject, error)
ListSystemChannels returns the system channels, secrets masked.
func (*Handlers) ListTenants ¶
func (h *Handlers) ListTenants(ctx context.Context, _ gen.ListTenantsRequestObject) (gen.ListTenantsResponseObject, error)
ListTenants returns the tenants with plan, limits and usage, the system tenant hidden.
func (*Handlers) ListUsers ¶
func (h *Handlers) ListUsers(ctx context.Context, _ gen.ListUsersRequestObject) (gen.ListUsersResponseObject, error)
ListUsers returns the users of the caller's tenant (admins only).
func (*Handlers) Login ¶
func (h *Handlers) Login(ctx context.Context, req gen.LoginRequestObject) (gen.LoginResponseObject, error)
Login checks the credentials (throttled per account and IP, FA-AUTH-04).
func (*Handlers) Logout ¶
func (h *Handlers) Logout(ctx context.Context, req gen.LogoutRequestObject) (gen.LogoutResponseObject, error)
Logout revokes the token family and clears the cookie.
func (*Handlers) PauseMonitor ¶
func (h *Handlers) PauseMonitor(ctx context.Context, req gen.PauseMonitorRequestObject) (gen.PauseMonitorResponseObject, error)
PauseMonitor stops checks of a monitor (FA-MON-04).
func (*Handlers) PutPlan ¶
func (h *Handlers) PutPlan(ctx context.Context, req gen.PutPlanRequestObject) (gen.PutPlanResponseObject, error)
PutPlan creates or replaces a plan. A lowered limit keeps the stock of the tenants on the plan; only new objects and shorter intervals are rejected.
func (*Handlers) Refresh ¶
func (h *Handlers) Refresh(ctx context.Context, req gen.RefreshRequestObject) (gen.RefreshResponseObject, error)
Refresh rotates the refresh cookie (FA-AUTH-03). The custom header guards against cross-site requests in addition to SameSite=Strict.
func (*Handlers) RemoveClusterNode ¶
func (h *Handlers) RemoveClusterNode(ctx context.Context, req gen.RemoveClusterNodeRequestObject) (gen.RemoveClusterNodeResponseObject, error)
RemoveClusterNode takes a node out of the cluster. Any voter accepts the request; a follower forwards it to the leader, which does the work. The leader itself and the last voter cannot be removed. 503 asks the caller to retry when no leader can be reached.
func (*Handlers) ResumeMonitor ¶
func (h *Handlers) ResumeMonitor(ctx context.Context, req gen.ResumeMonitorRequestObject) (gen.ResumeMonitorResponseObject, error)
ResumeMonitor restarts checks of a paused monitor.
func (*Handlers) ResumeTenant ¶
func (h *Handlers) ResumeTenant(ctx context.Context, req gen.ResumeTenantRequestObject) (gen.ResumeTenantResponseObject, error)
ResumeTenant lifts the suspension of a tenant.
func (*Handlers) RevokeApiToken ¶
func (h *Handlers) RevokeApiToken(ctx context.Context, req gen.RevokeApiTokenRequestObject) (gen.RevokeApiTokenResponseObject, error)
RevokeApiToken deletes an API token of the caller's tenant. Another tenant's token is not found. Its audit entries stay.
func (*Handlers) Setup ¶
func (h *Handlers) Setup(ctx context.Context, req gen.SetupRequestObject) (gen.SetupResponseObject, error)
Setup creates the first platform admin with the one-time token (FA-AUTH-01).
func (*Handlers) SuspendTenant ¶
func (h *Handlers) SuspendTenant(ctx context.Context, req gen.SuspendTenantRequestObject) (gen.SuspendTenantResponseObject, error)
SuspendTenant suspends a tenant (ADR 0029). Its users are rejected, its sessions revoked, its checks and alerts stop; the data is kept.
func (*Handlers) TestMonitor ¶
func (h *Handlers) TestMonitor(ctx context.Context, req gen.TestMonitorRequestObject) (gen.TestMonitorResponseObject, error)
TestMonitor runs the check once on this node without storing the result.
func (*Handlers) TestNotificationChannel ¶
func (h *Handlers) TestNotificationChannel(ctx context.Context, req gen.TestNotificationChannelRequestObject) (gen.TestNotificationChannelResponseObject, error)
TestNotificationChannel sends a test message synchronously (FA-ALR-08). It bypasses the outbox and does not change the channel state.
func (*Handlers) TestSystemChannel ¶
func (h *Handlers) TestSystemChannel(ctx context.Context, req gen.TestSystemChannelRequestObject) (gen.TestSystemChannelResponseObject, error)
TestSystemChannel sends a test system alert to a system channel synchronously.
func (*Handlers) UpdateMaintenanceWindow ¶
func (h *Handlers) UpdateMaintenanceWindow(ctx context.Context, req gen.UpdateMaintenanceWindowRequestObject) (gen.UpdateMaintenanceWindowResponseObject, error)
UpdateMaintenanceWindow replaces the window's settings. The write is conditional on the revision that was read just before (ErrConflict otherwise).
func (*Handlers) UpdateMonitor ¶
func (h *Handlers) UpdateMonitor(ctx context.Context, req gen.UpdateMonitorRequestObject) (gen.UpdateMonitorResponseObject, error)
UpdateMonitor replaces the monitor's configuration.
func (*Handlers) UpdateNotificationChannel ¶
func (h *Handlers) UpdateNotificationChannel(ctx context.Context, req gen.UpdateNotificationChannelRequestObject) (gen.UpdateNotificationChannelResponseObject, error)
UpdateNotificationChannel replaces the channel's settings. An omitted URL or a masked value keeps the stored secret (channelDocument).
func (*Handlers) UpdateSystemChannel ¶
func (h *Handlers) UpdateSystemChannel(ctx context.Context, req gen.UpdateSystemChannelRequestObject) (gen.UpdateSystemChannelResponseObject, error)
UpdateSystemChannel replaces the settings of a system channel.
func (*Handlers) UpdateTenant ¶
func (h *Handlers) UpdateTenant(ctx context.Context, req gen.UpdateTenantRequestObject) (gen.UpdateTenantResponseObject, error)
UpdateTenant changes the set fields of a tenant. Omitted fields stay as they are; limits replace all overrides.
func (*Handlers) UpdateUser ¶
func (h *Handlers) UpdateUser(ctx context.Context, req gen.UpdateUserRequestObject) (gen.UpdateUserResponseObject, error)
UpdateUser changes display name, role, disabled flag or (admin reset) the password. Unchanged fields keep their current values. A password change or disabling ends the user's sessions in the FSM.
type Problem ¶
type Problem struct {
Status int
Title string
Detail string
Fields []checker.FieldError
RetryAfter int // seconds; 0 = no header
}
Problem is an error that is sent as RFC 9457 problem details.
type Unimplemented ¶
type Unimplemented struct{}
Unimplemented answers every operation with 501 Not Implemented. Handlers embeds it, so an operation goes live once Handlers defines the method.
func (Unimplemented) BulkMonitors ¶
func (Unimplemented) BulkMonitors(context.Context, gen.BulkMonitorsRequestObject) (gen.BulkMonitorsResponseObject, error)
BulkMonitors is not implemented yet.
func (Unimplemented) ChangeMyPassword ¶
func (Unimplemented) ChangeMyPassword(context.Context, gen.ChangeMyPasswordRequestObject) (gen.ChangeMyPasswordResponseObject, error)
ChangeMyPassword is not implemented yet.
func (Unimplemented) CloneMonitor ¶
func (Unimplemented) CloneMonitor(context.Context, gen.CloneMonitorRequestObject) (gen.CloneMonitorResponseObject, error)
CloneMonitor is not implemented yet.
func (Unimplemented) CreateApiToken ¶
func (Unimplemented) CreateApiToken(context.Context, gen.CreateApiTokenRequestObject) (gen.CreateApiTokenResponseObject, error)
CreateApiToken is not implemented yet.
func (Unimplemented) CreateJoinToken ¶
func (Unimplemented) CreateJoinToken(context.Context, gen.CreateJoinTokenRequestObject) (gen.CreateJoinTokenResponseObject, error)
CreateJoinToken is not implemented yet.
func (Unimplemented) CreateMaintenanceWindow ¶
func (Unimplemented) CreateMaintenanceWindow(context.Context, gen.CreateMaintenanceWindowRequestObject) (gen.CreateMaintenanceWindowResponseObject, error)
CreateMaintenanceWindow is not implemented yet.
func (Unimplemented) CreateMonitor ¶
func (Unimplemented) CreateMonitor(context.Context, gen.CreateMonitorRequestObject) (gen.CreateMonitorResponseObject, error)
CreateMonitor is not implemented yet.
func (Unimplemented) CreateNotificationChannel ¶
func (Unimplemented) CreateNotificationChannel(context.Context, gen.CreateNotificationChannelRequestObject) (gen.CreateNotificationChannelResponseObject, error)
CreateNotificationChannel is not implemented yet.
func (Unimplemented) CreateStreamTicket ¶
func (Unimplemented) CreateStreamTicket(context.Context, gen.CreateStreamTicketRequestObject) (gen.CreateStreamTicketResponseObject, error)
CreateStreamTicket is not implemented yet.
func (Unimplemented) CreateSystemChannel ¶
func (Unimplemented) CreateSystemChannel(context.Context, gen.CreateSystemChannelRequestObject) (gen.CreateSystemChannelResponseObject, error)
CreateSystemChannel is not implemented yet.
func (Unimplemented) CreateTenant ¶
func (Unimplemented) CreateTenant(context.Context, gen.CreateTenantRequestObject) (gen.CreateTenantResponseObject, error)
CreateTenant is not implemented yet.
func (Unimplemented) CreateUser ¶
func (Unimplemented) CreateUser(context.Context, gen.CreateUserRequestObject) (gen.CreateUserResponseObject, error)
CreateUser is not implemented yet.
func (Unimplemented) DeleteMaintenanceWindow ¶
func (Unimplemented) DeleteMaintenanceWindow(context.Context, gen.DeleteMaintenanceWindowRequestObject) (gen.DeleteMaintenanceWindowResponseObject, error)
DeleteMaintenanceWindow is not implemented yet.
func (Unimplemented) DeleteMonitor ¶
func (Unimplemented) DeleteMonitor(context.Context, gen.DeleteMonitorRequestObject) (gen.DeleteMonitorResponseObject, error)
DeleteMonitor is not implemented yet.
func (Unimplemented) DeleteNotificationChannel ¶
func (Unimplemented) DeleteNotificationChannel(context.Context, gen.DeleteNotificationChannelRequestObject) (gen.DeleteNotificationChannelResponseObject, error)
DeleteNotificationChannel is not implemented yet.
func (Unimplemented) DeletePlan ¶
func (Unimplemented) DeletePlan(context.Context, gen.DeletePlanRequestObject) (gen.DeletePlanResponseObject, error)
DeletePlan is not implemented yet.
func (Unimplemented) DeleteSystemChannel ¶
func (Unimplemented) DeleteSystemChannel(context.Context, gen.DeleteSystemChannelRequestObject) (gen.DeleteSystemChannelResponseObject, error)
DeleteSystemChannel is not implemented yet.
func (Unimplemented) DeleteTenant ¶
func (Unimplemented) DeleteTenant(context.Context, gen.DeleteTenantRequestObject) (gen.DeleteTenantResponseObject, error)
DeleteTenant is not implemented yet.
func (Unimplemented) DeleteUser ¶
func (Unimplemented) DeleteUser(context.Context, gen.DeleteUserRequestObject) (gen.DeleteUserResponseObject, error)
DeleteUser is not implemented yet.
func (Unimplemented) GetHealth ¶
func (Unimplemented) GetHealth(context.Context, gen.GetHealthRequestObject) (gen.GetHealthResponseObject, error)
GetHealth is not implemented yet.
func (Unimplemented) GetIncident ¶
func (Unimplemented) GetIncident(context.Context, gen.GetIncidentRequestObject) (gen.GetIncidentResponseObject, error)
GetIncident is not implemented yet.
func (Unimplemented) GetMaintenanceWindow ¶
func (Unimplemented) GetMaintenanceWindow(context.Context, gen.GetMaintenanceWindowRequestObject) (gen.GetMaintenanceWindowResponseObject, error)
GetMaintenanceWindow is not implemented yet.
func (Unimplemented) GetMe ¶
func (Unimplemented) GetMe(context.Context, gen.GetMeRequestObject) (gen.GetMeResponseObject, error)
GetMe is not implemented yet.
func (Unimplemented) GetMonitor ¶
func (Unimplemented) GetMonitor(context.Context, gen.GetMonitorRequestObject) (gen.GetMonitorResponseObject, error)
GetMonitor is not implemented yet.
func (Unimplemented) GetNotificationChannel ¶
func (Unimplemented) GetNotificationChannel(context.Context, gen.GetNotificationChannelRequestObject) (gen.GetNotificationChannelResponseObject, error)
GetNotificationChannel is not implemented yet.
func (Unimplemented) GetOwnTenant ¶
func (Unimplemented) GetOwnTenant(context.Context, gen.GetOwnTenantRequestObject) (gen.GetOwnTenantResponseObject, error)
GetOwnTenant is not implemented yet.
func (Unimplemented) GetPlan ¶
func (Unimplemented) GetPlan(context.Context, gen.GetPlanRequestObject) (gen.GetPlanResponseObject, error)
GetPlan is not implemented yet.
func (Unimplemented) GetSystemChannel ¶
func (Unimplemented) GetSystemChannel(context.Context, gen.GetSystemChannelRequestObject) (gen.GetSystemChannelResponseObject, error)
GetSystemChannel is not implemented yet.
func (Unimplemented) GetTenant ¶
func (Unimplemented) GetTenant(context.Context, gen.GetTenantRequestObject) (gen.GetTenantResponseObject, error)
GetTenant is not implemented yet.
func (Unimplemented) GetUptime ¶
func (Unimplemented) GetUptime(context.Context, gen.GetUptimeRequestObject) (gen.GetUptimeResponseObject, error)
GetUptime is not implemented yet.
func (Unimplemented) ListAdminAudit ¶
func (Unimplemented) ListAdminAudit(context.Context, gen.ListAdminAuditRequestObject) (gen.ListAdminAuditResponseObject, error)
ListAdminAudit is not implemented yet.
func (Unimplemented) ListApiTokens ¶
func (Unimplemented) ListApiTokens(context.Context, gen.ListApiTokensRequestObject) (gen.ListApiTokensResponseObject, error)
ListApiTokens is not implemented yet.
func (Unimplemented) ListAudit ¶
func (Unimplemented) ListAudit(context.Context, gen.ListAuditRequestObject) (gen.ListAuditResponseObject, error)
ListAudit is not implemented yet.
func (Unimplemented) ListClusterNodes ¶
func (Unimplemented) ListClusterNodes(context.Context, gen.ListClusterNodesRequestObject) (gen.ListClusterNodesResponseObject, error)
ListClusterNodes is not implemented yet.
func (Unimplemented) ListHeartbeats ¶
func (Unimplemented) ListHeartbeats(context.Context, gen.ListHeartbeatsRequestObject) (gen.ListHeartbeatsResponseObject, error)
ListHeartbeats is not implemented yet.
func (Unimplemented) ListIncidents ¶
func (Unimplemented) ListIncidents(context.Context, gen.ListIncidentsRequestObject) (gen.ListIncidentsResponseObject, error)
ListIncidents is not implemented yet.
func (Unimplemented) ListMaintenanceWindows ¶
func (Unimplemented) ListMaintenanceWindows(context.Context, gen.ListMaintenanceWindowsRequestObject) (gen.ListMaintenanceWindowsResponseObject, error)
ListMaintenanceWindows is not implemented yet.
func (Unimplemented) ListMonitorTypes ¶
func (Unimplemented) ListMonitorTypes(context.Context, gen.ListMonitorTypesRequestObject) (gen.ListMonitorTypesResponseObject, error)
ListMonitorTypes is not implemented yet.
func (Unimplemented) ListMonitors ¶
func (Unimplemented) ListMonitors(context.Context, gen.ListMonitorsRequestObject) (gen.ListMonitorsResponseObject, error)
ListMonitors is not implemented yet.
func (Unimplemented) ListNotificationChannels ¶
func (Unimplemented) ListNotificationChannels(context.Context, gen.ListNotificationChannelsRequestObject) (gen.ListNotificationChannelsResponseObject, error)
ListNotificationChannels is not implemented yet.
func (Unimplemented) ListPlans ¶
func (Unimplemented) ListPlans(context.Context, gen.ListPlansRequestObject) (gen.ListPlansResponseObject, error)
ListPlans is not implemented yet.
func (Unimplemented) ListSystemAlerts ¶
func (Unimplemented) ListSystemAlerts(context.Context, gen.ListSystemAlertsRequestObject) (gen.ListSystemAlertsResponseObject, error)
ListSystemAlerts is not implemented yet.
func (Unimplemented) ListSystemChannels ¶
func (Unimplemented) ListSystemChannels(context.Context, gen.ListSystemChannelsRequestObject) (gen.ListSystemChannelsResponseObject, error)
ListSystemChannels is not implemented yet.
func (Unimplemented) ListTenants ¶
func (Unimplemented) ListTenants(context.Context, gen.ListTenantsRequestObject) (gen.ListTenantsResponseObject, error)
ListTenants is not implemented yet.
func (Unimplemented) ListUsers ¶
func (Unimplemented) ListUsers(context.Context, gen.ListUsersRequestObject) (gen.ListUsersResponseObject, error)
ListUsers is not implemented yet.
func (Unimplemented) Login ¶
func (Unimplemented) Login(context.Context, gen.LoginRequestObject) (gen.LoginResponseObject, error)
Login is not implemented yet.
func (Unimplemented) Logout ¶
func (Unimplemented) Logout(context.Context, gen.LogoutRequestObject) (gen.LogoutResponseObject, error)
Logout is not implemented yet.
func (Unimplemented) PauseMonitor ¶
func (Unimplemented) PauseMonitor(context.Context, gen.PauseMonitorRequestObject) (gen.PauseMonitorResponseObject, error)
PauseMonitor is not implemented yet.
func (Unimplemented) PutPlan ¶
func (Unimplemented) PutPlan(context.Context, gen.PutPlanRequestObject) (gen.PutPlanResponseObject, error)
PutPlan is not implemented yet.
func (Unimplemented) Refresh ¶
func (Unimplemented) Refresh(context.Context, gen.RefreshRequestObject) (gen.RefreshResponseObject, error)
Refresh is not implemented yet.
func (Unimplemented) RemoveClusterNode ¶
func (Unimplemented) RemoveClusterNode(context.Context, gen.RemoveClusterNodeRequestObject) (gen.RemoveClusterNodeResponseObject, error)
RemoveClusterNode is not implemented yet.
func (Unimplemented) ResumeMonitor ¶
func (Unimplemented) ResumeMonitor(context.Context, gen.ResumeMonitorRequestObject) (gen.ResumeMonitorResponseObject, error)
ResumeMonitor is not implemented yet.
func (Unimplemented) ResumeTenant ¶
func (Unimplemented) ResumeTenant(context.Context, gen.ResumeTenantRequestObject) (gen.ResumeTenantResponseObject, error)
ResumeTenant is not implemented yet.
func (Unimplemented) RevokeApiToken ¶
func (Unimplemented) RevokeApiToken(context.Context, gen.RevokeApiTokenRequestObject) (gen.RevokeApiTokenResponseObject, error)
RevokeApiToken is not implemented yet.
func (Unimplemented) Setup ¶
func (Unimplemented) Setup(context.Context, gen.SetupRequestObject) (gen.SetupResponseObject, error)
Setup is not implemented yet.
func (Unimplemented) SuspendTenant ¶
func (Unimplemented) SuspendTenant(context.Context, gen.SuspendTenantRequestObject) (gen.SuspendTenantResponseObject, error)
SuspendTenant is not implemented yet.
func (Unimplemented) TestMonitor ¶
func (Unimplemented) TestMonitor(context.Context, gen.TestMonitorRequestObject) (gen.TestMonitorResponseObject, error)
TestMonitor is not implemented yet.
func (Unimplemented) TestNotificationChannel ¶
func (Unimplemented) TestNotificationChannel(context.Context, gen.TestNotificationChannelRequestObject) (gen.TestNotificationChannelResponseObject, error)
TestNotificationChannel is not implemented yet.
func (Unimplemented) TestSystemChannel ¶
func (Unimplemented) TestSystemChannel(context.Context, gen.TestSystemChannelRequestObject) (gen.TestSystemChannelResponseObject, error)
TestSystemChannel is not implemented yet.
func (Unimplemented) UpdateMaintenanceWindow ¶
func (Unimplemented) UpdateMaintenanceWindow(context.Context, gen.UpdateMaintenanceWindowRequestObject) (gen.UpdateMaintenanceWindowResponseObject, error)
UpdateMaintenanceWindow is not implemented yet.
func (Unimplemented) UpdateMonitor ¶
func (Unimplemented) UpdateMonitor(context.Context, gen.UpdateMonitorRequestObject) (gen.UpdateMonitorResponseObject, error)
UpdateMonitor is not implemented yet.
func (Unimplemented) UpdateNotificationChannel ¶
func (Unimplemented) UpdateNotificationChannel(context.Context, gen.UpdateNotificationChannelRequestObject) (gen.UpdateNotificationChannelResponseObject, error)
UpdateNotificationChannel is not implemented yet.
func (Unimplemented) UpdateSystemChannel ¶
func (Unimplemented) UpdateSystemChannel(context.Context, gen.UpdateSystemChannelRequestObject) (gen.UpdateSystemChannelResponseObject, error)
UpdateSystemChannel is not implemented yet.
func (Unimplemented) UpdateTenant ¶
func (Unimplemented) UpdateTenant(context.Context, gen.UpdateTenantRequestObject) (gen.UpdateTenantResponseObject, error)
UpdateTenant is not implemented yet.
func (Unimplemented) UpdateUser ¶
func (Unimplemented) UpdateUser(context.Context, gen.UpdateUserRequestObject) (gen.UpdateUserResponseObject, error)
UpdateUser is not implemented yet.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package gen provides primitives to interact with the openapi HTTP API.
|
Package gen provides primitives to interact with the openapi HTTP API. |
|
internal
|
|
|
stubgen
command
Command stubgen writes unimplemented.go: one 501 stub per operation of gen.StrictServerInterface, so new OpenAPI operations compile immediately.
|
Command stubgen writes unimplemented.go: one 501 stub per operation of gen.StrictServerInterface, so new OpenAPI operations compile immediately. |