Documentation
¶
Overview ¶
Package httpapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func ClientIPFromContext(ctx context.Context) (string, bool)
- func GetSwagger() (swagger *openapi3.T, err error)
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func WithClientIP(ctx context.Context, ip string) context.Context
- type AccessLogCountryStats
- type AccessLogResponse
- type AccessLogRow
- type AddAddress200JSONResponse
- type AddAddress201JSONResponse
- type AddAddress400JSONResponse
- type AddAddress404JSONResponse
- type AddAddress500JSONResponse
- type AddAddressJSONRequestBody
- type AddAddressRequest
- type AddAddressRequestObject
- type AddAddressResponseObject
- type Address
- type AddressEventSource
- type AddressHistoryBucket
- type AddressHistoryEvent
- type AddressHistoryResponse
- type AuthRequest
- type ChangePassword204Response
- type ChangePassword400JSONResponse
- type ChangePassword401JSONResponse
- type ChangePassword500JSONResponse
- type ChangePasswordJSONRequestBody
- type ChangePasswordRequest
- type ChangePasswordRequestObject
- type ChangePasswordResponseObject
- type ChiServerOptions
- type ClaimRegistration200JSONResponse
- type ClaimRegistration404JSONResponse
- type ClaimRegistration500JSONResponse
- type ClaimRegistrationJSONRequestBody
- type ClaimRegistrationRequest
- type ClaimRegistrationRequestObject
- type ClaimRegistrationResponse
- type ClaimRegistrationResponseObject
- type ContextKey
- type CreateDevice201JSONResponse
- type CreateDevice400JSONResponse
- type CreateDevice409JSONResponse
- type CreateDevice500JSONResponse
- type CreateDeviceJSONRequestBody
- type CreateDeviceRequest
- type CreateDeviceRequestObject
- type CreateDeviceResponse
- type CreateDeviceResponseObject
- type CreateRegistration201JSONResponse
- type CreateRegistration400JSONResponse
- type CreateRegistration401Response
- type CreateRegistration403Response
- type CreateRegistration500JSONResponse
- type CreateRegistrationJSONRequestBody
- type CreateRegistrationRequest
- type CreateRegistrationRequestExpiresInHours
- type CreateRegistrationRequestObject
- type CreateRegistrationResponseObject
- type CreateUser201JSONResponse
- type CreateUser400JSONResponse
- type CreateUser401JSONResponse
- type CreateUser403Response
- type CreateUser409JSONResponse
- type CreateUser500JSONResponse
- type CreateUserJSONRequestBody
- type CreateUserRequest
- type CreateUserRequestObject
- type CreateUserResponseObject
- type DashboardServiceCount
- type DashboardServicesResponse
- type DashboardStats
- type DashboardTopDeniedIp
- type DashboardTopDeniedIpsResponse
- type DashboardTrafficBucket
- type DashboardTrafficResponse
- type DeleteDevice204Response
- type DeleteDevice404JSONResponse
- type DeleteDevice500JSONResponse
- type DeleteDeviceAPIKey204Response
- type DeleteDeviceAPIKey404JSONResponse
- type DeleteDeviceAPIKey500JSONResponse
- type DeleteDeviceAPIKeyRequestObject
- type DeleteDeviceAPIKeyResponseObject
- type DeleteDeviceRequestObject
- type DeleteDeviceResponseObject
- type DeleteRegistration204Response
- type DeleteRegistration401Response
- type DeleteRegistration403Response
- type DeleteRegistration404JSONResponse
- type DeleteRegistration500JSONResponse
- type DeleteRegistrationRequestObject
- type DeleteRegistrationResponseObject
- type DeleteUser204Response
- type DeleteUser401JSONResponse
- type DeleteUser403JSONResponse
- type DeleteUser404JSONResponse
- type DeleteUser500JSONResponse
- type DeleteUserRequestObject
- type DeleteUserResponseObject
- type DemoteUser200JSONResponse
- type DemoteUser401JSONResponse
- type DemoteUser403JSONResponse
- type DemoteUser404JSONResponse
- type DemoteUser500JSONResponse
- type DemoteUserRequestObject
- type DemoteUserResponseObject
- type DesiredHostGroup
- type DesiredKnownHost
- type Device
- type DeviceAPIKeyResponse
- type DeviceAddressLeaseRule
- type DeviceDeviceType
- type DeviceHeartbeat200JSONResponse
- type DeviceHeartbeat201JSONResponse
- type DeviceHeartbeat400JSONResponse
- type DeviceHeartbeat404JSONResponse
- type DeviceHeartbeat500JSONResponse
- type DeviceHeartbeatByAPIKey200JSONResponse
- type DeviceHeartbeatByAPIKey201JSONResponse
- type DeviceHeartbeatByAPIKey400JSONResponse
- type DeviceHeartbeatByAPIKey404JSONResponse
- type DeviceHeartbeatByAPIKey500JSONResponse
- type DeviceHeartbeatByAPIKeyJSONRequestBody
- type DeviceHeartbeatByAPIKeyRequestObject
- type DeviceHeartbeatByAPIKeyResponseObject
- type DeviceHeartbeatByApiKeyRequest
- type DeviceHeartbeatRequestObject
- type DeviceHeartbeatResponseObject
- type DeviceTypeItem
- type DisableAddress200JSONResponse
- type DisableAddress400JSONResponse
- type DisableAddress404JSONResponse
- type DisableAddress500JSONResponse
- type DisableAddressRequestObject
- type DisableAddressResponseObject
- type DisableDeviceAddressLeaseRule204Response
- type DisableDeviceAddressLeaseRule404JSONResponse
- type DisableDeviceAddressLeaseRule500JSONResponse
- type DisableDeviceAddressLeaseRuleRequestObject
- type DisableDeviceAddressLeaseRuleResponseObject
- type DisableMaxActiveAddressesRule204Response
- type DisableMaxActiveAddressesRule404JSONResponse
- type DisableMaxActiveAddressesRule500JSONResponse
- type DisableMaxActiveAddressesRuleRequestObject
- type DisableMaxActiveAddressesRuleResponseObject
- type DisplayName
- type ErrorResponse
- type GetAccessLog200JSONResponse
- type GetAccessLog401JSONResponse
- type GetAccessLog403JSONResponse
- type GetAccessLog500JSONResponse
- type GetAccessLogByCountry200JSONResponse
- type GetAccessLogByCountry401JSONResponse
- type GetAccessLogByCountry403JSONResponse
- type GetAccessLogByCountry500JSONResponse
- type GetAccessLogByCountryParams
- type GetAccessLogByCountryRequestObject
- type GetAccessLogByCountryResponseObject
- type GetAccessLogDenyReasons200JSONResponse
- type GetAccessLogDenyReasons401JSONResponse
- type GetAccessLogDenyReasons403JSONResponse
- type GetAccessLogDenyReasons500JSONResponse
- type GetAccessLogDenyReasonsRequestObject
- type GetAccessLogDenyReasonsResponseObject
- type GetAccessLogParams
- type GetAccessLogRequestObject
- type GetAccessLogResponseObject
- type GetAddressHistory200JSONResponse
- type GetAddressHistory400JSONResponse
- type GetAddressHistory403JSONResponse
- type GetAddressHistory500JSONResponse
- type GetAddressHistoryParams
- type GetAddressHistoryParamsGranularity
- type GetAddressHistoryRequestObject
- type GetAddressHistoryResponseObject
- type GetCurrentUser200JSONResponse
- type GetCurrentUser401JSONResponse
- type GetCurrentUser500JSONResponse
- type GetCurrentUserRequestObject
- type GetCurrentUserResponseObject
- type GetDashboardServices200JSONResponse
- type GetDashboardServices401JSONResponse
- type GetDashboardServices403JSONResponse
- type GetDashboardServices500JSONResponse
- type GetDashboardServicesParams
- type GetDashboardServicesRequestObject
- type GetDashboardServicesResponseObject
- type GetDashboardStats200JSONResponse
- type GetDashboardStats401JSONResponse
- type GetDashboardStats403JSONResponse
- type GetDashboardStats500JSONResponse
- type GetDashboardStatsParams
- type GetDashboardStatsRequestObject
- type GetDashboardStatsResponseObject
- type GetDashboardTopDeniedIps200JSONResponse
- type GetDashboardTopDeniedIps401JSONResponse
- type GetDashboardTopDeniedIps403JSONResponse
- type GetDashboardTopDeniedIps500JSONResponse
- type GetDashboardTopDeniedIpsParams
- type GetDashboardTopDeniedIpsRequestObject
- type GetDashboardTopDeniedIpsResponseObject
- type GetDashboardTraffic200JSONResponse
- type GetDashboardTraffic401JSONResponse
- type GetDashboardTraffic403JSONResponse
- type GetDashboardTraffic500JSONResponse
- type GetDashboardTrafficParams
- type GetDashboardTrafficParamsGranularity
- type GetDashboardTrafficRequestObject
- type GetDashboardTrafficResponseObject
- type GetDevice200JSONResponse
- type GetDevice404JSONResponse
- type GetDevice500JSONResponse
- type GetDeviceAddressLeaseRule200JSONResponse
- type GetDeviceAddressLeaseRule404JSONResponse
- type GetDeviceAddressLeaseRule500JSONResponse
- type GetDeviceAddressLeaseRuleRequestObject
- type GetDeviceAddressLeaseRuleResponseObject
- type GetDeviceAddresses200JSONResponse
- type GetDeviceAddresses400JSONResponse
- type GetDeviceAddresses404JSONResponse
- type GetDeviceAddresses500JSONResponse
- type GetDeviceAddressesRequestObject
- type GetDeviceAddressesResponseObject
- type GetDeviceRequestObject
- type GetDeviceResponseObject
- type GetDevices200JSONResponse
- type GetDevices500JSONResponse
- type GetDevicesByUser200JSONResponse
- type GetDevicesByUser403JSONResponse
- type GetDevicesByUser404JSONResponse
- type GetDevicesByUser500JSONResponse
- type GetDevicesByUserRequestObject
- type GetDevicesByUserResponseObject
- type GetDevicesRequestObject
- type GetDevicesResponseObject
- type GetMaxActiveAddressesRule200JSONResponse
- type GetMaxActiveAddressesRule404JSONResponse
- type GetMaxActiveAddressesRule500JSONResponse
- type GetMaxActiveAddressesRuleRequestObject
- type GetMaxActiveAddressesRuleResponseObject
- type GetPolicyUserMap200JSONResponse
- type GetPolicyUserMap401JSONResponse
- type GetPolicyUserMap403Response
- type GetPolicyUserMap500JSONResponse
- type GetPolicyUserMapRequestObject
- type GetPolicyUserMapResponseObject
- type GetRegistration200JSONResponse
- type GetRegistration401Response
- type GetRegistration403Response
- type GetRegistration404JSONResponse
- type GetRegistration500JSONResponse
- type GetRegistrationRequestObject
- type GetRegistrationResponseObject
- type GetUserHostDetails200JSONResponse
- type GetUserHostDetails401JSONResponse
- type GetUserHostDetails403Response
- type GetUserHostDetails404JSONResponse
- type GetUserHostDetails500JSONResponse
- type GetUserHostDetailsRequestObject
- type GetUserHostDetailsResponseObject
- type GroupRef
- type HostGroupWithMembers
- type HostSuggestion
- type HostSuggestionsPage
- type ID
- type IPAddress
- type IgnoreSuggestion201JSONResponse
- type IgnoreSuggestion400JSONResponse
- type IgnoreSuggestion401JSONResponse
- type IgnoreSuggestion403Response
- type IgnoreSuggestion409JSONResponse
- type IgnoreSuggestion500JSONResponse
- type IgnoreSuggestionJSONRequestBody
- type IgnoreSuggestionRequest
- type IgnoreSuggestionRequestObject
- type IgnoreSuggestionResponseObject
- type IgnoredHostSuggestion
- type InvalidParamFormatError
- type KnownHostRef
- type KnownHostWithStats
- type ListDeviceTypes200JSONResponse
- type ListDeviceTypesRequestObject
- type ListDeviceTypesResponseObject
- type ListHostGroups200JSONResponse
- type ListHostGroups401JSONResponse
- type ListHostGroups403Response
- type ListHostGroups500JSONResponse
- type ListHostGroupsRequestObject
- type ListHostGroupsResponseObject
- type ListHostSuggestions200JSONResponse
- type ListHostSuggestions401JSONResponse
- type ListHostSuggestions403Response
- type ListHostSuggestions500JSONResponse
- type ListHostSuggestionsRequestObject
- type ListHostSuggestionsResponseObject
- type ListKnownHosts200JSONResponse
- type ListKnownHosts401JSONResponse
- type ListKnownHosts403Response
- type ListKnownHosts500JSONResponse
- type ListKnownHostsRequestObject
- type ListKnownHostsResponseObject
- type ListRegistrations200JSONResponse
- type ListRegistrations401Response
- type ListRegistrations403Response
- type ListRegistrations500JSONResponse
- type ListRegistrationsParams
- type ListRegistrationsParamsStatus
- type ListRegistrationsRequestObject
- type ListRegistrationsResponseObject
- type ListUsers200JSONResponse
- type ListUsers401JSONResponse
- type ListUsers403Response
- type ListUsers500JSONResponse
- type ListUsersHostAccess200JSONResponse
- type ListUsersHostAccess401JSONResponse
- type ListUsersHostAccess403Response
- type ListUsersHostAccess500JSONResponse
- type ListUsersHostAccessRequestObject
- type ListUsersHostAccessResponseObject
- type ListUsersRequestObject
- type ListUsersResponseObject
- type Login200JSONResponse
- type Login200ResponseHeaders
- type Login401JSONResponse
- type Login500JSONResponse
- type LoginJSONRequestBody
- type LoginRequestObject
- type LoginResponseObject
- type Logout204Response
- type Logout204ResponseHeaders
- type LogoutRequestObject
- type LogoutResponseObject
- type MaxActiveAddressesRule
- type MiddlewareFunc
- type NullableString
- type Password
- type PendingRegistration
- type PendingRegistrationStatus
- type PolicyIPDevice
- type PolicySimulateDenyReason
- type PolicySimulateResult
- type PolicyUserAddress
- type PolicyUserEntry
- type PolicyUserIP
- type PolicyUserIPSharedUser
- type PolicyUserMapAudit
- type PromoteUser200JSONResponse
- type PromoteUser400JSONResponse
- type PromoteUser401JSONResponse
- type PromoteUser403JSONResponse
- type PromoteUser404JSONResponse
- type PromoteUser500JSONResponse
- type PromoteUserJSONRequestBody
- type PromoteUserRequest
- type PromoteUserRequestObject
- type PromoteUserResponseObject
- type PutDeviceAddressLeaseRule200JSONResponse
- type PutDeviceAddressLeaseRule400JSONResponse
- type PutDeviceAddressLeaseRule404JSONResponse
- type PutDeviceAddressLeaseRule500JSONResponse
- type PutDeviceAddressLeaseRuleJSONRequestBody
- type PutDeviceAddressLeaseRuleRequest
- type PutDeviceAddressLeaseRuleRequestObject
- type PutDeviceAddressLeaseRuleResponseObject
- type PutMaxActiveAddressesRule200JSONResponse
- type PutMaxActiveAddressesRule400JSONResponse
- type PutMaxActiveAddressesRule404JSONResponse
- type PutMaxActiveAddressesRule500JSONResponse
- type PutMaxActiveAddressesRuleJSONRequestBody
- type PutMaxActiveAddressesRuleRequest
- type PutMaxActiveAddressesRuleRequestObject
- type PutMaxActiveAddressesRuleResponseObject
- type ReconcileHostGroups204Response
- type ReconcileHostGroups400JSONResponse
- type ReconcileHostGroups401JSONResponse
- type ReconcileHostGroups403Response
- type ReconcileHostGroups404JSONResponse
- type ReconcileHostGroups409JSONResponse
- type ReconcileHostGroups500JSONResponse
- type ReconcileHostGroupsJSONRequestBody
- type ReconcileHostGroupsRequest
- type ReconcileHostGroupsRequestObject
- type ReconcileHostGroupsResponseObject
- type ReconcileKnownHosts204Response
- type ReconcileKnownHosts400JSONResponse
- type ReconcileKnownHosts401JSONResponse
- type ReconcileKnownHosts403Response
- type ReconcileKnownHosts404JSONResponse
- type ReconcileKnownHosts409JSONResponse
- type ReconcileKnownHosts500JSONResponse
- type ReconcileKnownHostsJSONRequestBody
- type ReconcileKnownHostsRequest
- type ReconcileKnownHostsRequestObject
- type ReconcileKnownHostsResponseObject
- type RegenerateDeviceAPIKey200JSONResponse
- type RegenerateDeviceAPIKey404JSONResponse
- type RegenerateDeviceAPIKey500JSONResponse
- type RegenerateDeviceAPIKeyRequestObject
- type RegenerateDeviceAPIKeyResponseObject
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) AddAddress(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ClaimRegistration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateDevice(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateRegistration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteDevice(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteDeviceAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteRegistration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DemoteUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeviceHeartbeat(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DeviceHeartbeatByAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DisableAddress(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DisableDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) DisableMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAccessLog(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAccessLogByCountry(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAccessLogDenyReasons(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAddressHistory(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCurrentUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDashboardServices(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDashboardStats(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDashboardTopDeniedIps(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDashboardTraffic(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDevice(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDeviceAddresses(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDevices(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDevicesByUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetPolicyUserMap(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRegistration(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetUserHostDetails(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) IgnoreSuggestion(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListDeviceTypes(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListHostGroups(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListHostSuggestions(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListKnownHosts(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListRegistrations(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ListUsersHostAccess(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Logout(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PromoteUser(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) PutMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReconcileHostGroups(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ReconcileKnownHosts(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RegenerateDeviceAPIKey(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SetUserHostGrants(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) SimulatePolicyAccess(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UnignoreSuggestion(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateDevice(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) UpdateMe(w http.ResponseWriter, r *http.Request)
- type SetUserHostGrants204Response
- type SetUserHostGrants400JSONResponse
- type SetUserHostGrants401JSONResponse
- type SetUserHostGrants403Response
- type SetUserHostGrants404JSONResponse
- type SetUserHostGrants500JSONResponse
- type SetUserHostGrantsJSONRequestBody
- type SetUserHostGrantsRequest
- type SetUserHostGrantsRequestObject
- type SetUserHostGrantsResponseObject
- type SimulatePolicyAccess200JSONResponse
- type SimulatePolicyAccess400JSONResponse
- type SimulatePolicyAccess401JSONResponse
- type SimulatePolicyAccess403Response
- type SimulatePolicyAccess500JSONResponse
- type SimulatePolicyAccessParams
- type SimulatePolicyAccessRequestObject
- type SimulatePolicyAccessResponseObject
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type TooManyValuesForParamError
- type UTCTime
- type UnescapedCookieParamError
- type UnignoreSuggestion204Response
- type UnignoreSuggestion401JSONResponse
- type UnignoreSuggestion403Response
- type UnignoreSuggestion404JSONResponse
- type UnignoreSuggestion500JSONResponse
- type UnignoreSuggestionRequestObject
- type UnignoreSuggestionResponseObject
- type Unimplemented
- func (_ Unimplemented) AddAddress(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) ChangePassword(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ClaimRegistration(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateDevice(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateRegistration(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) CreateUser(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) DeleteDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) DeleteDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) DeleteRegistration(w http.ResponseWriter, r *http.Request, registrationId ID)
- func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, userId ID)
- func (_ Unimplemented) DemoteUser(w http.ResponseWriter, r *http.Request, userId ID)
- func (_ Unimplemented) DeviceHeartbeat(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) DeviceHeartbeatByAPIKey(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) DisableAddress(w http.ResponseWriter, r *http.Request, deviceId ID, addressId ID)
- func (_ Unimplemented) DisableDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) DisableMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) GetAccessLog(w http.ResponseWriter, r *http.Request, params GetAccessLogParams)
- func (_ Unimplemented) GetAccessLogByCountry(w http.ResponseWriter, r *http.Request, params GetAccessLogByCountryParams)
- func (_ Unimplemented) GetAccessLogDenyReasons(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetAddressHistory(w http.ResponseWriter, r *http.Request, params GetAddressHistoryParams)
- func (_ Unimplemented) GetCurrentUser(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetDashboardServices(w http.ResponseWriter, r *http.Request, params GetDashboardServicesParams)
- func (_ Unimplemented) GetDashboardStats(w http.ResponseWriter, r *http.Request, params GetDashboardStatsParams)
- func (_ Unimplemented) GetDashboardTopDeniedIps(w http.ResponseWriter, r *http.Request, params GetDashboardTopDeniedIpsParams)
- func (_ Unimplemented) GetDashboardTraffic(w http.ResponseWriter, r *http.Request, params GetDashboardTrafficParams)
- func (_ Unimplemented) GetDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) GetDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) GetDeviceAddresses(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) GetDevices(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetDevicesByUser(w http.ResponseWriter, r *http.Request, userId ID)
- func (_ Unimplemented) GetMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) GetPolicyUserMap(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) GetRegistration(w http.ResponseWriter, r *http.Request, registrationId ID)
- func (_ Unimplemented) GetUserHostDetails(w http.ResponseWriter, r *http.Request, userId ID)
- func (_ Unimplemented) IgnoreSuggestion(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListDeviceTypes(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListHostGroups(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListHostSuggestions(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListKnownHosts(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListRegistrations(w http.ResponseWriter, r *http.Request, params ListRegistrationsParams)
- func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ListUsersHostAccess(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) Login(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) Logout(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) PromoteUser(w http.ResponseWriter, r *http.Request, userId ID)
- func (_ Unimplemented) PutDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) PutMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) ReconcileHostGroups(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) ReconcileKnownHosts(w http.ResponseWriter, r *http.Request)
- func (_ Unimplemented) RegenerateDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) SetUserHostGrants(w http.ResponseWriter, r *http.Request, userId ID)
- func (_ Unimplemented) SimulatePolicyAccess(w http.ResponseWriter, r *http.Request, params SimulatePolicyAccessParams)
- func (_ Unimplemented) UnignoreSuggestion(w http.ResponseWriter, r *http.Request, fqdn string)
- func (_ Unimplemented) UpdateDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
- func (_ Unimplemented) UpdateMe(w http.ResponseWriter, r *http.Request)
- type UnmarshalingParamError
- type UpdateDevice200JSONResponse
- type UpdateDevice400JSONResponse
- type UpdateDevice403JSONResponse
- type UpdateDevice404JSONResponse
- type UpdateDevice409JSONResponse
- type UpdateDevice500JSONResponse
- type UpdateDeviceJSONRequestBody
- type UpdateDeviceRequest
- type UpdateDeviceRequestDeviceType
- type UpdateDeviceRequestObject
- type UpdateDeviceResponseObject
- type UpdateMe200JSONResponse
- type UpdateMe400JSONResponse
- type UpdateMe401JSONResponse
- type UpdateMe409JSONResponse
- type UpdateMe500JSONResponse
- type UpdateMeJSONRequestBody
- type UpdateMeRequestObject
- type UpdateMeResponseObject
- type UpdateProfileRequest
- func (t UpdateProfileRequest) AsUpdateProfileRequest0() (UpdateProfileRequest0, error)
- func (t UpdateProfileRequest) AsUpdateProfileRequest1() (UpdateProfileRequest1, error)
- func (t UpdateProfileRequest) AsUpdateProfileRequest2() (UpdateProfileRequest2, error)
- func (t *UpdateProfileRequest) FromUpdateProfileRequest0(v UpdateProfileRequest0) error
- func (t *UpdateProfileRequest) FromUpdateProfileRequest1(v UpdateProfileRequest1) error
- func (t *UpdateProfileRequest) FromUpdateProfileRequest2(v UpdateProfileRequest2) error
- func (t UpdateProfileRequest) MarshalJSON() ([]byte, error)
- func (t *UpdateProfileRequest) MergeUpdateProfileRequest0(v UpdateProfileRequest0) error
- func (t *UpdateProfileRequest) MergeUpdateProfileRequest1(v UpdateProfileRequest1) error
- func (t *UpdateProfileRequest) MergeUpdateProfileRequest2(v UpdateProfileRequest2) error
- func (t *UpdateProfileRequest) UnmarshalJSON(b []byte) error
- type UpdateProfileRequest0
- type UpdateProfileRequest1
- type UpdateProfileRequest2
- type User
- type UserHostAccessSummary
- type UserHostDetails
- type UserHostDetailsGroup
- type UserHostDetailsHost
- type UserRole
- type Username
Constants ¶
const ( ApiKeyAuthScopes = "apiKeyAuth.Scopes" CookieAuthScopes = "cookieAuth.Scopes" )
const APIKeyAuthScope = "apiKeyAuth"
const APIKeyHeaderName = "X-API-Key"
const CookieAuthScope = "cookieAuth"
Security scopes
const HeartbeatEndpoint = "/api/v1/heartbeat"
const LoginEndpoint = "/api/v1/auth/login"
Endpoints
const RegisterEndpoint = "/api/v1/register"
const SessionCookieName = "__Host-wdc_session"
Headers
const XRealIP = "X-Real-IP"
Variables ¶
This section is empty.
Functions ¶
func ClientIPFromContext ¶
ClientIPFromContext extracts the client IP address from the context.
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
Types ¶
type AccessLogCountryStats ¶
type AccessLogCountryStats struct {
Allowed int `json:"allowed"`
ContinentCode *string `json:"continent_code,omitempty"`
CountryCode string `json:"country_code"`
CountryName *string `json:"country_name,omitempty"`
Denied int `json:"denied"`
Total int `json:"total"`
}
AccessLogCountryStats defines model for AccessLogCountryStats.
type AccessLogResponse ¶
type AccessLogResponse struct {
NextCursor *ID `json:"next_cursor"`
Rows []AccessLogRow `json:"rows"`
// Total Total rows matching the current filters (excludes cursor, useful for "N results" UI)
Total int `json:"total"`
}
AccessLogResponse defines model for AccessLogResponse.
type AccessLogRow ¶
type AccessLogRow struct {
AddressId *ID `json:"address_id,omitempty"`
// Asn Autonomous System Number
Asn *int `json:"asn,omitempty"`
// AsnOrg e.g. "Cloudflare, Inc."
AsnOrg *string `json:"asn_org,omitempty"`
// ClientIp IPv4 or IPv6 address
ClientIp IPAddress `json:"client_ip"`
// ContinentCode e.g. "EU"
ContinentCode *string `json:"continent_code,omitempty"`
// CountryCode ISO 3166-1 alpha-2, e.g. "DE"
CountryCode *string `json:"country_code,omitempty"`
// CountryName e.g. "Germany"
CountryName *string `json:"country_name,omitempty"`
CreatedAt UTCTime `json:"created_at"`
DenyReason *string `json:"deny_reason,omitempty"`
DeviceId *ID `json:"device_id,omitempty"`
DeviceName *string `json:"device_name,omitempty"`
// DurationUs Request processing duration in microseconds
DurationUs *int64 `json:"duration_us,omitempty"`
Headers map[string][]string `json:"headers"`
HttpMethod *string `json:"http_method,omitempty"`
Id ID `json:"id"`
Outcome bool `json:"outcome"`
TargetHost *string `json:"target_host,omitempty"`
TargetUri *string `json:"target_uri,omitempty"`
XffChain *string `json:"xff_chain,omitempty"`
}
AccessLogRow defines model for AccessLogRow.
type AddAddress200JSONResponse ¶
type AddAddress200JSONResponse Address
func (AddAddress200JSONResponse) VisitAddAddressResponse ¶
func (response AddAddress200JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error
type AddAddress201JSONResponse ¶
type AddAddress201JSONResponse Address
func (AddAddress201JSONResponse) VisitAddAddressResponse ¶
func (response AddAddress201JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error
type AddAddress400JSONResponse ¶
type AddAddress400JSONResponse ErrorResponse
func (AddAddress400JSONResponse) VisitAddAddressResponse ¶
func (response AddAddress400JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error
type AddAddress404JSONResponse ¶
type AddAddress404JSONResponse ErrorResponse
func (AddAddress404JSONResponse) VisitAddAddressResponse ¶
func (response AddAddress404JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error
type AddAddress500JSONResponse ¶
type AddAddress500JSONResponse ErrorResponse
func (AddAddress500JSONResponse) VisitAddAddressResponse ¶
func (response AddAddress500JSONResponse) VisitAddAddressResponse(w http.ResponseWriter) error
type AddAddressJSONRequestBody ¶
type AddAddressJSONRequestBody = AddAddressRequest
AddAddressJSONRequestBody defines body for AddAddress for application/json ContentType.
type AddAddressRequest ¶
type AddAddressRequest struct {
// Ip IPv4 or IPv6 address
Ip IPAddress `json:"ip"`
}
AddAddressRequest defines model for AddAddressRequest.
type AddAddressRequestObject ¶
type AddAddressRequestObject struct {
DeviceId ID `json:"device_id"`
Body *AddAddressJSONRequestBody
}
type AddAddressResponseObject ¶
type AddAddressResponseObject interface {
VisitAddAddressResponse(w http.ResponseWriter) error
}
type Address ¶
type Address struct {
CreatedAt UTCTime `json:"created_at"`
DeviceId ID `json:"device_id"`
// ExpiresAt UTC timestamp when this address will auto-expire, if an auto-expiry rule is enabled for the device. Null if no expiry is scheduled.
ExpiresAt *UTCTime `json:"expires_at"`
Id ID `json:"id"`
// Ip IPv4 or IPv6 address
Ip IPAddress `json:"ip"`
// IsEnabled The latest state of this address, enabled or disabled
IsEnabled bool `json:"is_enabled"`
// UpdatedAt Last time it was enabled or disabled
UpdatedAt UTCTime `json:"updated_at"`
}
Address defines model for Address.
type AddressEventSource ¶ added in v0.3.0
type AddressEventSource string
AddressEventSource What triggered an address state change
const ( Expiry AddressEventSource = "expiry" Heartbeat AddressEventSource = "heartbeat" LimitExceeded AddressEventSource = "limit_exceeded" Manual AddressEventSource = "manual" )
Defines values for AddressEventSource.
type AddressHistoryBucket ¶
type AddressHistoryBucket struct {
// ActiveCount Maximum active IPs seen in this time bucket
ActiveCount int `json:"active_count"`
// EventCount Total address events in this time bucket
EventCount int `json:"event_count"`
Timestamp UTCTime `json:"timestamp"`
}
AddressHistoryBucket defines model for AddressHistoryBucket.
type AddressHistoryEvent ¶
type AddressHistoryEvent struct {
DeviceId ID `json:"device_id"`
// DeviceName Name of the device
DeviceName string `json:"device_name"`
Id ID `json:"id"`
// Ip IP address
Ip string `json:"ip"`
// IsEnabled Whether the address was enabled or disabled
IsEnabled bool `json:"is_enabled"`
// Source What triggered an address state change
Source AddressEventSource `json:"source"`
Timestamp UTCTime `json:"timestamp"`
}
AddressHistoryEvent defines model for AddressHistoryEvent.
type AddressHistoryResponse ¶
type AddressHistoryResponse struct {
Buckets []AddressHistoryBucket `json:"buckets"`
Events []AddressHistoryEvent `json:"events"`
NextCursor *ID `json:"next_cursor"`
// TotalEvents Total number of events matching the filters (for pagination)
TotalEvents int `json:"total_events"`
}
AddressHistoryResponse defines model for AddressHistoryResponse.
type AuthRequest ¶
type AuthRequest struct {
Password Password `json:"password"`
// Username Unique username. Lowercase alphanumeric, underscores, and hyphens only. Uppercase letters are not accepted.
Username Username `json:"username"`
}
AuthRequest defines model for AuthRequest.
type ChangePassword204Response ¶
type ChangePassword204Response struct {
}
func (ChangePassword204Response) VisitChangePasswordResponse ¶
func (response ChangePassword204Response) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePassword400JSONResponse ¶
type ChangePassword400JSONResponse ErrorResponse
func (ChangePassword400JSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword400JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePassword401JSONResponse ¶
type ChangePassword401JSONResponse ErrorResponse
func (ChangePassword401JSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword401JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePassword500JSONResponse ¶
type ChangePassword500JSONResponse ErrorResponse
func (ChangePassword500JSONResponse) VisitChangePasswordResponse ¶
func (response ChangePassword500JSONResponse) VisitChangePasswordResponse(w http.ResponseWriter) error
type ChangePasswordJSONRequestBody ¶
type ChangePasswordJSONRequestBody = ChangePasswordRequest
ChangePasswordJSONRequestBody defines body for ChangePassword for application/json ContentType.
type ChangePasswordRequest ¶
type ChangePasswordRequest struct {
CurrentPassword string `json:"current_password"`
Password string `json:"password"`
}
ChangePasswordRequest defines model for ChangePasswordRequest.
type ChangePasswordRequestObject ¶
type ChangePasswordRequestObject struct {
Body *ChangePasswordJSONRequestBody
}
type ChangePasswordResponseObject ¶
type ChangePasswordResponseObject interface {
VisitChangePasswordResponse(w http.ResponseWriter) error
}
type ChiServerOptions ¶
type ChiServerOptions struct {
BaseURL string
BaseRouter chi.Router
Middlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type ClaimRegistration200JSONResponse ¶ added in v0.3.0
type ClaimRegistration200JSONResponse ClaimRegistrationResponse
func (ClaimRegistration200JSONResponse) VisitClaimRegistrationResponse ¶ added in v0.3.0
func (response ClaimRegistration200JSONResponse) VisitClaimRegistrationResponse(w http.ResponseWriter) error
type ClaimRegistration404JSONResponse ¶ added in v0.3.0
type ClaimRegistration404JSONResponse ErrorResponse
func (ClaimRegistration404JSONResponse) VisitClaimRegistrationResponse ¶ added in v0.3.0
func (response ClaimRegistration404JSONResponse) VisitClaimRegistrationResponse(w http.ResponseWriter) error
type ClaimRegistration500JSONResponse ¶ added in v0.3.0
type ClaimRegistration500JSONResponse ErrorResponse
func (ClaimRegistration500JSONResponse) VisitClaimRegistrationResponse ¶ added in v0.3.0
func (response ClaimRegistration500JSONResponse) VisitClaimRegistrationResponse(w http.ResponseWriter) error
type ClaimRegistrationJSONRequestBody ¶ added in v0.3.0
type ClaimRegistrationJSONRequestBody = ClaimRegistrationRequest
ClaimRegistrationJSONRequestBody defines body for ClaimRegistration for application/json ContentType.
type ClaimRegistrationRequest ¶ added in v0.3.0
type ClaimRegistrationRequest struct {
// Code The full registration code as received (not decoded).
Code string `json:"code"`
}
ClaimRegistrationRequest defines model for ClaimRegistrationRequest.
type ClaimRegistrationRequestObject ¶ added in v0.3.0
type ClaimRegistrationRequestObject struct {
Body *ClaimRegistrationJSONRequestBody
}
type ClaimRegistrationResponse ¶ added in v0.3.0
type ClaimRegistrationResponse struct {
// ApiKey Plaintext device API key — one time only.
ApiKey string `json:"api_key"`
AppBiometricEnabled bool `json:"app_biometric_enabled"`
AppSettingsLocked bool `json:"app_settings_locked"`
IntervalSeconds int `json:"interval_seconds"`
ServerUrl string `json:"server_url"`
}
ClaimRegistrationResponse defines model for ClaimRegistrationResponse.
type ClaimRegistrationResponseObject ¶ added in v0.3.0
type ClaimRegistrationResponseObject interface {
VisitClaimRegistrationResponse(w http.ResponseWriter) error
}
type ContextKey ¶
type ContextKey string
type CreateDevice201JSONResponse ¶
type CreateDevice201JSONResponse CreateDeviceResponse
func (CreateDevice201JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice201JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDevice400JSONResponse ¶
type CreateDevice400JSONResponse ErrorResponse
func (CreateDevice400JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice400JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDevice409JSONResponse ¶
type CreateDevice409JSONResponse ErrorResponse
func (CreateDevice409JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice409JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDevice500JSONResponse ¶
type CreateDevice500JSONResponse ErrorResponse
func (CreateDevice500JSONResponse) VisitCreateDeviceResponse ¶
func (response CreateDevice500JSONResponse) VisitCreateDeviceResponse(w http.ResponseWriter) error
type CreateDeviceJSONRequestBody ¶
type CreateDeviceJSONRequestBody = CreateDeviceRequest
CreateDeviceJSONRequestBody defines body for CreateDevice for application/json ContentType.
type CreateDeviceRequest ¶
type CreateDeviceRequest struct {
// Name User-friendly name for the device
Name string `json:"name"`
// OwnerId Admin only. Owner to assign the device to. Ignored for regular users (always assigned to self). When omitted by an admin, defaults to the calling admin's own ID.
OwnerId *int `json:"owner_id"`
}
CreateDeviceRequest defines model for CreateDeviceRequest.
type CreateDeviceRequestObject ¶
type CreateDeviceRequestObject struct {
Body *CreateDeviceJSONRequestBody
}
type CreateDeviceResponse ¶
type CreateDeviceResponse struct {
Device Device `json:"device"`
}
CreateDeviceResponse defines model for CreateDeviceResponse.
type CreateDeviceResponseObject ¶
type CreateDeviceResponseObject interface {
VisitCreateDeviceResponse(w http.ResponseWriter) error
}
type CreateRegistration201JSONResponse ¶ added in v0.3.0
type CreateRegistration201JSONResponse PendingRegistration
func (CreateRegistration201JSONResponse) VisitCreateRegistrationResponse ¶ added in v0.3.0
func (response CreateRegistration201JSONResponse) VisitCreateRegistrationResponse(w http.ResponseWriter) error
type CreateRegistration400JSONResponse ¶ added in v0.3.0
type CreateRegistration400JSONResponse ErrorResponse
func (CreateRegistration400JSONResponse) VisitCreateRegistrationResponse ¶ added in v0.3.0
func (response CreateRegistration400JSONResponse) VisitCreateRegistrationResponse(w http.ResponseWriter) error
type CreateRegistration401Response ¶ added in v0.3.0
type CreateRegistration401Response struct {
}
func (CreateRegistration401Response) VisitCreateRegistrationResponse ¶ added in v0.3.0
func (response CreateRegistration401Response) VisitCreateRegistrationResponse(w http.ResponseWriter) error
type CreateRegistration403Response ¶ added in v0.3.0
type CreateRegistration403Response struct {
}
func (CreateRegistration403Response) VisitCreateRegistrationResponse ¶ added in v0.3.0
func (response CreateRegistration403Response) VisitCreateRegistrationResponse(w http.ResponseWriter) error
type CreateRegistration500JSONResponse ¶ added in v0.3.0
type CreateRegistration500JSONResponse ErrorResponse
func (CreateRegistration500JSONResponse) VisitCreateRegistrationResponse ¶ added in v0.3.0
func (response CreateRegistration500JSONResponse) VisitCreateRegistrationResponse(w http.ResponseWriter) error
type CreateRegistrationJSONRequestBody ¶ added in v0.3.0
type CreateRegistrationJSONRequestBody = CreateRegistrationRequest
CreateRegistrationJSONRequestBody defines body for CreateRegistration for application/json ContentType.
type CreateRegistrationRequest ¶ added in v0.3.0
type CreateRegistrationRequest struct {
AppBiometricEnabled *bool `json:"app_biometric_enabled,omitempty"`
AppSettingsLocked *bool `json:"app_settings_locked,omitempty"`
DeviceName string `json:"device_name"`
ExpiresInHours CreateRegistrationRequestExpiresInHours `json:"expires_in_hours"`
HeartbeatServerUrl string `json:"heartbeat_server_url"`
IntervalSeconds int `json:"interval_seconds"`
OwnerId ID `json:"owner_id"`
}
CreateRegistrationRequest defines model for CreateRegistrationRequest.
type CreateRegistrationRequestExpiresInHours ¶ added in v0.3.0
type CreateRegistrationRequestExpiresInHours int
CreateRegistrationRequestExpiresInHours defines model for CreateRegistrationRequest.ExpiresInHours.
const ( N1 CreateRegistrationRequestExpiresInHours = 1 N168 CreateRegistrationRequestExpiresInHours = 168 N24 CreateRegistrationRequestExpiresInHours = 24 N48 CreateRegistrationRequestExpiresInHours = 48 )
Defines values for CreateRegistrationRequestExpiresInHours.
type CreateRegistrationRequestObject ¶ added in v0.3.0
type CreateRegistrationRequestObject struct {
Body *CreateRegistrationJSONRequestBody
}
type CreateRegistrationResponseObject ¶ added in v0.3.0
type CreateRegistrationResponseObject interface {
VisitCreateRegistrationResponse(w http.ResponseWriter) error
}
type CreateUser201JSONResponse ¶
type CreateUser201JSONResponse User
func (CreateUser201JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser201JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser400JSONResponse ¶
type CreateUser400JSONResponse ErrorResponse
func (CreateUser400JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser400JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser401JSONResponse ¶
type CreateUser401JSONResponse ErrorResponse
func (CreateUser401JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser401JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser403Response ¶
type CreateUser403Response struct {
}
func (CreateUser403Response) VisitCreateUserResponse ¶
func (response CreateUser403Response) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser409JSONResponse ¶
type CreateUser409JSONResponse ErrorResponse
func (CreateUser409JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser409JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUser500JSONResponse ¶
type CreateUser500JSONResponse ErrorResponse
func (CreateUser500JSONResponse) VisitCreateUserResponse ¶
func (response CreateUser500JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody = CreateUserRequest
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserRequest ¶
type CreateUserRequest struct {
// DisplayName User's public name. Unicode allowed.
DisplayName DisplayName `json:"display_name"`
Email openapi_types.Email `json:"email"`
// Username Unique username. Lowercase alphanumeric, underscores, and hyphens only. Uppercase letters are not accepted.
Username Username `json:"username"`
}
CreateUserRequest defines model for CreateUserRequest.
type CreateUserRequestObject ¶
type CreateUserRequestObject struct {
Body *CreateUserJSONRequestBody
}
type CreateUserResponseObject ¶
type CreateUserResponseObject interface {
VisitCreateUserResponse(w http.ResponseWriter) error
}
type DashboardServiceCount ¶
type DashboardServiceCount struct {
AllowCount int64 `json:"allow_count"`
DenyCount int64 `json:"deny_count"`
Host string `json:"host"`
}
DashboardServiceCount defines model for DashboardServiceCount.
type DashboardServicesResponse ¶
type DashboardServicesResponse struct {
Services []DashboardServiceCount `json:"services"`
}
DashboardServicesResponse defines model for DashboardServicesResponse.
type DashboardStats ¶
type DashboardStats struct {
AllowedCount int64 `json:"allowed_count"`
// AvgDurationUs Average request processing duration in microseconds over the time window
AvgDurationUs int64 `json:"avg_duration_us"`
DeniedCount int64 `json:"denied_count"`
TotalRequests int64 `json:"total_requests"`
UniqueIps int64 `json:"unique_ips"`
}
DashboardStats defines model for DashboardStats.
type DashboardTopDeniedIp ¶
DashboardTopDeniedIp defines model for DashboardTopDeniedIp.
type DashboardTopDeniedIpsResponse ¶
type DashboardTopDeniedIpsResponse struct {
Ips []DashboardTopDeniedIp `json:"ips"`
}
DashboardTopDeniedIpsResponse defines model for DashboardTopDeniedIpsResponse.
type DashboardTrafficBucket ¶
type DashboardTrafficBucket struct {
AllowCount int64 `json:"allow_count"`
DenyCount int64 `json:"deny_count"`
Timestamp UTCTime `json:"timestamp"`
}
DashboardTrafficBucket defines model for DashboardTrafficBucket.
type DashboardTrafficResponse ¶
type DashboardTrafficResponse struct {
Buckets []DashboardTrafficBucket `json:"buckets"`
}
DashboardTrafficResponse defines model for DashboardTrafficResponse.
type DeleteDevice204Response ¶
type DeleteDevice204Response struct {
}
func (DeleteDevice204Response) VisitDeleteDeviceResponse ¶
func (response DeleteDevice204Response) VisitDeleteDeviceResponse(w http.ResponseWriter) error
type DeleteDevice404JSONResponse ¶
type DeleteDevice404JSONResponse ErrorResponse
func (DeleteDevice404JSONResponse) VisitDeleteDeviceResponse ¶
func (response DeleteDevice404JSONResponse) VisitDeleteDeviceResponse(w http.ResponseWriter) error
type DeleteDevice500JSONResponse ¶
type DeleteDevice500JSONResponse ErrorResponse
func (DeleteDevice500JSONResponse) VisitDeleteDeviceResponse ¶
func (response DeleteDevice500JSONResponse) VisitDeleteDeviceResponse(w http.ResponseWriter) error
type DeleteDeviceAPIKey204Response ¶ added in v0.3.0
type DeleteDeviceAPIKey204Response struct {
}
func (DeleteDeviceAPIKey204Response) VisitDeleteDeviceAPIKeyResponse ¶ added in v0.3.0
func (response DeleteDeviceAPIKey204Response) VisitDeleteDeviceAPIKeyResponse(w http.ResponseWriter) error
type DeleteDeviceAPIKey404JSONResponse ¶ added in v0.3.0
type DeleteDeviceAPIKey404JSONResponse ErrorResponse
func (DeleteDeviceAPIKey404JSONResponse) VisitDeleteDeviceAPIKeyResponse ¶ added in v0.3.0
func (response DeleteDeviceAPIKey404JSONResponse) VisitDeleteDeviceAPIKeyResponse(w http.ResponseWriter) error
type DeleteDeviceAPIKey500JSONResponse ¶ added in v0.3.0
type DeleteDeviceAPIKey500JSONResponse ErrorResponse
func (DeleteDeviceAPIKey500JSONResponse) VisitDeleteDeviceAPIKeyResponse ¶ added in v0.3.0
func (response DeleteDeviceAPIKey500JSONResponse) VisitDeleteDeviceAPIKeyResponse(w http.ResponseWriter) error
type DeleteDeviceAPIKeyRequestObject ¶ added in v0.3.0
type DeleteDeviceAPIKeyRequestObject struct {
DeviceId ID `json:"device_id"`
}
type DeleteDeviceAPIKeyResponseObject ¶ added in v0.3.0
type DeleteDeviceAPIKeyResponseObject interface {
VisitDeleteDeviceAPIKeyResponse(w http.ResponseWriter) error
}
type DeleteDeviceRequestObject ¶
type DeleteDeviceRequestObject struct {
DeviceId ID `json:"device_id"`
}
type DeleteDeviceResponseObject ¶
type DeleteDeviceResponseObject interface {
VisitDeleteDeviceResponse(w http.ResponseWriter) error
}
type DeleteRegistration204Response ¶ added in v0.3.0
type DeleteRegistration204Response struct {
}
func (DeleteRegistration204Response) VisitDeleteRegistrationResponse ¶ added in v0.3.0
func (response DeleteRegistration204Response) VisitDeleteRegistrationResponse(w http.ResponseWriter) error
type DeleteRegistration401Response ¶ added in v0.3.0
type DeleteRegistration401Response struct {
}
func (DeleteRegistration401Response) VisitDeleteRegistrationResponse ¶ added in v0.3.0
func (response DeleteRegistration401Response) VisitDeleteRegistrationResponse(w http.ResponseWriter) error
type DeleteRegistration403Response ¶ added in v0.3.0
type DeleteRegistration403Response struct {
}
func (DeleteRegistration403Response) VisitDeleteRegistrationResponse ¶ added in v0.3.0
func (response DeleteRegistration403Response) VisitDeleteRegistrationResponse(w http.ResponseWriter) error
type DeleteRegistration404JSONResponse ¶ added in v0.3.0
type DeleteRegistration404JSONResponse ErrorResponse
func (DeleteRegistration404JSONResponse) VisitDeleteRegistrationResponse ¶ added in v0.3.0
func (response DeleteRegistration404JSONResponse) VisitDeleteRegistrationResponse(w http.ResponseWriter) error
type DeleteRegistration500JSONResponse ¶ added in v0.3.0
type DeleteRegistration500JSONResponse ErrorResponse
func (DeleteRegistration500JSONResponse) VisitDeleteRegistrationResponse ¶ added in v0.3.0
func (response DeleteRegistration500JSONResponse) VisitDeleteRegistrationResponse(w http.ResponseWriter) error
type DeleteRegistrationRequestObject ¶ added in v0.3.0
type DeleteRegistrationRequestObject struct {
RegistrationId ID `json:"registration_id"`
}
type DeleteRegistrationResponseObject ¶ added in v0.3.0
type DeleteRegistrationResponseObject interface {
VisitDeleteRegistrationResponse(w http.ResponseWriter) error
}
type DeleteUser204Response ¶
type DeleteUser204Response struct {
}
func (DeleteUser204Response) VisitDeleteUserResponse ¶
func (response DeleteUser204Response) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser401JSONResponse ¶
type DeleteUser401JSONResponse ErrorResponse
func (DeleteUser401JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser401JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser403JSONResponse ¶
type DeleteUser403JSONResponse ErrorResponse
func (DeleteUser403JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser403JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser404JSONResponse ¶
type DeleteUser404JSONResponse ErrorResponse
func (DeleteUser404JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser404JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUser500JSONResponse ¶
type DeleteUser500JSONResponse ErrorResponse
func (DeleteUser500JSONResponse) VisitDeleteUserResponse ¶
func (response DeleteUser500JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error
type DeleteUserRequestObject ¶
type DeleteUserRequestObject struct {
UserId ID `json:"user_id"`
}
type DeleteUserResponseObject ¶
type DeleteUserResponseObject interface {
VisitDeleteUserResponse(w http.ResponseWriter) error
}
type DemoteUser200JSONResponse ¶
type DemoteUser200JSONResponse User
func (DemoteUser200JSONResponse) VisitDemoteUserResponse ¶
func (response DemoteUser200JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error
type DemoteUser401JSONResponse ¶
type DemoteUser401JSONResponse ErrorResponse
func (DemoteUser401JSONResponse) VisitDemoteUserResponse ¶
func (response DemoteUser401JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error
type DemoteUser403JSONResponse ¶
type DemoteUser403JSONResponse ErrorResponse
func (DemoteUser403JSONResponse) VisitDemoteUserResponse ¶
func (response DemoteUser403JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error
type DemoteUser404JSONResponse ¶
type DemoteUser404JSONResponse ErrorResponse
func (DemoteUser404JSONResponse) VisitDemoteUserResponse ¶
func (response DemoteUser404JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error
type DemoteUser500JSONResponse ¶
type DemoteUser500JSONResponse ErrorResponse
func (DemoteUser500JSONResponse) VisitDemoteUserResponse ¶
func (response DemoteUser500JSONResponse) VisitDemoteUserResponse(w http.ResponseWriter) error
type DemoteUserRequestObject ¶
type DemoteUserRequestObject struct {
UserId ID `json:"user_id"`
}
type DemoteUserResponseObject ¶
type DemoteUserResponseObject interface {
VisitDemoteUserResponse(w http.ResponseWriter) error
}
type DesiredHostGroup ¶ added in v0.3.0
type DesiredHostGroup struct {
// Color UI accent colour. Null means "not chosen".
Color *string `json:"color"`
Description *string `json:"description"`
// HostIds Known-host IDs that should be members of this group.
HostIds *[]ID `json:"host_ids,omitempty"`
Icon *string `json:"icon"`
Id *ID `json:"id"`
Name string `json:"name"`
}
DesiredHostGroup A single host group inside a reconcile request. A null `id` marks a brand-new group; a non-null `id` must match an existing group.
type DesiredKnownHost ¶ added in v0.3.0
type DesiredKnownHost struct {
Fqdn string `json:"fqdn"`
// GroupIds Host group IDs this host should belong to. Replaces the host's full group membership.
GroupIds []ID `json:"group_ids"`
Icon *string `json:"icon"`
Id *ID `json:"id"`
}
DesiredKnownHost A single known host inside a reconcile request. A null `id` marks a brand-new host; a non-null `id` must match an existing row. `fqdn` is immutable on updates — a mismatch is rejected. `group_ids` replaces the host's full group membership.
type Device ¶
type Device struct {
// AddressCount Number of currently enabled addresses for this device.
AddressCount *int `json:"address_count,omitempty"`
// ApiKeyPrefix Prefix of the device API key (for display only). Null if no API key has been generated yet.
ApiKeyPrefix *string `json:"api_key_prefix"`
CreatedAt UTCTime `json:"created_at"`
// Description Free-form note about the device.
Description *string `json:"description"`
// DeviceType Network behaviour classification. Defaults to "static".
DeviceType DeviceDeviceType `json:"device_type"`
// Icon Tabler icon name override (e.g. "IconRouter").
Icon *string `json:"icon"`
Id ID `json:"id"`
// LastSeenAt Most recent address activity for this device (heartbeat or manual update).
LastSeenAt *UTCTime `json:"last_seen_at"`
// Name User-friendly name for the device
Name string `json:"name"`
OwnerId ID `json:"owner_id"`
// OwnerName Display name of the owning user (for display only).
OwnerName *string `json:"owner_name,omitempty"`
// UpdatedAt Last time the device profile was modified.
UpdatedAt UTCTime `json:"updated_at"`
}
Device defines model for Device.
type DeviceAPIKeyResponse ¶ added in v0.3.0
type DeviceAPIKeyResponse struct {
// ApiKey Secret key for the device.
ApiKey string `json:"api_key"`
Device Device `json:"device"`
}
DeviceAPIKeyResponse defines model for DeviceAPIKeyResponse.
type DeviceAddressLeaseRule ¶
type DeviceAddressLeaseRule struct {
CreatedAt UTCTime `json:"created_at"`
DeviceId ID `json:"device_id"`
// Enabled Whether the lease rule is active
Enabled bool `json:"enabled"`
Id ID `json:"id"`
// TtlSeconds Seconds after which an enabled device address lease expires
TtlSeconds int `json:"ttl_seconds"`
UpdatedAt UTCTime `json:"updated_at"`
}
DeviceAddressLeaseRule defines model for DeviceAddressLeaseRule.
type DeviceDeviceType ¶ added in v0.2.0
type DeviceDeviceType string
DeviceDeviceType Network behaviour classification. Defaults to "static".
const ( DeviceDeviceTypeMobile DeviceDeviceType = "mobile" DeviceDeviceTypeStatic DeviceDeviceType = "static" )
Defines values for DeviceDeviceType.
type DeviceHeartbeat200JSONResponse ¶
type DeviceHeartbeat200JSONResponse Address
func (DeviceHeartbeat200JSONResponse) VisitDeviceHeartbeatResponse ¶
func (response DeviceHeartbeat200JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error
type DeviceHeartbeat201JSONResponse ¶
type DeviceHeartbeat201JSONResponse Address
func (DeviceHeartbeat201JSONResponse) VisitDeviceHeartbeatResponse ¶
func (response DeviceHeartbeat201JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error
type DeviceHeartbeat400JSONResponse ¶
type DeviceHeartbeat400JSONResponse ErrorResponse
func (DeviceHeartbeat400JSONResponse) VisitDeviceHeartbeatResponse ¶
func (response DeviceHeartbeat400JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error
type DeviceHeartbeat404JSONResponse ¶
type DeviceHeartbeat404JSONResponse ErrorResponse
func (DeviceHeartbeat404JSONResponse) VisitDeviceHeartbeatResponse ¶
func (response DeviceHeartbeat404JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error
type DeviceHeartbeat500JSONResponse ¶
type DeviceHeartbeat500JSONResponse ErrorResponse
func (DeviceHeartbeat500JSONResponse) VisitDeviceHeartbeatResponse ¶
func (response DeviceHeartbeat500JSONResponse) VisitDeviceHeartbeatResponse(w http.ResponseWriter) error
type DeviceHeartbeatByAPIKey200JSONResponse ¶
type DeviceHeartbeatByAPIKey200JSONResponse Address
func (DeviceHeartbeatByAPIKey200JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse ¶
func (response DeviceHeartbeatByAPIKey200JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error
type DeviceHeartbeatByAPIKey201JSONResponse ¶
type DeviceHeartbeatByAPIKey201JSONResponse Address
func (DeviceHeartbeatByAPIKey201JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse ¶
func (response DeviceHeartbeatByAPIKey201JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error
type DeviceHeartbeatByAPIKey400JSONResponse ¶
type DeviceHeartbeatByAPIKey400JSONResponse ErrorResponse
func (DeviceHeartbeatByAPIKey400JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse ¶
func (response DeviceHeartbeatByAPIKey400JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error
type DeviceHeartbeatByAPIKey404JSONResponse ¶
type DeviceHeartbeatByAPIKey404JSONResponse ErrorResponse
func (DeviceHeartbeatByAPIKey404JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse ¶
func (response DeviceHeartbeatByAPIKey404JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error
type DeviceHeartbeatByAPIKey500JSONResponse ¶
type DeviceHeartbeatByAPIKey500JSONResponse ErrorResponse
func (DeviceHeartbeatByAPIKey500JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse ¶
func (response DeviceHeartbeatByAPIKey500JSONResponse) VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error
type DeviceHeartbeatByAPIKeyJSONRequestBody ¶
type DeviceHeartbeatByAPIKeyJSONRequestBody = DeviceHeartbeatByApiKeyRequest
DeviceHeartbeatByAPIKeyJSONRequestBody defines body for DeviceHeartbeatByAPIKey for application/json ContentType.
type DeviceHeartbeatByAPIKeyRequestObject ¶
type DeviceHeartbeatByAPIKeyRequestObject struct {
Body *DeviceHeartbeatByAPIKeyJSONRequestBody
}
type DeviceHeartbeatByAPIKeyResponseObject ¶
type DeviceHeartbeatByAPIKeyResponseObject interface {
VisitDeviceHeartbeatByAPIKeyResponse(w http.ResponseWriter) error
}
type DeviceHeartbeatByApiKeyRequest ¶
type DeviceHeartbeatByApiKeyRequest struct {
// Ip IPv4 or IPv6 address
Ip *IPAddress `json:"ip,omitempty"`
}
DeviceHeartbeatByApiKeyRequest defines model for DeviceHeartbeatByApiKeyRequest.
type DeviceHeartbeatRequestObject ¶
type DeviceHeartbeatRequestObject struct {
DeviceId ID `json:"device_id"`
}
type DeviceHeartbeatResponseObject ¶
type DeviceHeartbeatResponseObject interface {
VisitDeviceHeartbeatResponse(w http.ResponseWriter) error
}
type DeviceTypeItem ¶ added in v0.2.0
DeviceTypeItem defines model for DeviceTypeItem.
type DisableAddress200JSONResponse ¶
type DisableAddress200JSONResponse Address
func (DisableAddress200JSONResponse) VisitDisableAddressResponse ¶
func (response DisableAddress200JSONResponse) VisitDisableAddressResponse(w http.ResponseWriter) error
type DisableAddress400JSONResponse ¶
type DisableAddress400JSONResponse ErrorResponse
func (DisableAddress400JSONResponse) VisitDisableAddressResponse ¶
func (response DisableAddress400JSONResponse) VisitDisableAddressResponse(w http.ResponseWriter) error
type DisableAddress404JSONResponse ¶
type DisableAddress404JSONResponse ErrorResponse
func (DisableAddress404JSONResponse) VisitDisableAddressResponse ¶
func (response DisableAddress404JSONResponse) VisitDisableAddressResponse(w http.ResponseWriter) error
type DisableAddress500JSONResponse ¶
type DisableAddress500JSONResponse ErrorResponse
func (DisableAddress500JSONResponse) VisitDisableAddressResponse ¶
func (response DisableAddress500JSONResponse) VisitDisableAddressResponse(w http.ResponseWriter) error
type DisableAddressResponseObject ¶
type DisableAddressResponseObject interface {
VisitDisableAddressResponse(w http.ResponseWriter) error
}
type DisableDeviceAddressLeaseRule204Response ¶
type DisableDeviceAddressLeaseRule204Response struct {
}
func (DisableDeviceAddressLeaseRule204Response) VisitDisableDeviceAddressLeaseRuleResponse ¶
func (response DisableDeviceAddressLeaseRule204Response) VisitDisableDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type DisableDeviceAddressLeaseRule404JSONResponse ¶
type DisableDeviceAddressLeaseRule404JSONResponse ErrorResponse
func (DisableDeviceAddressLeaseRule404JSONResponse) VisitDisableDeviceAddressLeaseRuleResponse ¶
func (response DisableDeviceAddressLeaseRule404JSONResponse) VisitDisableDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type DisableDeviceAddressLeaseRule500JSONResponse ¶
type DisableDeviceAddressLeaseRule500JSONResponse ErrorResponse
func (DisableDeviceAddressLeaseRule500JSONResponse) VisitDisableDeviceAddressLeaseRuleResponse ¶
func (response DisableDeviceAddressLeaseRule500JSONResponse) VisitDisableDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type DisableDeviceAddressLeaseRuleRequestObject ¶
type DisableDeviceAddressLeaseRuleRequestObject struct {
DeviceId ID `json:"device_id"`
}
type DisableDeviceAddressLeaseRuleResponseObject ¶
type DisableDeviceAddressLeaseRuleResponseObject interface {
VisitDisableDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
}
type DisableMaxActiveAddressesRule204Response ¶ added in v0.2.0
type DisableMaxActiveAddressesRule204Response struct {
}
func (DisableMaxActiveAddressesRule204Response) VisitDisableMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response DisableMaxActiveAddressesRule204Response) VisitDisableMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type DisableMaxActiveAddressesRule404JSONResponse ¶ added in v0.2.0
type DisableMaxActiveAddressesRule404JSONResponse ErrorResponse
func (DisableMaxActiveAddressesRule404JSONResponse) VisitDisableMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response DisableMaxActiveAddressesRule404JSONResponse) VisitDisableMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type DisableMaxActiveAddressesRule500JSONResponse ¶ added in v0.2.0
type DisableMaxActiveAddressesRule500JSONResponse ErrorResponse
func (DisableMaxActiveAddressesRule500JSONResponse) VisitDisableMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response DisableMaxActiveAddressesRule500JSONResponse) VisitDisableMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type DisableMaxActiveAddressesRuleRequestObject ¶ added in v0.2.0
type DisableMaxActiveAddressesRuleRequestObject struct {
DeviceId ID `json:"device_id"`
}
type DisableMaxActiveAddressesRuleResponseObject ¶ added in v0.2.0
type DisableMaxActiveAddressesRuleResponseObject interface {
VisitDisableMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
}
type ErrorResponse ¶
type ErrorResponse struct {
Error *string `json:"error,omitempty"`
}
ErrorResponse defines model for ErrorResponse.
type GetAccessLog200JSONResponse ¶
type GetAccessLog200JSONResponse AccessLogResponse
func (GetAccessLog200JSONResponse) VisitGetAccessLogResponse ¶
func (response GetAccessLog200JSONResponse) VisitGetAccessLogResponse(w http.ResponseWriter) error
type GetAccessLog401JSONResponse ¶
type GetAccessLog401JSONResponse ErrorResponse
func (GetAccessLog401JSONResponse) VisitGetAccessLogResponse ¶
func (response GetAccessLog401JSONResponse) VisitGetAccessLogResponse(w http.ResponseWriter) error
type GetAccessLog403JSONResponse ¶
type GetAccessLog403JSONResponse ErrorResponse
func (GetAccessLog403JSONResponse) VisitGetAccessLogResponse ¶
func (response GetAccessLog403JSONResponse) VisitGetAccessLogResponse(w http.ResponseWriter) error
type GetAccessLog500JSONResponse ¶
type GetAccessLog500JSONResponse ErrorResponse
func (GetAccessLog500JSONResponse) VisitGetAccessLogResponse ¶
func (response GetAccessLog500JSONResponse) VisitGetAccessLogResponse(w http.ResponseWriter) error
type GetAccessLogByCountry200JSONResponse ¶
type GetAccessLogByCountry200JSONResponse []AccessLogCountryStats
func (GetAccessLogByCountry200JSONResponse) VisitGetAccessLogByCountryResponse ¶
func (response GetAccessLogByCountry200JSONResponse) VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error
type GetAccessLogByCountry401JSONResponse ¶
type GetAccessLogByCountry401JSONResponse ErrorResponse
func (GetAccessLogByCountry401JSONResponse) VisitGetAccessLogByCountryResponse ¶
func (response GetAccessLogByCountry401JSONResponse) VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error
type GetAccessLogByCountry403JSONResponse ¶
type GetAccessLogByCountry403JSONResponse ErrorResponse
func (GetAccessLogByCountry403JSONResponse) VisitGetAccessLogByCountryResponse ¶
func (response GetAccessLogByCountry403JSONResponse) VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error
type GetAccessLogByCountry500JSONResponse ¶
type GetAccessLogByCountry500JSONResponse ErrorResponse
func (GetAccessLogByCountry500JSONResponse) VisitGetAccessLogByCountryResponse ¶
func (response GetAccessLogByCountry500JSONResponse) VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error
type GetAccessLogByCountryParams ¶
type GetAccessLogByCountryParams struct {
// From RFC3339 start of time window (default 24h ago)
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To RFC3339 end of time window (default now)
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}
GetAccessLogByCountryParams defines parameters for GetAccessLogByCountry.
type GetAccessLogByCountryRequestObject ¶
type GetAccessLogByCountryRequestObject struct {
Params GetAccessLogByCountryParams
}
type GetAccessLogByCountryResponseObject ¶
type GetAccessLogByCountryResponseObject interface {
VisitGetAccessLogByCountryResponse(w http.ResponseWriter) error
}
type GetAccessLogDenyReasons200JSONResponse ¶
type GetAccessLogDenyReasons200JSONResponse []string
func (GetAccessLogDenyReasons200JSONResponse) VisitGetAccessLogDenyReasonsResponse ¶
func (response GetAccessLogDenyReasons200JSONResponse) VisitGetAccessLogDenyReasonsResponse(w http.ResponseWriter) error
type GetAccessLogDenyReasons401JSONResponse ¶
type GetAccessLogDenyReasons401JSONResponse ErrorResponse
func (GetAccessLogDenyReasons401JSONResponse) VisitGetAccessLogDenyReasonsResponse ¶
func (response GetAccessLogDenyReasons401JSONResponse) VisitGetAccessLogDenyReasonsResponse(w http.ResponseWriter) error
type GetAccessLogDenyReasons403JSONResponse ¶
type GetAccessLogDenyReasons403JSONResponse ErrorResponse
func (GetAccessLogDenyReasons403JSONResponse) VisitGetAccessLogDenyReasonsResponse ¶
func (response GetAccessLogDenyReasons403JSONResponse) VisitGetAccessLogDenyReasonsResponse(w http.ResponseWriter) error
type GetAccessLogDenyReasons500JSONResponse ¶
type GetAccessLogDenyReasons500JSONResponse ErrorResponse
func (GetAccessLogDenyReasons500JSONResponse) VisitGetAccessLogDenyReasonsResponse ¶
func (response GetAccessLogDenyReasons500JSONResponse) VisitGetAccessLogDenyReasonsResponse(w http.ResponseWriter) error
type GetAccessLogDenyReasonsRequestObject ¶
type GetAccessLogDenyReasonsRequestObject struct {
}
type GetAccessLogDenyReasonsResponseObject ¶
type GetAccessLogDenyReasonsResponseObject interface {
VisitGetAccessLogDenyReasonsResponse(w http.ResponseWriter) error
}
type GetAccessLogParams ¶
type GetAccessLogParams struct {
DeviceId *ID `form:"device_id,omitempty" json:"device_id,omitempty"`
Outcome *bool `form:"outcome,omitempty" json:"outcome,omitempty"`
// DenyReason Filter by deny reason (see GET /access-log/deny-reasons for valid values)
DenyReason *string `form:"deny_reason,omitempty" json:"deny_reason,omitempty"`
// Ip Exact client IP match
Ip *string `form:"ip,omitempty" json:"ip,omitempty"`
// Host Exact target host match
Host *string `form:"host,omitempty" json:"host,omitempty"`
// CountryCode ISO 3166-1 alpha-2 country code filter (e.g. "DE")
CountryCode *string `form:"country_code,omitempty" json:"country_code,omitempty"`
// ContinentCode Continent code filter (e.g. "EU")
ContinentCode *string `form:"continent_code,omitempty" json:"continent_code,omitempty"`
// From RFC3339 start of time window (default 24h ago)
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To RFC3339 end of time window (default now)
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// Limit Page size (default 50, max 200)
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// BeforeId Cursor; return rows with id < before_id
BeforeId *ID `form:"before_id,omitempty" json:"before_id,omitempty"`
}
GetAccessLogParams defines parameters for GetAccessLog.
type GetAccessLogRequestObject ¶
type GetAccessLogRequestObject struct {
Params GetAccessLogParams
}
type GetAccessLogResponseObject ¶
type GetAccessLogResponseObject interface {
VisitGetAccessLogResponse(w http.ResponseWriter) error
}
type GetAddressHistory200JSONResponse ¶
type GetAddressHistory200JSONResponse AddressHistoryResponse
func (GetAddressHistory200JSONResponse) VisitGetAddressHistoryResponse ¶
func (response GetAddressHistory200JSONResponse) VisitGetAddressHistoryResponse(w http.ResponseWriter) error
type GetAddressHistory400JSONResponse ¶
type GetAddressHistory400JSONResponse ErrorResponse
func (GetAddressHistory400JSONResponse) VisitGetAddressHistoryResponse ¶
func (response GetAddressHistory400JSONResponse) VisitGetAddressHistoryResponse(w http.ResponseWriter) error
type GetAddressHistory403JSONResponse ¶ added in v0.3.0
type GetAddressHistory403JSONResponse ErrorResponse
func (GetAddressHistory403JSONResponse) VisitGetAddressHistoryResponse ¶ added in v0.3.0
func (response GetAddressHistory403JSONResponse) VisitGetAddressHistoryResponse(w http.ResponseWriter) error
type GetAddressHistory500JSONResponse ¶
type GetAddressHistory500JSONResponse ErrorResponse
func (GetAddressHistory500JSONResponse) VisitGetAddressHistoryResponse ¶
func (response GetAddressHistory500JSONResponse) VisitGetAddressHistoryResponse(w http.ResponseWriter) error
type GetAddressHistoryParams ¶
type GetAddressHistoryParams struct {
// DeviceId Filter by device ID(s). Empty means all devices.
DeviceId *[]ID `form:"device_id,omitempty" json:"device_id,omitempty"`
// From RFC3339 start of time window (default 24h ago)
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To RFC3339 end of time window (default now)
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// Granularity Time bucket granularity (default hour)
Granularity *GetAddressHistoryParamsGranularity `form:"granularity,omitempty" json:"granularity,omitempty"`
// Source Filter events by source
Source *AddressEventSource `form:"source,omitempty" json:"source,omitempty"`
// IsEnabled Filter events by enabled/disabled state
IsEnabled *bool `form:"is_enabled,omitempty" json:"is_enabled,omitempty"`
// Ip Filter events by IP address (substring match)
Ip *string `form:"ip,omitempty" json:"ip,omitempty"`
// Limit Maximum number of events to return (default 50, max 200)
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// BeforeId Cursor for pagination — return events with id < before_id
BeforeId *int64 `form:"before_id,omitempty" json:"before_id,omitempty"`
// IncludeAll When false (default), returns only state-change events (created, enabled, disabled). When true, includes all events including repeated heartbeat refreshes.
IncludeAll *bool `form:"include_all,omitempty" json:"include_all,omitempty"`
}
GetAddressHistoryParams defines parameters for GetAddressHistory.
type GetAddressHistoryParamsGranularity ¶
type GetAddressHistoryParamsGranularity string
GetAddressHistoryParamsGranularity defines parameters for GetAddressHistory.
const ( GetAddressHistoryParamsGranularityDay GetAddressHistoryParamsGranularity = "day" GetAddressHistoryParamsGranularityHour GetAddressHistoryParamsGranularity = "hour" )
Defines values for GetAddressHistoryParamsGranularity.
type GetAddressHistoryRequestObject ¶
type GetAddressHistoryRequestObject struct {
Params GetAddressHistoryParams
}
type GetAddressHistoryResponseObject ¶
type GetAddressHistoryResponseObject interface {
VisitGetAddressHistoryResponse(w http.ResponseWriter) error
}
type GetCurrentUser200JSONResponse ¶
type GetCurrentUser200JSONResponse User
func (GetCurrentUser200JSONResponse) VisitGetCurrentUserResponse ¶
func (response GetCurrentUser200JSONResponse) VisitGetCurrentUserResponse(w http.ResponseWriter) error
type GetCurrentUser401JSONResponse ¶
type GetCurrentUser401JSONResponse ErrorResponse
func (GetCurrentUser401JSONResponse) VisitGetCurrentUserResponse ¶
func (response GetCurrentUser401JSONResponse) VisitGetCurrentUserResponse(w http.ResponseWriter) error
type GetCurrentUser500JSONResponse ¶
type GetCurrentUser500JSONResponse ErrorResponse
func (GetCurrentUser500JSONResponse) VisitGetCurrentUserResponse ¶
func (response GetCurrentUser500JSONResponse) VisitGetCurrentUserResponse(w http.ResponseWriter) error
type GetCurrentUserRequestObject ¶
type GetCurrentUserRequestObject struct {
}
type GetCurrentUserResponseObject ¶
type GetCurrentUserResponseObject interface {
VisitGetCurrentUserResponse(w http.ResponseWriter) error
}
type GetDashboardServices200JSONResponse ¶
type GetDashboardServices200JSONResponse DashboardServicesResponse
func (GetDashboardServices200JSONResponse) VisitGetDashboardServicesResponse ¶
func (response GetDashboardServices200JSONResponse) VisitGetDashboardServicesResponse(w http.ResponseWriter) error
type GetDashboardServices401JSONResponse ¶
type GetDashboardServices401JSONResponse ErrorResponse
func (GetDashboardServices401JSONResponse) VisitGetDashboardServicesResponse ¶
func (response GetDashboardServices401JSONResponse) VisitGetDashboardServicesResponse(w http.ResponseWriter) error
type GetDashboardServices403JSONResponse ¶ added in v0.3.0
type GetDashboardServices403JSONResponse ErrorResponse
func (GetDashboardServices403JSONResponse) VisitGetDashboardServicesResponse ¶ added in v0.3.0
func (response GetDashboardServices403JSONResponse) VisitGetDashboardServicesResponse(w http.ResponseWriter) error
type GetDashboardServices500JSONResponse ¶
type GetDashboardServices500JSONResponse ErrorResponse
func (GetDashboardServices500JSONResponse) VisitGetDashboardServicesResponse ¶
func (response GetDashboardServices500JSONResponse) VisitGetDashboardServicesResponse(w http.ResponseWriter) error
type GetDashboardServicesParams ¶
type GetDashboardServicesParams struct {
// From RFC3339 start of time window (default 24h ago)
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To RFC3339 end of time window (default now)
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}
GetDashboardServicesParams defines parameters for GetDashboardServices.
type GetDashboardServicesRequestObject ¶
type GetDashboardServicesRequestObject struct {
Params GetDashboardServicesParams
}
type GetDashboardServicesResponseObject ¶
type GetDashboardServicesResponseObject interface {
VisitGetDashboardServicesResponse(w http.ResponseWriter) error
}
type GetDashboardStats200JSONResponse ¶
type GetDashboardStats200JSONResponse DashboardStats
func (GetDashboardStats200JSONResponse) VisitGetDashboardStatsResponse ¶
func (response GetDashboardStats200JSONResponse) VisitGetDashboardStatsResponse(w http.ResponseWriter) error
type GetDashboardStats401JSONResponse ¶
type GetDashboardStats401JSONResponse ErrorResponse
func (GetDashboardStats401JSONResponse) VisitGetDashboardStatsResponse ¶
func (response GetDashboardStats401JSONResponse) VisitGetDashboardStatsResponse(w http.ResponseWriter) error
type GetDashboardStats403JSONResponse ¶ added in v0.3.0
type GetDashboardStats403JSONResponse ErrorResponse
func (GetDashboardStats403JSONResponse) VisitGetDashboardStatsResponse ¶ added in v0.3.0
func (response GetDashboardStats403JSONResponse) VisitGetDashboardStatsResponse(w http.ResponseWriter) error
type GetDashboardStats500JSONResponse ¶
type GetDashboardStats500JSONResponse ErrorResponse
func (GetDashboardStats500JSONResponse) VisitGetDashboardStatsResponse ¶
func (response GetDashboardStats500JSONResponse) VisitGetDashboardStatsResponse(w http.ResponseWriter) error
type GetDashboardStatsParams ¶
type GetDashboardStatsParams struct {
// From RFC3339 start of time window (default 24h ago)
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To RFC3339 end of time window (default now)
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
}
GetDashboardStatsParams defines parameters for GetDashboardStats.
type GetDashboardStatsRequestObject ¶
type GetDashboardStatsRequestObject struct {
Params GetDashboardStatsParams
}
type GetDashboardStatsResponseObject ¶
type GetDashboardStatsResponseObject interface {
VisitGetDashboardStatsResponse(w http.ResponseWriter) error
}
type GetDashboardTopDeniedIps200JSONResponse ¶
type GetDashboardTopDeniedIps200JSONResponse DashboardTopDeniedIpsResponse
func (GetDashboardTopDeniedIps200JSONResponse) VisitGetDashboardTopDeniedIpsResponse ¶
func (response GetDashboardTopDeniedIps200JSONResponse) VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error
type GetDashboardTopDeniedIps401JSONResponse ¶
type GetDashboardTopDeniedIps401JSONResponse ErrorResponse
func (GetDashboardTopDeniedIps401JSONResponse) VisitGetDashboardTopDeniedIpsResponse ¶
func (response GetDashboardTopDeniedIps401JSONResponse) VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error
type GetDashboardTopDeniedIps403JSONResponse ¶ added in v0.3.0
type GetDashboardTopDeniedIps403JSONResponse ErrorResponse
func (GetDashboardTopDeniedIps403JSONResponse) VisitGetDashboardTopDeniedIpsResponse ¶ added in v0.3.0
func (response GetDashboardTopDeniedIps403JSONResponse) VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error
type GetDashboardTopDeniedIps500JSONResponse ¶
type GetDashboardTopDeniedIps500JSONResponse ErrorResponse
func (GetDashboardTopDeniedIps500JSONResponse) VisitGetDashboardTopDeniedIpsResponse ¶
func (response GetDashboardTopDeniedIps500JSONResponse) VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error
type GetDashboardTopDeniedIpsParams ¶
type GetDashboardTopDeniedIpsParams struct {
// From RFC3339 start of time window (default 24h ago)
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To RFC3339 end of time window (default now)
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// Limit Maximum number of IPs to return (default 10, max 100)
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
}
GetDashboardTopDeniedIpsParams defines parameters for GetDashboardTopDeniedIps.
type GetDashboardTopDeniedIpsRequestObject ¶
type GetDashboardTopDeniedIpsRequestObject struct {
Params GetDashboardTopDeniedIpsParams
}
type GetDashboardTopDeniedIpsResponseObject ¶
type GetDashboardTopDeniedIpsResponseObject interface {
VisitGetDashboardTopDeniedIpsResponse(w http.ResponseWriter) error
}
type GetDashboardTraffic200JSONResponse ¶
type GetDashboardTraffic200JSONResponse DashboardTrafficResponse
func (GetDashboardTraffic200JSONResponse) VisitGetDashboardTrafficResponse ¶
func (response GetDashboardTraffic200JSONResponse) VisitGetDashboardTrafficResponse(w http.ResponseWriter) error
type GetDashboardTraffic401JSONResponse ¶
type GetDashboardTraffic401JSONResponse ErrorResponse
func (GetDashboardTraffic401JSONResponse) VisitGetDashboardTrafficResponse ¶
func (response GetDashboardTraffic401JSONResponse) VisitGetDashboardTrafficResponse(w http.ResponseWriter) error
type GetDashboardTraffic403JSONResponse ¶ added in v0.3.0
type GetDashboardTraffic403JSONResponse ErrorResponse
func (GetDashboardTraffic403JSONResponse) VisitGetDashboardTrafficResponse ¶ added in v0.3.0
func (response GetDashboardTraffic403JSONResponse) VisitGetDashboardTrafficResponse(w http.ResponseWriter) error
type GetDashboardTraffic500JSONResponse ¶
type GetDashboardTraffic500JSONResponse ErrorResponse
func (GetDashboardTraffic500JSONResponse) VisitGetDashboardTrafficResponse ¶
func (response GetDashboardTraffic500JSONResponse) VisitGetDashboardTrafficResponse(w http.ResponseWriter) error
type GetDashboardTrafficParams ¶
type GetDashboardTrafficParams struct {
// From RFC3339 start of time window (default 24h ago)
From *time.Time `form:"from,omitempty" json:"from,omitempty"`
// To RFC3339 end of time window (default now)
To *time.Time `form:"to,omitempty" json:"to,omitempty"`
// Granularity Time bucket granularity (default hour)
Granularity *GetDashboardTrafficParamsGranularity `form:"granularity,omitempty" json:"granularity,omitempty"`
}
GetDashboardTrafficParams defines parameters for GetDashboardTraffic.
type GetDashboardTrafficParamsGranularity ¶
type GetDashboardTrafficParamsGranularity string
GetDashboardTrafficParamsGranularity defines parameters for GetDashboardTraffic.
const ( GetDashboardTrafficParamsGranularityDay GetDashboardTrafficParamsGranularity = "day" GetDashboardTrafficParamsGranularityHour GetDashboardTrafficParamsGranularity = "hour" )
Defines values for GetDashboardTrafficParamsGranularity.
type GetDashboardTrafficRequestObject ¶
type GetDashboardTrafficRequestObject struct {
Params GetDashboardTrafficParams
}
type GetDashboardTrafficResponseObject ¶
type GetDashboardTrafficResponseObject interface {
VisitGetDashboardTrafficResponse(w http.ResponseWriter) error
}
type GetDevice200JSONResponse ¶
type GetDevice200JSONResponse Device
func (GetDevice200JSONResponse) VisitGetDeviceResponse ¶
func (response GetDevice200JSONResponse) VisitGetDeviceResponse(w http.ResponseWriter) error
type GetDevice404JSONResponse ¶
type GetDevice404JSONResponse ErrorResponse
func (GetDevice404JSONResponse) VisitGetDeviceResponse ¶
func (response GetDevice404JSONResponse) VisitGetDeviceResponse(w http.ResponseWriter) error
type GetDevice500JSONResponse ¶
type GetDevice500JSONResponse ErrorResponse
func (GetDevice500JSONResponse) VisitGetDeviceResponse ¶
func (response GetDevice500JSONResponse) VisitGetDeviceResponse(w http.ResponseWriter) error
type GetDeviceAddressLeaseRule200JSONResponse ¶
type GetDeviceAddressLeaseRule200JSONResponse DeviceAddressLeaseRule
func (GetDeviceAddressLeaseRule200JSONResponse) VisitGetDeviceAddressLeaseRuleResponse ¶
func (response GetDeviceAddressLeaseRule200JSONResponse) VisitGetDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type GetDeviceAddressLeaseRule404JSONResponse ¶
type GetDeviceAddressLeaseRule404JSONResponse ErrorResponse
func (GetDeviceAddressLeaseRule404JSONResponse) VisitGetDeviceAddressLeaseRuleResponse ¶
func (response GetDeviceAddressLeaseRule404JSONResponse) VisitGetDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type GetDeviceAddressLeaseRule500JSONResponse ¶
type GetDeviceAddressLeaseRule500JSONResponse ErrorResponse
func (GetDeviceAddressLeaseRule500JSONResponse) VisitGetDeviceAddressLeaseRuleResponse ¶
func (response GetDeviceAddressLeaseRule500JSONResponse) VisitGetDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type GetDeviceAddressLeaseRuleRequestObject ¶
type GetDeviceAddressLeaseRuleRequestObject struct {
DeviceId ID `json:"device_id"`
}
type GetDeviceAddressLeaseRuleResponseObject ¶
type GetDeviceAddressLeaseRuleResponseObject interface {
VisitGetDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
}
type GetDeviceAddresses200JSONResponse ¶
type GetDeviceAddresses200JSONResponse []Address
func (GetDeviceAddresses200JSONResponse) VisitGetDeviceAddressesResponse ¶
func (response GetDeviceAddresses200JSONResponse) VisitGetDeviceAddressesResponse(w http.ResponseWriter) error
type GetDeviceAddresses400JSONResponse ¶
type GetDeviceAddresses400JSONResponse ErrorResponse
func (GetDeviceAddresses400JSONResponse) VisitGetDeviceAddressesResponse ¶
func (response GetDeviceAddresses400JSONResponse) VisitGetDeviceAddressesResponse(w http.ResponseWriter) error
type GetDeviceAddresses404JSONResponse ¶
type GetDeviceAddresses404JSONResponse ErrorResponse
func (GetDeviceAddresses404JSONResponse) VisitGetDeviceAddressesResponse ¶
func (response GetDeviceAddresses404JSONResponse) VisitGetDeviceAddressesResponse(w http.ResponseWriter) error
type GetDeviceAddresses500JSONResponse ¶
type GetDeviceAddresses500JSONResponse ErrorResponse
func (GetDeviceAddresses500JSONResponse) VisitGetDeviceAddressesResponse ¶
func (response GetDeviceAddresses500JSONResponse) VisitGetDeviceAddressesResponse(w http.ResponseWriter) error
type GetDeviceAddressesRequestObject ¶
type GetDeviceAddressesRequestObject struct {
DeviceId ID `json:"device_id"`
}
type GetDeviceAddressesResponseObject ¶
type GetDeviceAddressesResponseObject interface {
VisitGetDeviceAddressesResponse(w http.ResponseWriter) error
}
type GetDeviceRequestObject ¶
type GetDeviceRequestObject struct {
DeviceId ID `json:"device_id"`
}
type GetDeviceResponseObject ¶
type GetDeviceResponseObject interface {
VisitGetDeviceResponse(w http.ResponseWriter) error
}
type GetDevices200JSONResponse ¶
type GetDevices200JSONResponse []Device
func (GetDevices200JSONResponse) VisitGetDevicesResponse ¶
func (response GetDevices200JSONResponse) VisitGetDevicesResponse(w http.ResponseWriter) error
type GetDevices500JSONResponse ¶
type GetDevices500JSONResponse ErrorResponse
func (GetDevices500JSONResponse) VisitGetDevicesResponse ¶
func (response GetDevices500JSONResponse) VisitGetDevicesResponse(w http.ResponseWriter) error
type GetDevicesByUser200JSONResponse ¶ added in v0.3.0
type GetDevicesByUser200JSONResponse []Device
func (GetDevicesByUser200JSONResponse) VisitGetDevicesByUserResponse ¶ added in v0.3.0
func (response GetDevicesByUser200JSONResponse) VisitGetDevicesByUserResponse(w http.ResponseWriter) error
type GetDevicesByUser403JSONResponse ¶ added in v0.3.0
type GetDevicesByUser403JSONResponse ErrorResponse
func (GetDevicesByUser403JSONResponse) VisitGetDevicesByUserResponse ¶ added in v0.3.0
func (response GetDevicesByUser403JSONResponse) VisitGetDevicesByUserResponse(w http.ResponseWriter) error
type GetDevicesByUser404JSONResponse ¶ added in v0.3.0
type GetDevicesByUser404JSONResponse ErrorResponse
func (GetDevicesByUser404JSONResponse) VisitGetDevicesByUserResponse ¶ added in v0.3.0
func (response GetDevicesByUser404JSONResponse) VisitGetDevicesByUserResponse(w http.ResponseWriter) error
type GetDevicesByUser500JSONResponse ¶ added in v0.3.0
type GetDevicesByUser500JSONResponse ErrorResponse
func (GetDevicesByUser500JSONResponse) VisitGetDevicesByUserResponse ¶ added in v0.3.0
func (response GetDevicesByUser500JSONResponse) VisitGetDevicesByUserResponse(w http.ResponseWriter) error
type GetDevicesByUserRequestObject ¶ added in v0.3.0
type GetDevicesByUserRequestObject struct {
UserId ID `json:"user_id"`
}
type GetDevicesByUserResponseObject ¶ added in v0.3.0
type GetDevicesByUserResponseObject interface {
VisitGetDevicesByUserResponse(w http.ResponseWriter) error
}
type GetDevicesRequestObject ¶
type GetDevicesRequestObject struct {
}
type GetDevicesResponseObject ¶
type GetDevicesResponseObject interface {
VisitGetDevicesResponse(w http.ResponseWriter) error
}
type GetMaxActiveAddressesRule200JSONResponse ¶ added in v0.2.0
type GetMaxActiveAddressesRule200JSONResponse MaxActiveAddressesRule
func (GetMaxActiveAddressesRule200JSONResponse) VisitGetMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response GetMaxActiveAddressesRule200JSONResponse) VisitGetMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type GetMaxActiveAddressesRule404JSONResponse ¶ added in v0.2.0
type GetMaxActiveAddressesRule404JSONResponse ErrorResponse
func (GetMaxActiveAddressesRule404JSONResponse) VisitGetMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response GetMaxActiveAddressesRule404JSONResponse) VisitGetMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type GetMaxActiveAddressesRule500JSONResponse ¶ added in v0.2.0
type GetMaxActiveAddressesRule500JSONResponse ErrorResponse
func (GetMaxActiveAddressesRule500JSONResponse) VisitGetMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response GetMaxActiveAddressesRule500JSONResponse) VisitGetMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type GetMaxActiveAddressesRuleRequestObject ¶ added in v0.2.0
type GetMaxActiveAddressesRuleRequestObject struct {
DeviceId ID `json:"device_id"`
}
type GetMaxActiveAddressesRuleResponseObject ¶ added in v0.2.0
type GetMaxActiveAddressesRuleResponseObject interface {
VisitGetMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
}
type GetPolicyUserMap200JSONResponse ¶ added in v0.3.0
type GetPolicyUserMap200JSONResponse PolicyUserMapAudit
func (GetPolicyUserMap200JSONResponse) VisitGetPolicyUserMapResponse ¶ added in v0.3.0
func (response GetPolicyUserMap200JSONResponse) VisitGetPolicyUserMapResponse(w http.ResponseWriter) error
type GetPolicyUserMap401JSONResponse ¶ added in v0.3.0
type GetPolicyUserMap401JSONResponse ErrorResponse
func (GetPolicyUserMap401JSONResponse) VisitGetPolicyUserMapResponse ¶ added in v0.3.0
func (response GetPolicyUserMap401JSONResponse) VisitGetPolicyUserMapResponse(w http.ResponseWriter) error
type GetPolicyUserMap403Response ¶ added in v0.3.0
type GetPolicyUserMap403Response struct {
}
func (GetPolicyUserMap403Response) VisitGetPolicyUserMapResponse ¶ added in v0.3.0
func (response GetPolicyUserMap403Response) VisitGetPolicyUserMapResponse(w http.ResponseWriter) error
type GetPolicyUserMap500JSONResponse ¶ added in v0.3.0
type GetPolicyUserMap500JSONResponse ErrorResponse
func (GetPolicyUserMap500JSONResponse) VisitGetPolicyUserMapResponse ¶ added in v0.3.0
func (response GetPolicyUserMap500JSONResponse) VisitGetPolicyUserMapResponse(w http.ResponseWriter) error
type GetPolicyUserMapRequestObject ¶ added in v0.3.0
type GetPolicyUserMapRequestObject struct {
}
type GetPolicyUserMapResponseObject ¶ added in v0.3.0
type GetPolicyUserMapResponseObject interface {
VisitGetPolicyUserMapResponse(w http.ResponseWriter) error
}
type GetRegistration200JSONResponse ¶ added in v0.3.0
type GetRegistration200JSONResponse PendingRegistration
func (GetRegistration200JSONResponse) VisitGetRegistrationResponse ¶ added in v0.3.0
func (response GetRegistration200JSONResponse) VisitGetRegistrationResponse(w http.ResponseWriter) error
type GetRegistration401Response ¶ added in v0.3.0
type GetRegistration401Response struct {
}
func (GetRegistration401Response) VisitGetRegistrationResponse ¶ added in v0.3.0
func (response GetRegistration401Response) VisitGetRegistrationResponse(w http.ResponseWriter) error
type GetRegistration403Response ¶ added in v0.3.0
type GetRegistration403Response struct {
}
func (GetRegistration403Response) VisitGetRegistrationResponse ¶ added in v0.3.0
func (response GetRegistration403Response) VisitGetRegistrationResponse(w http.ResponseWriter) error
type GetRegistration404JSONResponse ¶ added in v0.3.0
type GetRegistration404JSONResponse ErrorResponse
func (GetRegistration404JSONResponse) VisitGetRegistrationResponse ¶ added in v0.3.0
func (response GetRegistration404JSONResponse) VisitGetRegistrationResponse(w http.ResponseWriter) error
type GetRegistration500JSONResponse ¶ added in v0.3.0
type GetRegistration500JSONResponse ErrorResponse
func (GetRegistration500JSONResponse) VisitGetRegistrationResponse ¶ added in v0.3.0
func (response GetRegistration500JSONResponse) VisitGetRegistrationResponse(w http.ResponseWriter) error
type GetRegistrationRequestObject ¶ added in v0.3.0
type GetRegistrationRequestObject struct {
RegistrationId ID `json:"registration_id"`
}
type GetRegistrationResponseObject ¶ added in v0.3.0
type GetRegistrationResponseObject interface {
VisitGetRegistrationResponse(w http.ResponseWriter) error
}
type GetUserHostDetails200JSONResponse ¶ added in v0.3.0
type GetUserHostDetails200JSONResponse UserHostDetails
func (GetUserHostDetails200JSONResponse) VisitGetUserHostDetailsResponse ¶ added in v0.3.0
func (response GetUserHostDetails200JSONResponse) VisitGetUserHostDetailsResponse(w http.ResponseWriter) error
type GetUserHostDetails401JSONResponse ¶ added in v0.3.0
type GetUserHostDetails401JSONResponse ErrorResponse
func (GetUserHostDetails401JSONResponse) VisitGetUserHostDetailsResponse ¶ added in v0.3.0
func (response GetUserHostDetails401JSONResponse) VisitGetUserHostDetailsResponse(w http.ResponseWriter) error
type GetUserHostDetails403Response ¶ added in v0.3.0
type GetUserHostDetails403Response struct {
}
func (GetUserHostDetails403Response) VisitGetUserHostDetailsResponse ¶ added in v0.3.0
func (response GetUserHostDetails403Response) VisitGetUserHostDetailsResponse(w http.ResponseWriter) error
type GetUserHostDetails404JSONResponse ¶ added in v0.3.0
type GetUserHostDetails404JSONResponse ErrorResponse
func (GetUserHostDetails404JSONResponse) VisitGetUserHostDetailsResponse ¶ added in v0.3.0
func (response GetUserHostDetails404JSONResponse) VisitGetUserHostDetailsResponse(w http.ResponseWriter) error
type GetUserHostDetails500JSONResponse ¶ added in v0.3.0
type GetUserHostDetails500JSONResponse ErrorResponse
func (GetUserHostDetails500JSONResponse) VisitGetUserHostDetailsResponse ¶ added in v0.3.0
func (response GetUserHostDetails500JSONResponse) VisitGetUserHostDetailsResponse(w http.ResponseWriter) error
type GetUserHostDetailsRequestObject ¶ added in v0.3.0
type GetUserHostDetailsRequestObject struct {
UserId ID `json:"user_id"`
}
type GetUserHostDetailsResponseObject ¶ added in v0.3.0
type GetUserHostDetailsResponseObject interface {
VisitGetUserHostDetailsResponse(w http.ResponseWriter) error
}
type HostGroupWithMembers ¶ added in v0.3.0
type HostGroupWithMembers struct {
// Color UI accent colour for the group. Null means "not chosen".
Color *string `json:"color"`
CreatedAt UTCTime `json:"created_at"`
Description *string `json:"description"`
// Hosts Hydrated member hosts (id + fqdn + icon) for display.
Hosts []KnownHostRef `json:"hosts"`
Icon *string `json:"icon"`
Id ID `json:"id"`
// MemberIds Plain list of member host IDs, parallel to `hosts`. Useful to round-trip into a reconcile request.
MemberIds []ID `json:"member_ids"`
Name string `json:"name"`
}
HostGroupWithMembers defines model for HostGroupWithMembers.
type HostSuggestion ¶ added in v0.3.0
type HostSuggestion struct {
AllowedHits int `json:"allowed_hits"`
DeniedHits int `json:"denied_hits"`
FirstSeen UTCTime `json:"first_seen"`
Fqdn string `json:"fqdn"`
}
HostSuggestion defines model for HostSuggestion.
type HostSuggestionsPage ¶ added in v0.3.0
type HostSuggestionsPage struct {
Ignored []IgnoredHostSuggestion `json:"ignored"`
Suggestions []HostSuggestion `json:"suggestions"`
}
HostSuggestionsPage defines model for HostSuggestionsPage.
type IgnoreSuggestion201JSONResponse ¶ added in v0.3.0
type IgnoreSuggestion201JSONResponse IgnoredHostSuggestion
func (IgnoreSuggestion201JSONResponse) VisitIgnoreSuggestionResponse ¶ added in v0.3.0
func (response IgnoreSuggestion201JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error
type IgnoreSuggestion400JSONResponse ¶ added in v0.3.0
type IgnoreSuggestion400JSONResponse ErrorResponse
func (IgnoreSuggestion400JSONResponse) VisitIgnoreSuggestionResponse ¶ added in v0.3.0
func (response IgnoreSuggestion400JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error
type IgnoreSuggestion401JSONResponse ¶ added in v0.3.0
type IgnoreSuggestion401JSONResponse ErrorResponse
func (IgnoreSuggestion401JSONResponse) VisitIgnoreSuggestionResponse ¶ added in v0.3.0
func (response IgnoreSuggestion401JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error
type IgnoreSuggestion403Response ¶ added in v0.3.0
type IgnoreSuggestion403Response struct {
}
func (IgnoreSuggestion403Response) VisitIgnoreSuggestionResponse ¶ added in v0.3.0
func (response IgnoreSuggestion403Response) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error
type IgnoreSuggestion409JSONResponse ¶ added in v0.3.0
type IgnoreSuggestion409JSONResponse ErrorResponse
func (IgnoreSuggestion409JSONResponse) VisitIgnoreSuggestionResponse ¶ added in v0.3.0
func (response IgnoreSuggestion409JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error
type IgnoreSuggestion500JSONResponse ¶ added in v0.3.0
type IgnoreSuggestion500JSONResponse ErrorResponse
func (IgnoreSuggestion500JSONResponse) VisitIgnoreSuggestionResponse ¶ added in v0.3.0
func (response IgnoreSuggestion500JSONResponse) VisitIgnoreSuggestionResponse(w http.ResponseWriter) error
type IgnoreSuggestionJSONRequestBody ¶ added in v0.3.0
type IgnoreSuggestionJSONRequestBody = IgnoreSuggestionRequest
IgnoreSuggestionJSONRequestBody defines body for IgnoreSuggestion for application/json ContentType.
type IgnoreSuggestionRequest ¶ added in v0.3.0
type IgnoreSuggestionRequest struct {
// Fqdn FQDN to add to the ignore list.
Fqdn string `json:"fqdn"`
}
IgnoreSuggestionRequest defines model for IgnoreSuggestionRequest.
type IgnoreSuggestionRequestObject ¶ added in v0.3.0
type IgnoreSuggestionRequestObject struct {
Body *IgnoreSuggestionJSONRequestBody
}
type IgnoreSuggestionResponseObject ¶ added in v0.3.0
type IgnoreSuggestionResponseObject interface {
VisitIgnoreSuggestionResponse(w http.ResponseWriter) error
}
type IgnoredHostSuggestion ¶ added in v0.3.0
type IgnoredHostSuggestion struct {
CreatedAt UTCTime `json:"created_at"`
Fqdn string `json:"fqdn"`
Id ID `json:"id"`
}
IgnoredHostSuggestion defines model for IgnoredHostSuggestion.
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type KnownHostRef ¶ added in v0.3.0
KnownHostRef defines model for KnownHostRef.
type KnownHostWithStats ¶ added in v0.3.0
type KnownHostWithStats struct {
CreatedAt UTCTime `json:"created_at"`
Fqdn string `json:"fqdn"`
// Groups Host groups this host belongs to.
Groups []GroupRef `json:"groups"`
Icon *string `json:"icon"`
Id ID `json:"id"`
// UserCount Number of distinct users with access to this host.
UserCount int `json:"user_count"`
}
KnownHostWithStats defines model for KnownHostWithStats.
type ListDeviceTypes200JSONResponse ¶ added in v0.2.0
type ListDeviceTypes200JSONResponse []DeviceTypeItem
func (ListDeviceTypes200JSONResponse) VisitListDeviceTypesResponse ¶ added in v0.2.0
func (response ListDeviceTypes200JSONResponse) VisitListDeviceTypesResponse(w http.ResponseWriter) error
type ListDeviceTypesRequestObject ¶ added in v0.2.0
type ListDeviceTypesRequestObject struct {
}
type ListDeviceTypesResponseObject ¶ added in v0.2.0
type ListDeviceTypesResponseObject interface {
VisitListDeviceTypesResponse(w http.ResponseWriter) error
}
type ListHostGroups200JSONResponse ¶ added in v0.3.0
type ListHostGroups200JSONResponse []HostGroupWithMembers
func (ListHostGroups200JSONResponse) VisitListHostGroupsResponse ¶ added in v0.3.0
func (response ListHostGroups200JSONResponse) VisitListHostGroupsResponse(w http.ResponseWriter) error
type ListHostGroups401JSONResponse ¶ added in v0.3.0
type ListHostGroups401JSONResponse ErrorResponse
func (ListHostGroups401JSONResponse) VisitListHostGroupsResponse ¶ added in v0.3.0
func (response ListHostGroups401JSONResponse) VisitListHostGroupsResponse(w http.ResponseWriter) error
type ListHostGroups403Response ¶ added in v0.3.0
type ListHostGroups403Response struct {
}
func (ListHostGroups403Response) VisitListHostGroupsResponse ¶ added in v0.3.0
func (response ListHostGroups403Response) VisitListHostGroupsResponse(w http.ResponseWriter) error
type ListHostGroups500JSONResponse ¶ added in v0.3.0
type ListHostGroups500JSONResponse ErrorResponse
func (ListHostGroups500JSONResponse) VisitListHostGroupsResponse ¶ added in v0.3.0
func (response ListHostGroups500JSONResponse) VisitListHostGroupsResponse(w http.ResponseWriter) error
type ListHostGroupsRequestObject ¶ added in v0.3.0
type ListHostGroupsRequestObject struct {
}
type ListHostGroupsResponseObject ¶ added in v0.3.0
type ListHostGroupsResponseObject interface {
VisitListHostGroupsResponse(w http.ResponseWriter) error
}
type ListHostSuggestions200JSONResponse ¶ added in v0.3.0
type ListHostSuggestions200JSONResponse HostSuggestionsPage
func (ListHostSuggestions200JSONResponse) VisitListHostSuggestionsResponse ¶ added in v0.3.0
func (response ListHostSuggestions200JSONResponse) VisitListHostSuggestionsResponse(w http.ResponseWriter) error
type ListHostSuggestions401JSONResponse ¶ added in v0.3.0
type ListHostSuggestions401JSONResponse ErrorResponse
func (ListHostSuggestions401JSONResponse) VisitListHostSuggestionsResponse ¶ added in v0.3.0
func (response ListHostSuggestions401JSONResponse) VisitListHostSuggestionsResponse(w http.ResponseWriter) error
type ListHostSuggestions403Response ¶ added in v0.3.0
type ListHostSuggestions403Response struct {
}
func (ListHostSuggestions403Response) VisitListHostSuggestionsResponse ¶ added in v0.3.0
func (response ListHostSuggestions403Response) VisitListHostSuggestionsResponse(w http.ResponseWriter) error
type ListHostSuggestions500JSONResponse ¶ added in v0.3.0
type ListHostSuggestions500JSONResponse ErrorResponse
func (ListHostSuggestions500JSONResponse) VisitListHostSuggestionsResponse ¶ added in v0.3.0
func (response ListHostSuggestions500JSONResponse) VisitListHostSuggestionsResponse(w http.ResponseWriter) error
type ListHostSuggestionsRequestObject ¶ added in v0.3.0
type ListHostSuggestionsRequestObject struct {
}
type ListHostSuggestionsResponseObject ¶ added in v0.3.0
type ListHostSuggestionsResponseObject interface {
VisitListHostSuggestionsResponse(w http.ResponseWriter) error
}
type ListKnownHosts200JSONResponse ¶ added in v0.3.0
type ListKnownHosts200JSONResponse []KnownHostWithStats
func (ListKnownHosts200JSONResponse) VisitListKnownHostsResponse ¶ added in v0.3.0
func (response ListKnownHosts200JSONResponse) VisitListKnownHostsResponse(w http.ResponseWriter) error
type ListKnownHosts401JSONResponse ¶ added in v0.3.0
type ListKnownHosts401JSONResponse ErrorResponse
func (ListKnownHosts401JSONResponse) VisitListKnownHostsResponse ¶ added in v0.3.0
func (response ListKnownHosts401JSONResponse) VisitListKnownHostsResponse(w http.ResponseWriter) error
type ListKnownHosts403Response ¶ added in v0.3.0
type ListKnownHosts403Response struct {
}
func (ListKnownHosts403Response) VisitListKnownHostsResponse ¶ added in v0.3.0
func (response ListKnownHosts403Response) VisitListKnownHostsResponse(w http.ResponseWriter) error
type ListKnownHosts500JSONResponse ¶ added in v0.3.0
type ListKnownHosts500JSONResponse ErrorResponse
func (ListKnownHosts500JSONResponse) VisitListKnownHostsResponse ¶ added in v0.3.0
func (response ListKnownHosts500JSONResponse) VisitListKnownHostsResponse(w http.ResponseWriter) error
type ListKnownHostsRequestObject ¶ added in v0.3.0
type ListKnownHostsRequestObject struct {
}
type ListKnownHostsResponseObject ¶ added in v0.3.0
type ListKnownHostsResponseObject interface {
VisitListKnownHostsResponse(w http.ResponseWriter) error
}
type ListRegistrations200JSONResponse ¶ added in v0.3.0
type ListRegistrations200JSONResponse []PendingRegistration
func (ListRegistrations200JSONResponse) VisitListRegistrationsResponse ¶ added in v0.3.0
func (response ListRegistrations200JSONResponse) VisitListRegistrationsResponse(w http.ResponseWriter) error
type ListRegistrations401Response ¶ added in v0.3.0
type ListRegistrations401Response struct {
}
func (ListRegistrations401Response) VisitListRegistrationsResponse ¶ added in v0.3.0
func (response ListRegistrations401Response) VisitListRegistrationsResponse(w http.ResponseWriter) error
type ListRegistrations403Response ¶ added in v0.3.0
type ListRegistrations403Response struct {
}
func (ListRegistrations403Response) VisitListRegistrationsResponse ¶ added in v0.3.0
func (response ListRegistrations403Response) VisitListRegistrationsResponse(w http.ResponseWriter) error
type ListRegistrations500JSONResponse ¶ added in v0.3.0
type ListRegistrations500JSONResponse ErrorResponse
func (ListRegistrations500JSONResponse) VisitListRegistrationsResponse ¶ added in v0.3.0
func (response ListRegistrations500JSONResponse) VisitListRegistrationsResponse(w http.ResponseWriter) error
type ListRegistrationsParams ¶ added in v0.3.0
type ListRegistrationsParams struct {
Status *ListRegistrationsParamsStatus `form:"status,omitempty" json:"status,omitempty"`
}
ListRegistrationsParams defines parameters for ListRegistrations.
type ListRegistrationsParamsStatus ¶ added in v0.3.0
type ListRegistrationsParamsStatus string
ListRegistrationsParamsStatus defines parameters for ListRegistrations.
const ( ListRegistrationsParamsStatusAll ListRegistrationsParamsStatus = "all" ListRegistrationsParamsStatusPending ListRegistrationsParamsStatus = "pending" )
Defines values for ListRegistrationsParamsStatus.
type ListRegistrationsRequestObject ¶ added in v0.3.0
type ListRegistrationsRequestObject struct {
Params ListRegistrationsParams
}
type ListRegistrationsResponseObject ¶ added in v0.3.0
type ListRegistrationsResponseObject interface {
VisitListRegistrationsResponse(w http.ResponseWriter) error
}
type ListUsers200JSONResponse ¶
type ListUsers200JSONResponse []User
func (ListUsers200JSONResponse) VisitListUsersResponse ¶
func (response ListUsers200JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error
type ListUsers401JSONResponse ¶
type ListUsers401JSONResponse ErrorResponse
func (ListUsers401JSONResponse) VisitListUsersResponse ¶
func (response ListUsers401JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error
type ListUsers403Response ¶
type ListUsers403Response struct {
}
func (ListUsers403Response) VisitListUsersResponse ¶
func (response ListUsers403Response) VisitListUsersResponse(w http.ResponseWriter) error
type ListUsers500JSONResponse ¶
type ListUsers500JSONResponse ErrorResponse
func (ListUsers500JSONResponse) VisitListUsersResponse ¶
func (response ListUsers500JSONResponse) VisitListUsersResponse(w http.ResponseWriter) error
type ListUsersHostAccess200JSONResponse ¶ added in v0.3.0
type ListUsersHostAccess200JSONResponse []UserHostAccessSummary
func (ListUsersHostAccess200JSONResponse) VisitListUsersHostAccessResponse ¶ added in v0.3.0
func (response ListUsersHostAccess200JSONResponse) VisitListUsersHostAccessResponse(w http.ResponseWriter) error
type ListUsersHostAccess401JSONResponse ¶ added in v0.3.0
type ListUsersHostAccess401JSONResponse ErrorResponse
func (ListUsersHostAccess401JSONResponse) VisitListUsersHostAccessResponse ¶ added in v0.3.0
func (response ListUsersHostAccess401JSONResponse) VisitListUsersHostAccessResponse(w http.ResponseWriter) error
type ListUsersHostAccess403Response ¶ added in v0.3.0
type ListUsersHostAccess403Response struct {
}
func (ListUsersHostAccess403Response) VisitListUsersHostAccessResponse ¶ added in v0.3.0
func (response ListUsersHostAccess403Response) VisitListUsersHostAccessResponse(w http.ResponseWriter) error
type ListUsersHostAccess500JSONResponse ¶ added in v0.3.0
type ListUsersHostAccess500JSONResponse ErrorResponse
func (ListUsersHostAccess500JSONResponse) VisitListUsersHostAccessResponse ¶ added in v0.3.0
func (response ListUsersHostAccess500JSONResponse) VisitListUsersHostAccessResponse(w http.ResponseWriter) error
type ListUsersHostAccessRequestObject ¶ added in v0.3.0
type ListUsersHostAccessRequestObject struct {
}
type ListUsersHostAccessResponseObject ¶ added in v0.3.0
type ListUsersHostAccessResponseObject interface {
VisitListUsersHostAccessResponse(w http.ResponseWriter) error
}
type ListUsersRequestObject ¶
type ListUsersRequestObject struct {
}
type ListUsersResponseObject ¶
type ListUsersResponseObject interface {
VisitListUsersResponse(w http.ResponseWriter) error
}
type Login200JSONResponse ¶
type Login200JSONResponse struct {
Body User
Headers Login200ResponseHeaders
}
func (Login200JSONResponse) VisitLoginResponse ¶
func (response Login200JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login200ResponseHeaders ¶
type Login200ResponseHeaders struct {
SetCookie string
}
type Login401JSONResponse ¶
type Login401JSONResponse ErrorResponse
func (Login401JSONResponse) VisitLoginResponse ¶
func (response Login401JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type Login500JSONResponse ¶
type Login500JSONResponse ErrorResponse
func (Login500JSONResponse) VisitLoginResponse ¶
func (response Login500JSONResponse) VisitLoginResponse(w http.ResponseWriter) error
type LoginJSONRequestBody ¶
type LoginJSONRequestBody = AuthRequest
LoginJSONRequestBody defines body for Login for application/json ContentType.
type LoginRequestObject ¶
type LoginRequestObject struct {
Body *LoginJSONRequestBody
}
type LoginResponseObject ¶
type LoginResponseObject interface {
VisitLoginResponse(w http.ResponseWriter) error
}
type Logout204Response ¶
type Logout204Response struct {
Headers Logout204ResponseHeaders
}
func (Logout204Response) VisitLogoutResponse ¶
func (response Logout204Response) VisitLogoutResponse(w http.ResponseWriter) error
type Logout204ResponseHeaders ¶
type Logout204ResponseHeaders struct {
SetCookie string
}
type LogoutRequestObject ¶
type LogoutRequestObject struct {
}
type LogoutResponseObject ¶
type LogoutResponseObject interface {
VisitLogoutResponse(w http.ResponseWriter) error
}
type MaxActiveAddressesRule ¶ added in v0.2.0
type MaxActiveAddressesRule struct {
CreatedAt UTCTime `json:"created_at"`
DeviceId ID `json:"device_id"`
// Enabled Whether the max active addresses rule is active
Enabled bool `json:"enabled"`
Id ID `json:"id"`
// MaxAddresses Maximum number of simultaneously enabled IP addresses
MaxAddresses int `json:"max_addresses"`
UpdatedAt UTCTime `json:"updated_at"`
}
MaxActiveAddressesRule defines model for MaxActiveAddressesRule.
type NullableString ¶ added in v0.2.0
NullableString distinguishes three JSON states for a string field:
- absent from JSON body → Set=false, Value=nil (don't change)
- explicit null in JSON → Set=true, Value=nil (clear)
- string value in JSON → Set=true, Value=&s (set new value)
Use x-go-type: NullableString in openapi.yaml for request body fields that need this distinction. The standard *string cannot represent "absent" separately from "null" because both produce a nil pointer after decoding.
func (*NullableString) UnmarshalJSON ¶ added in v0.2.0
func (n *NullableString) UnmarshalJSON(data []byte) error
type PendingRegistration ¶ added in v0.3.0
type PendingRegistration struct {
AppBiometricEnabled bool `json:"app_biometric_enabled"`
AppSettingsLocked bool `json:"app_settings_locked"`
CreatedAt UTCTime `json:"created_at"`
CreatedDeviceId *ID `json:"created_device_id,omitempty"`
DeviceName string `json:"device_name"`
ExpiresAt UTCTime `json:"expires_at"`
HeartbeatServerUrl string `json:"heartbeat_server_url"`
Id ID `json:"id"`
IntervalSeconds int `json:"interval_seconds"`
InvalidatedAt *UTCTime `json:"invalidated_at"`
OwnerId ID `json:"owner_id"`
// RegistrationCode Present only while unclaimed. Null after the invite is used.
RegistrationCode *string `json:"registration_code"`
Status PendingRegistrationStatus `json:"status"`
UsedAt *UTCTime `json:"used_at"`
}
PendingRegistration defines model for PendingRegistration.
type PendingRegistrationStatus ¶ added in v0.3.0
type PendingRegistrationStatus string
PendingRegistrationStatus defines model for PendingRegistration.Status.
const ( PendingRegistrationStatusExpired PendingRegistrationStatus = "expired" PendingRegistrationStatusInvalidated PendingRegistrationStatus = "invalidated" PendingRegistrationStatusPending PendingRegistrationStatus = "pending" PendingRegistrationStatusUsed PendingRegistrationStatus = "used" )
Defines values for PendingRegistrationStatus.
type PolicyIPDevice ¶ added in v0.3.0
type PolicyIPDevice struct {
DeviceId ID `json:"device_id"`
DeviceName string `json:"device_name"`
}
PolicyIPDevice defines model for PolicyIPDevice.
type PolicySimulateDenyReason ¶ added in v0.3.0
type PolicySimulateDenyReason string
PolicySimulateDenyReason Reason for denial.
const ( HostNotAllowed PolicySimulateDenyReason = "host_not_allowed" IpNotRegistered PolicySimulateDenyReason = "ip_not_registered" )
Defines values for PolicySimulateDenyReason.
type PolicySimulateResult ¶ added in v0.3.0
type PolicySimulateResult struct {
Allowed bool `json:"allowed"`
// DenyReason Reason for denial; null when allowed is true.
DenyReason *PolicySimulateDenyReason `json:"deny_reason"`
Host string `json:"host"`
Ip string `json:"ip"`
}
PolicySimulateResult defines model for PolicySimulateResult.
type PolicyUserAddress ¶ added in v0.3.0
type PolicyUserAddress struct {
AddressId ID `json:"address_id"`
DeviceId ID `json:"device_id"`
DeviceName string `json:"device_name"`
// UpdatedAt Last heartbeat or manual update time for this address.
UpdatedAt UTCTime `json:"updated_at"`
}
PolicyUserAddress defines model for PolicyUserAddress.
type PolicyUserEntry ¶ added in v0.3.0
type PolicyUserEntry struct {
// AllowedHostCount Size of user_allowed_hosts (pre-intersection). Zero when bypass_allowlist is true; the UI should render "All".
AllowedHostCount int `json:"allowed_host_count"`
// BypassAllowlist True when this user has the host allowlist bypass enabled.
BypassAllowlist bool `json:"bypass_allowlist"`
// DeviceCount Distinct devices owned by this user that contribute to the cache. Zero for no-access users.
DeviceCount int `json:"device_count"`
// IntersectionApplied True when at least one of this user's IPs had its effective host set reduced by deny-wins intersection with another user at that IP.
IntersectionApplied bool `json:"intersection_applied"`
// IpCount Distinct IPs this user currently contributes to. Zero for no-access users.
IpCount int `json:"ip_count"`
// Ips IPs this user currently contributes to. Empty for no-access users (never null — empty array, for client ergonomics).
Ips []PolicyUserIP `json:"ips"`
// IsAdmin True when the user has an admin or superadmin role.
IsAdmin bool `json:"is_admin"`
// LastSeenAt Most recent address.updated_at across this user's addresses. Null when the user has no enabled IPs.
LastSeenAt *UTCTime `json:"last_seen_at"`
OnSharedIp bool `json:"on_shared_ip"`
// UserAllowedHosts Pre-intersection allowed host list for this user. Empty when bypass_allowlist is true.
UserAllowedHosts []string `json:"user_allowed_hosts"`
UserId ID `json:"user_id"`
// UserName User display name.
UserName string `json:"user_name"`
}
PolicyUserEntry defines model for PolicyUserEntry.
type PolicyUserIP ¶ added in v0.3.0
type PolicyUserIP struct {
// Addresses The user's own addresses sitting at this IP. Multiple entries when the same user has several devices behind the same NAT.
Addresses []PolicyUserAddress `json:"addresses"`
// BypassAtIp True when the IP entry as a whole bypasses the host allowlist (every contributor at this IP has bypass set). When true, effective_hosts is empty and means "All".
BypassAtIp bool `json:"bypass_at_ip"`
// EffectiveHosts Hosts actually allowed for THIS user at THIS IP after deny-wins intersection. Equals user_allowed_hosts when the user is the sole contributor; intersected with other restricted contributors otherwise. Empty when bypass_at_ip is true.
EffectiveHosts []string `json:"effective_hosts"`
// Ip The IP address.
Ip string `json:"ip"`
SharedWithUsers []PolicyUserIPSharedUser `json:"shared_with_users"`
// TrimmedHosts Hosts the user had pre-intersection that were removed by intersection at this IP. Empty when no trimming occurred. Always empty when the user has bypass_allowlist true (their grants are not subject to intersection).
TrimmedHosts []string `json:"trimmed_hosts"`
}
PolicyUserIP defines model for PolicyUserIP.
type PolicyUserIPSharedUser ¶ added in v0.3.0
type PolicyUserIPSharedUser struct {
// Devices Devices this user has at this IP.
UserName string `json:"user_name"`
Username string `json:"username"`
}
PolicyUserIPSharedUser defines model for PolicyUserIPSharedUser.
type PolicyUserMapAudit ¶ added in v0.3.0
type PolicyUserMapAudit struct {
// RefreshDurationMs How long the last refresh took in milliseconds.
RefreshDurationMs int `json:"refresh_duration_ms"`
// RefreshedAt When the cache was last fully refreshed.
RefreshedAt UTCTime `json:"refreshed_at"`
SharedIpCount int `json:"shared_ip_count"`
// TotalDeviceCount Total distinct device contributors across all IPs in the cache.
TotalDeviceCount int `json:"total_device_count"`
// TotalHostCount Distinct hosts across the union of all users' pre-intersection allowed host lists. Denominator for the allowed_host_count / total_host_count ratio.
TotalHostCount int `json:"total_host_count"`
// TotalIpCount Distinct IPs currently in the policy cache.
TotalIpCount int `json:"total_ip_count"`
Users []PolicyUserEntry `json:"users"`
}
PolicyUserMapAudit defines model for PolicyUserMapAudit.
type PromoteUser200JSONResponse ¶
type PromoteUser200JSONResponse User
func (PromoteUser200JSONResponse) VisitPromoteUserResponse ¶
func (response PromoteUser200JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error
type PromoteUser400JSONResponse ¶ added in v0.3.0
type PromoteUser400JSONResponse ErrorResponse
func (PromoteUser400JSONResponse) VisitPromoteUserResponse ¶ added in v0.3.0
func (response PromoteUser400JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error
type PromoteUser401JSONResponse ¶
type PromoteUser401JSONResponse ErrorResponse
func (PromoteUser401JSONResponse) VisitPromoteUserResponse ¶
func (response PromoteUser401JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error
type PromoteUser403JSONResponse ¶
type PromoteUser403JSONResponse ErrorResponse
func (PromoteUser403JSONResponse) VisitPromoteUserResponse ¶
func (response PromoteUser403JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error
type PromoteUser404JSONResponse ¶
type PromoteUser404JSONResponse ErrorResponse
func (PromoteUser404JSONResponse) VisitPromoteUserResponse ¶
func (response PromoteUser404JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error
type PromoteUser500JSONResponse ¶
type PromoteUser500JSONResponse ErrorResponse
func (PromoteUser500JSONResponse) VisitPromoteUserResponse ¶
func (response PromoteUser500JSONResponse) VisitPromoteUserResponse(w http.ResponseWriter) error
type PromoteUserJSONRequestBody ¶ added in v0.3.0
type PromoteUserJSONRequestBody = PromoteUserRequest
PromoteUserJSONRequestBody defines body for PromoteUser for application/json ContentType.
type PromoteUserRequest ¶ added in v0.3.0
type PromoteUserRequest struct {
Password Password `json:"password"`
}
PromoteUserRequest defines model for PromoteUserRequest.
type PromoteUserRequestObject ¶
type PromoteUserRequestObject struct {
UserId ID `json:"user_id"`
Body *PromoteUserJSONRequestBody
}
type PromoteUserResponseObject ¶
type PromoteUserResponseObject interface {
VisitPromoteUserResponse(w http.ResponseWriter) error
}
type PutDeviceAddressLeaseRule200JSONResponse ¶
type PutDeviceAddressLeaseRule200JSONResponse DeviceAddressLeaseRule
func (PutDeviceAddressLeaseRule200JSONResponse) VisitPutDeviceAddressLeaseRuleResponse ¶
func (response PutDeviceAddressLeaseRule200JSONResponse) VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type PutDeviceAddressLeaseRule400JSONResponse ¶
type PutDeviceAddressLeaseRule400JSONResponse ErrorResponse
func (PutDeviceAddressLeaseRule400JSONResponse) VisitPutDeviceAddressLeaseRuleResponse ¶
func (response PutDeviceAddressLeaseRule400JSONResponse) VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type PutDeviceAddressLeaseRule404JSONResponse ¶
type PutDeviceAddressLeaseRule404JSONResponse ErrorResponse
func (PutDeviceAddressLeaseRule404JSONResponse) VisitPutDeviceAddressLeaseRuleResponse ¶
func (response PutDeviceAddressLeaseRule404JSONResponse) VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type PutDeviceAddressLeaseRule500JSONResponse ¶
type PutDeviceAddressLeaseRule500JSONResponse ErrorResponse
func (PutDeviceAddressLeaseRule500JSONResponse) VisitPutDeviceAddressLeaseRuleResponse ¶
func (response PutDeviceAddressLeaseRule500JSONResponse) VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
type PutDeviceAddressLeaseRuleJSONRequestBody ¶
type PutDeviceAddressLeaseRuleJSONRequestBody = PutDeviceAddressLeaseRuleRequest
PutDeviceAddressLeaseRuleJSONRequestBody defines body for PutDeviceAddressLeaseRule for application/json ContentType.
type PutDeviceAddressLeaseRuleRequest ¶
type PutDeviceAddressLeaseRuleRequest struct {
// TtlSeconds Seconds after which an enabled device address lease expires
TtlSeconds int `json:"ttl_seconds"`
}
PutDeviceAddressLeaseRuleRequest defines model for PutDeviceAddressLeaseRuleRequest.
type PutDeviceAddressLeaseRuleRequestObject ¶
type PutDeviceAddressLeaseRuleRequestObject struct {
DeviceId ID `json:"device_id"`
Body *PutDeviceAddressLeaseRuleJSONRequestBody
}
type PutDeviceAddressLeaseRuleResponseObject ¶
type PutDeviceAddressLeaseRuleResponseObject interface {
VisitPutDeviceAddressLeaseRuleResponse(w http.ResponseWriter) error
}
type PutMaxActiveAddressesRule200JSONResponse ¶ added in v0.2.0
type PutMaxActiveAddressesRule200JSONResponse MaxActiveAddressesRule
func (PutMaxActiveAddressesRule200JSONResponse) VisitPutMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response PutMaxActiveAddressesRule200JSONResponse) VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type PutMaxActiveAddressesRule400JSONResponse ¶ added in v0.2.0
type PutMaxActiveAddressesRule400JSONResponse ErrorResponse
func (PutMaxActiveAddressesRule400JSONResponse) VisitPutMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response PutMaxActiveAddressesRule400JSONResponse) VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type PutMaxActiveAddressesRule404JSONResponse ¶ added in v0.2.0
type PutMaxActiveAddressesRule404JSONResponse ErrorResponse
func (PutMaxActiveAddressesRule404JSONResponse) VisitPutMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response PutMaxActiveAddressesRule404JSONResponse) VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type PutMaxActiveAddressesRule500JSONResponse ¶ added in v0.2.0
type PutMaxActiveAddressesRule500JSONResponse ErrorResponse
func (PutMaxActiveAddressesRule500JSONResponse) VisitPutMaxActiveAddressesRuleResponse ¶ added in v0.2.0
func (response PutMaxActiveAddressesRule500JSONResponse) VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
type PutMaxActiveAddressesRuleJSONRequestBody ¶ added in v0.2.0
type PutMaxActiveAddressesRuleJSONRequestBody = PutMaxActiveAddressesRuleRequest
PutMaxActiveAddressesRuleJSONRequestBody defines body for PutMaxActiveAddressesRule for application/json ContentType.
type PutMaxActiveAddressesRuleRequest ¶ added in v0.2.0
type PutMaxActiveAddressesRuleRequest struct {
// MaxAddresses Maximum number of simultaneously enabled IP addresses
MaxAddresses int `json:"max_addresses"`
}
PutMaxActiveAddressesRuleRequest defines model for PutMaxActiveAddressesRuleRequest.
type PutMaxActiveAddressesRuleRequestObject ¶ added in v0.2.0
type PutMaxActiveAddressesRuleRequestObject struct {
DeviceId ID `json:"device_id"`
Body *PutMaxActiveAddressesRuleJSONRequestBody
}
type PutMaxActiveAddressesRuleResponseObject ¶ added in v0.2.0
type PutMaxActiveAddressesRuleResponseObject interface {
VisitPutMaxActiveAddressesRuleResponse(w http.ResponseWriter) error
}
type ReconcileHostGroups204Response ¶ added in v0.3.0
type ReconcileHostGroups204Response struct {
}
func (ReconcileHostGroups204Response) VisitReconcileHostGroupsResponse ¶ added in v0.3.0
func (response ReconcileHostGroups204Response) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error
type ReconcileHostGroups400JSONResponse ¶ added in v0.3.0
type ReconcileHostGroups400JSONResponse ErrorResponse
func (ReconcileHostGroups400JSONResponse) VisitReconcileHostGroupsResponse ¶ added in v0.3.0
func (response ReconcileHostGroups400JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error
type ReconcileHostGroups401JSONResponse ¶ added in v0.3.0
type ReconcileHostGroups401JSONResponse ErrorResponse
func (ReconcileHostGroups401JSONResponse) VisitReconcileHostGroupsResponse ¶ added in v0.3.0
func (response ReconcileHostGroups401JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error
type ReconcileHostGroups403Response ¶ added in v0.3.0
type ReconcileHostGroups403Response struct {
}
func (ReconcileHostGroups403Response) VisitReconcileHostGroupsResponse ¶ added in v0.3.0
func (response ReconcileHostGroups403Response) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error
type ReconcileHostGroups404JSONResponse ¶ added in v0.3.0
type ReconcileHostGroups404JSONResponse ErrorResponse
func (ReconcileHostGroups404JSONResponse) VisitReconcileHostGroupsResponse ¶ added in v0.3.0
func (response ReconcileHostGroups404JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error
type ReconcileHostGroups409JSONResponse ¶ added in v0.3.0
type ReconcileHostGroups409JSONResponse ErrorResponse
func (ReconcileHostGroups409JSONResponse) VisitReconcileHostGroupsResponse ¶ added in v0.3.0
func (response ReconcileHostGroups409JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error
type ReconcileHostGroups500JSONResponse ¶ added in v0.3.0
type ReconcileHostGroups500JSONResponse ErrorResponse
func (ReconcileHostGroups500JSONResponse) VisitReconcileHostGroupsResponse ¶ added in v0.3.0
func (response ReconcileHostGroups500JSONResponse) VisitReconcileHostGroupsResponse(w http.ResponseWriter) error
type ReconcileHostGroupsJSONRequestBody ¶ added in v0.3.0
type ReconcileHostGroupsJSONRequestBody = ReconcileHostGroupsRequest
ReconcileHostGroupsJSONRequestBody defines body for ReconcileHostGroups for application/json ContentType.
type ReconcileHostGroupsRequest ¶ added in v0.3.0
type ReconcileHostGroupsRequest struct {
Groups []DesiredHostGroup `json:"groups"`
}
ReconcileHostGroupsRequest Full desired image of all host groups. Groups already in the database whose ID is absent from `groups` will be deleted; groups with a non-null ID are updated; groups with a null ID are created.
type ReconcileHostGroupsRequestObject ¶ added in v0.3.0
type ReconcileHostGroupsRequestObject struct {
Body *ReconcileHostGroupsJSONRequestBody
}
type ReconcileHostGroupsResponseObject ¶ added in v0.3.0
type ReconcileHostGroupsResponseObject interface {
VisitReconcileHostGroupsResponse(w http.ResponseWriter) error
}
type ReconcileKnownHosts204Response ¶ added in v0.3.0
type ReconcileKnownHosts204Response struct {
}
func (ReconcileKnownHosts204Response) VisitReconcileKnownHostsResponse ¶ added in v0.3.0
func (response ReconcileKnownHosts204Response) VisitReconcileKnownHostsResponse(w http.ResponseWriter) error
type ReconcileKnownHosts400JSONResponse ¶ added in v0.3.0
type ReconcileKnownHosts400JSONResponse ErrorResponse
func (ReconcileKnownHosts400JSONResponse) VisitReconcileKnownHostsResponse ¶ added in v0.3.0
func (response ReconcileKnownHosts400JSONResponse) VisitReconcileKnownHostsResponse(w http.ResponseWriter) error
type ReconcileKnownHosts401JSONResponse ¶ added in v0.3.0
type ReconcileKnownHosts401JSONResponse ErrorResponse
func (ReconcileKnownHosts401JSONResponse) VisitReconcileKnownHostsResponse ¶ added in v0.3.0
func (response ReconcileKnownHosts401JSONResponse) VisitReconcileKnownHostsResponse(w http.ResponseWriter) error
type ReconcileKnownHosts403Response ¶ added in v0.3.0
type ReconcileKnownHosts403Response struct {
}
func (ReconcileKnownHosts403Response) VisitReconcileKnownHostsResponse ¶ added in v0.3.0
func (response ReconcileKnownHosts403Response) VisitReconcileKnownHostsResponse(w http.ResponseWriter) error
type ReconcileKnownHosts404JSONResponse ¶ added in v0.3.0
type ReconcileKnownHosts404JSONResponse ErrorResponse
func (ReconcileKnownHosts404JSONResponse) VisitReconcileKnownHostsResponse ¶ added in v0.3.0
func (response ReconcileKnownHosts404JSONResponse) VisitReconcileKnownHostsResponse(w http.ResponseWriter) error
type ReconcileKnownHosts409JSONResponse ¶ added in v0.3.0
type ReconcileKnownHosts409JSONResponse ErrorResponse
func (ReconcileKnownHosts409JSONResponse) VisitReconcileKnownHostsResponse ¶ added in v0.3.0
func (response ReconcileKnownHosts409JSONResponse) VisitReconcileKnownHostsResponse(w http.ResponseWriter) error
type ReconcileKnownHosts500JSONResponse ¶ added in v0.3.0
type ReconcileKnownHosts500JSONResponse ErrorResponse
func (ReconcileKnownHosts500JSONResponse) VisitReconcileKnownHostsResponse ¶ added in v0.3.0
func (response ReconcileKnownHosts500JSONResponse) VisitReconcileKnownHostsResponse(w http.ResponseWriter) error
type ReconcileKnownHostsJSONRequestBody ¶ added in v0.3.0
type ReconcileKnownHostsJSONRequestBody = ReconcileKnownHostsRequest
ReconcileKnownHostsJSONRequestBody defines body for ReconcileKnownHosts for application/json ContentType.
type ReconcileKnownHostsRequest ¶ added in v0.3.0
type ReconcileKnownHostsRequest struct {
Hosts []DesiredKnownHost `json:"hosts"`
}
ReconcileKnownHostsRequest Full desired image of all known hosts. Hosts already in the database whose ID is absent from `hosts` will be deleted; hosts with a non-null ID are updated (icon only); hosts with a null ID are created. An empty `hosts` array deletes every known host.
type ReconcileKnownHostsRequestObject ¶ added in v0.3.0
type ReconcileKnownHostsRequestObject struct {
Body *ReconcileKnownHostsJSONRequestBody
}
type ReconcileKnownHostsResponseObject ¶ added in v0.3.0
type ReconcileKnownHostsResponseObject interface {
VisitReconcileKnownHostsResponse(w http.ResponseWriter) error
}
type RegenerateDeviceAPIKey200JSONResponse ¶
type RegenerateDeviceAPIKey200JSONResponse DeviceAPIKeyResponse
func (RegenerateDeviceAPIKey200JSONResponse) VisitRegenerateDeviceAPIKeyResponse ¶
func (response RegenerateDeviceAPIKey200JSONResponse) VisitRegenerateDeviceAPIKeyResponse(w http.ResponseWriter) error
type RegenerateDeviceAPIKey404JSONResponse ¶
type RegenerateDeviceAPIKey404JSONResponse ErrorResponse
func (RegenerateDeviceAPIKey404JSONResponse) VisitRegenerateDeviceAPIKeyResponse ¶
func (response RegenerateDeviceAPIKey404JSONResponse) VisitRegenerateDeviceAPIKeyResponse(w http.ResponseWriter) error
type RegenerateDeviceAPIKey500JSONResponse ¶
type RegenerateDeviceAPIKey500JSONResponse ErrorResponse
func (RegenerateDeviceAPIKey500JSONResponse) VisitRegenerateDeviceAPIKeyResponse ¶
func (response RegenerateDeviceAPIKey500JSONResponse) VisitRegenerateDeviceAPIKeyResponse(w http.ResponseWriter) error
type RegenerateDeviceAPIKeyRequestObject ¶
type RegenerateDeviceAPIKeyRequestObject struct {
DeviceId ID `json:"device_id"`
}
type RegenerateDeviceAPIKeyResponseObject ¶
type RegenerateDeviceAPIKeyResponseObject interface {
VisitRegenerateDeviceAPIKeyResponse(w http.ResponseWriter) error
}
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServerInterface ¶
type ServerInterface interface {
// List access log entries
// (GET /access-log)
GetAccessLog(w http.ResponseWriter, r *http.Request, params GetAccessLogParams)
// List valid deny reason values
// (GET /access-log/deny-reasons)
GetAccessLogDenyReasons(w http.ResponseWriter, r *http.Request)
// Request counts grouped by country
// (GET /access-log/stats/by-country)
GetAccessLogByCountry(w http.ResponseWriter, r *http.Request, params GetAccessLogByCountryParams)
// Get address activity history
// (GET /address-history)
GetAddressHistory(w http.ResponseWriter, r *http.Request, params GetAddressHistoryParams)
// List all users with host access summary (bypass, direct host count, groups)
// (GET /admin/host-access/users)
ListUsersHostAccess(w http.ResponseWriter, r *http.Request)
// Get full host access details for a single user (drawer data)
// (GET /admin/host-access/users/{user_id})
GetUserHostDetails(w http.ResponseWriter, r *http.Request, userId ID)
// List host groups with their member host IDs
// (GET /admin/host-groups)
ListHostGroups(w http.ResponseWriter, r *http.Request)
// Reconcile the full desired image of host groups and their members
// (PUT /admin/host-groups/reconcile)
ReconcileHostGroups(w http.ResponseWriter, r *http.Request)
// List FQDNs seen in the access log that are not yet known hosts, plus ignored suggestions
// (GET /admin/host-suggestions)
ListHostSuggestions(w http.ResponseWriter, r *http.Request)
// Ignore a host suggestion
// (POST /admin/host-suggestions/ignore)
IgnoreSuggestion(w http.ResponseWriter, r *http.Request)
// Remove a host suggestion from the ignore list
// (DELETE /admin/host-suggestions/ignore/{fqdn})
UnignoreSuggestion(w http.ResponseWriter, r *http.Request, fqdn string)
// List known hosts with access stats
// (GET /admin/hosts)
ListKnownHosts(w http.ResponseWriter, r *http.Request)
// Reconcile the full desired image of known hosts
// (PUT /admin/hosts/reconcile)
ReconcileKnownHosts(w http.ResponseWriter, r *http.Request)
// Get the current policy cache snapshot (user-pivoted)
// (GET /admin/policy-map)
GetPolicyUserMap(w http.ResponseWriter, r *http.Request)
// Simulate an access decision for a given IP and host
// (GET /admin/policy-simulate)
SimulatePolicyAccess(w http.ResponseWriter, r *http.Request, params SimulatePolicyAccessParams)
// List pending registrations (Admin only)
// (GET /admin/registrations)
ListRegistrations(w http.ResponseWriter, r *http.Request, params ListRegistrationsParams)
// Create a registration invite (Admin only)
// (POST /admin/registrations)
CreateRegistration(w http.ResponseWriter, r *http.Request)
// Invalidate and delete an unclaimed invite (Admin only)
// (DELETE /admin/registrations/{registration_id})
DeleteRegistration(w http.ResponseWriter, r *http.Request, registrationId ID)
// Get a single registration invite (Admin only)
// (GET /admin/registrations/{registration_id})
GetRegistration(w http.ResponseWriter, r *http.Request, registrationId ID)
// List all users
// (GET /admin/users)
ListUsers(w http.ResponseWriter, r *http.Request)
// Superadmin only. Register a new user. Creation role is always "user", to create an admin promote it after creation
// (POST /admin/users)
CreateUser(w http.ResponseWriter, r *http.Request)
// Delete a user
// (DELETE /admin/users/{user_id})
DeleteUser(w http.ResponseWriter, r *http.Request, userId ID)
// Superadmin only. Demote an admin to regular user
// (POST /admin/users/{user_id}/demote)
DemoteUser(w http.ResponseWriter, r *http.Request, userId ID)
// List devices owned by a user
// (GET /admin/users/{user_id}/devices)
GetDevicesByUser(w http.ResponseWriter, r *http.Request, userId ID)
// Atomically replace a user's host grants and bypass flag
// (PUT /admin/users/{user_id}/host-grants)
SetUserHostGrants(w http.ResponseWriter, r *http.Request, userId ID)
// Superadmin only. Promote a user to admin
// (POST /admin/users/{user_id}/promote)
PromoteUser(w http.ResponseWriter, r *http.Request, userId ID)
// Login user
// (POST /auth/login)
Login(w http.ResponseWriter, r *http.Request)
// Logout user
// (POST /auth/logout)
Logout(w http.ResponseWriter, r *http.Request)
// Get current user
// (GET /auth/me)
GetCurrentUser(w http.ResponseWriter, r *http.Request)
// Dashboard service breakdown
// (GET /dashboard/services)
GetDashboardServices(w http.ResponseWriter, r *http.Request, params GetDashboardServicesParams)
// Dashboard summary statistics
// (GET /dashboard/stats)
GetDashboardStats(w http.ResponseWriter, r *http.Request, params GetDashboardStatsParams)
// Dashboard top denied IPs
// (GET /dashboard/top-denied-ips)
GetDashboardTopDeniedIps(w http.ResponseWriter, r *http.Request, params GetDashboardTopDeniedIpsParams)
// Dashboard traffic time series
// (GET /dashboard/traffic)
GetDashboardTraffic(w http.ResponseWriter, r *http.Request, params GetDashboardTrafficParams)
// List device types
// (GET /device-types)
ListDeviceTypes(w http.ResponseWriter, r *http.Request)
// List all devices
// (GET /devices)
GetDevices(w http.ResponseWriter, r *http.Request)
// Create a device
// (POST /devices)
CreateDevice(w http.ResponseWriter, r *http.Request)
// Delete a device
// (DELETE /devices/{device_id})
DeleteDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
// Get a device
// (GET /devices/{device_id})
GetDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
// Update device profile
// (PATCH /devices/{device_id})
UpdateDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
// Get addresses for a device
// (GET /devices/{device_id}/addresses)
GetDeviceAddresses(w http.ResponseWriter, r *http.Request, deviceId ID)
// Assign address to device
// (POST /devices/{device_id}/addresses)
AddAddress(w http.ResponseWriter, r *http.Request, deviceId ID)
// Disable address
// (DELETE /devices/{device_id}/addresses/{address_id})
DisableAddress(w http.ResponseWriter, r *http.Request, deviceId ID, addressId ID)
// Delete device API key
// (DELETE /devices/{device_id}/api-key)
DeleteDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)
// Generate or regenerate device API key
// (POST /devices/{device_id}/api-key/regenerate)
RegenerateDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)
// Device heartbeat
// (POST /devices/{device_id}/heartbeat)
DeviceHeartbeat(w http.ResponseWriter, r *http.Request, deviceId ID)
// Disable device lease rule for a device
// (DELETE /devices/{device_id}/rules/address_lease)
DisableDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
// Get address lease rule for a device
// (GET /devices/{device_id}/rules/address_lease)
GetDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
// Create or update IP auto-expiry rule for a device
// (PUT /devices/{device_id}/rules/address_lease)
PutDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
// Disable max active addresses rule for a device
// (DELETE /devices/{device_id}/rules/max_active_addresses)
DisableMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
// Get max active addresses rule for a device
// (GET /devices/{device_id}/rules/max_active_addresses)
GetMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
// Create or update max active addresses rule for a device
// (PUT /devices/{device_id}/rules/max_active_addresses)
PutMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
// Performs a heartbeat with the given api key header
// (POST /heartbeat)
DeviceHeartbeatByAPIKey(w http.ResponseWriter, r *http.Request)
// Claim a registration code
// (POST /register)
ClaimRegistration(w http.ResponseWriter, r *http.Request)
// Update current user profile
// (PATCH /users/me)
UpdateMe(w http.ResponseWriter, r *http.Request)
// Change current user password. Only administrators can change their password
// (POST /users/me/password)
ChangePassword(w http.ResponseWriter, r *http.Request)
}
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
func NewStrictHandlerWithOptions ¶
func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
HandlerMiddlewares []MiddlewareFunc
ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) AddAddress ¶
func (siw *ServerInterfaceWrapper) AddAddress(w http.ResponseWriter, r *http.Request)
AddAddress operation middleware
func (*ServerInterfaceWrapper) ChangePassword ¶
func (siw *ServerInterfaceWrapper) ChangePassword(w http.ResponseWriter, r *http.Request)
ChangePassword operation middleware
func (*ServerInterfaceWrapper) ClaimRegistration ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) ClaimRegistration(w http.ResponseWriter, r *http.Request)
ClaimRegistration operation middleware
func (*ServerInterfaceWrapper) CreateDevice ¶
func (siw *ServerInterfaceWrapper) CreateDevice(w http.ResponseWriter, r *http.Request)
CreateDevice operation middleware
func (*ServerInterfaceWrapper) CreateRegistration ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) CreateRegistration(w http.ResponseWriter, r *http.Request)
CreateRegistration operation middleware
func (*ServerInterfaceWrapper) CreateUser ¶
func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)
CreateUser operation middleware
func (*ServerInterfaceWrapper) DeleteDevice ¶
func (siw *ServerInterfaceWrapper) DeleteDevice(w http.ResponseWriter, r *http.Request)
DeleteDevice operation middleware
func (*ServerInterfaceWrapper) DeleteDeviceAPIKey ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) DeleteDeviceAPIKey(w http.ResponseWriter, r *http.Request)
DeleteDeviceAPIKey operation middleware
func (*ServerInterfaceWrapper) DeleteRegistration ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) DeleteRegistration(w http.ResponseWriter, r *http.Request)
DeleteRegistration operation middleware
func (*ServerInterfaceWrapper) DeleteUser ¶
func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)
DeleteUser operation middleware
func (*ServerInterfaceWrapper) DemoteUser ¶
func (siw *ServerInterfaceWrapper) DemoteUser(w http.ResponseWriter, r *http.Request)
DemoteUser operation middleware
func (*ServerInterfaceWrapper) DeviceHeartbeat ¶
func (siw *ServerInterfaceWrapper) DeviceHeartbeat(w http.ResponseWriter, r *http.Request)
DeviceHeartbeat operation middleware
func (*ServerInterfaceWrapper) DeviceHeartbeatByAPIKey ¶
func (siw *ServerInterfaceWrapper) DeviceHeartbeatByAPIKey(w http.ResponseWriter, r *http.Request)
DeviceHeartbeatByAPIKey operation middleware
func (*ServerInterfaceWrapper) DisableAddress ¶
func (siw *ServerInterfaceWrapper) DisableAddress(w http.ResponseWriter, r *http.Request)
DisableAddress operation middleware
func (*ServerInterfaceWrapper) DisableDeviceAddressLeaseRule ¶
func (siw *ServerInterfaceWrapper) DisableDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request)
DisableDeviceAddressLeaseRule operation middleware
func (*ServerInterfaceWrapper) DisableMaxActiveAddressesRule ¶ added in v0.2.0
func (siw *ServerInterfaceWrapper) DisableMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request)
DisableMaxActiveAddressesRule operation middleware
func (*ServerInterfaceWrapper) GetAccessLog ¶
func (siw *ServerInterfaceWrapper) GetAccessLog(w http.ResponseWriter, r *http.Request)
GetAccessLog operation middleware
func (*ServerInterfaceWrapper) GetAccessLogByCountry ¶
func (siw *ServerInterfaceWrapper) GetAccessLogByCountry(w http.ResponseWriter, r *http.Request)
GetAccessLogByCountry operation middleware
func (*ServerInterfaceWrapper) GetAccessLogDenyReasons ¶
func (siw *ServerInterfaceWrapper) GetAccessLogDenyReasons(w http.ResponseWriter, r *http.Request)
GetAccessLogDenyReasons operation middleware
func (*ServerInterfaceWrapper) GetAddressHistory ¶
func (siw *ServerInterfaceWrapper) GetAddressHistory(w http.ResponseWriter, r *http.Request)
GetAddressHistory operation middleware
func (*ServerInterfaceWrapper) GetCurrentUser ¶
func (siw *ServerInterfaceWrapper) GetCurrentUser(w http.ResponseWriter, r *http.Request)
GetCurrentUser operation middleware
func (*ServerInterfaceWrapper) GetDashboardServices ¶
func (siw *ServerInterfaceWrapper) GetDashboardServices(w http.ResponseWriter, r *http.Request)
GetDashboardServices operation middleware
func (*ServerInterfaceWrapper) GetDashboardStats ¶
func (siw *ServerInterfaceWrapper) GetDashboardStats(w http.ResponseWriter, r *http.Request)
GetDashboardStats operation middleware
func (*ServerInterfaceWrapper) GetDashboardTopDeniedIps ¶
func (siw *ServerInterfaceWrapper) GetDashboardTopDeniedIps(w http.ResponseWriter, r *http.Request)
GetDashboardTopDeniedIps operation middleware
func (*ServerInterfaceWrapper) GetDashboardTraffic ¶
func (siw *ServerInterfaceWrapper) GetDashboardTraffic(w http.ResponseWriter, r *http.Request)
GetDashboardTraffic operation middleware
func (*ServerInterfaceWrapper) GetDevice ¶
func (siw *ServerInterfaceWrapper) GetDevice(w http.ResponseWriter, r *http.Request)
GetDevice operation middleware
func (*ServerInterfaceWrapper) GetDeviceAddressLeaseRule ¶
func (siw *ServerInterfaceWrapper) GetDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request)
GetDeviceAddressLeaseRule operation middleware
func (*ServerInterfaceWrapper) GetDeviceAddresses ¶
func (siw *ServerInterfaceWrapper) GetDeviceAddresses(w http.ResponseWriter, r *http.Request)
GetDeviceAddresses operation middleware
func (*ServerInterfaceWrapper) GetDevices ¶
func (siw *ServerInterfaceWrapper) GetDevices(w http.ResponseWriter, r *http.Request)
GetDevices operation middleware
func (*ServerInterfaceWrapper) GetDevicesByUser ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) GetDevicesByUser(w http.ResponseWriter, r *http.Request)
GetDevicesByUser operation middleware
func (*ServerInterfaceWrapper) GetMaxActiveAddressesRule ¶ added in v0.2.0
func (siw *ServerInterfaceWrapper) GetMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request)
GetMaxActiveAddressesRule operation middleware
func (*ServerInterfaceWrapper) GetPolicyUserMap ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) GetPolicyUserMap(w http.ResponseWriter, r *http.Request)
GetPolicyUserMap operation middleware
func (*ServerInterfaceWrapper) GetRegistration ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) GetRegistration(w http.ResponseWriter, r *http.Request)
GetRegistration operation middleware
func (*ServerInterfaceWrapper) GetUserHostDetails ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) GetUserHostDetails(w http.ResponseWriter, r *http.Request)
GetUserHostDetails operation middleware
func (*ServerInterfaceWrapper) IgnoreSuggestion ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) IgnoreSuggestion(w http.ResponseWriter, r *http.Request)
IgnoreSuggestion operation middleware
func (*ServerInterfaceWrapper) ListDeviceTypes ¶ added in v0.2.0
func (siw *ServerInterfaceWrapper) ListDeviceTypes(w http.ResponseWriter, r *http.Request)
ListDeviceTypes operation middleware
func (*ServerInterfaceWrapper) ListHostGroups ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) ListHostGroups(w http.ResponseWriter, r *http.Request)
ListHostGroups operation middleware
func (*ServerInterfaceWrapper) ListHostSuggestions ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) ListHostSuggestions(w http.ResponseWriter, r *http.Request)
ListHostSuggestions operation middleware
func (*ServerInterfaceWrapper) ListKnownHosts ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) ListKnownHosts(w http.ResponseWriter, r *http.Request)
ListKnownHosts operation middleware
func (*ServerInterfaceWrapper) ListRegistrations ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) ListRegistrations(w http.ResponseWriter, r *http.Request)
ListRegistrations operation middleware
func (*ServerInterfaceWrapper) ListUsers ¶
func (siw *ServerInterfaceWrapper) ListUsers(w http.ResponseWriter, r *http.Request)
ListUsers operation middleware
func (*ServerInterfaceWrapper) ListUsersHostAccess ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) ListUsersHostAccess(w http.ResponseWriter, r *http.Request)
ListUsersHostAccess operation middleware
func (*ServerInterfaceWrapper) Login ¶
func (siw *ServerInterfaceWrapper) Login(w http.ResponseWriter, r *http.Request)
Login operation middleware
func (*ServerInterfaceWrapper) Logout ¶
func (siw *ServerInterfaceWrapper) Logout(w http.ResponseWriter, r *http.Request)
Logout operation middleware
func (*ServerInterfaceWrapper) PromoteUser ¶
func (siw *ServerInterfaceWrapper) PromoteUser(w http.ResponseWriter, r *http.Request)
PromoteUser operation middleware
func (*ServerInterfaceWrapper) PutDeviceAddressLeaseRule ¶
func (siw *ServerInterfaceWrapper) PutDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request)
PutDeviceAddressLeaseRule operation middleware
func (*ServerInterfaceWrapper) PutMaxActiveAddressesRule ¶ added in v0.2.0
func (siw *ServerInterfaceWrapper) PutMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request)
PutMaxActiveAddressesRule operation middleware
func (*ServerInterfaceWrapper) ReconcileHostGroups ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) ReconcileHostGroups(w http.ResponseWriter, r *http.Request)
ReconcileHostGroups operation middleware
func (*ServerInterfaceWrapper) ReconcileKnownHosts ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) ReconcileKnownHosts(w http.ResponseWriter, r *http.Request)
ReconcileKnownHosts operation middleware
func (*ServerInterfaceWrapper) RegenerateDeviceAPIKey ¶
func (siw *ServerInterfaceWrapper) RegenerateDeviceAPIKey(w http.ResponseWriter, r *http.Request)
RegenerateDeviceAPIKey operation middleware
func (*ServerInterfaceWrapper) SetUserHostGrants ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) SetUserHostGrants(w http.ResponseWriter, r *http.Request)
SetUserHostGrants operation middleware
func (*ServerInterfaceWrapper) SimulatePolicyAccess ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) SimulatePolicyAccess(w http.ResponseWriter, r *http.Request)
SimulatePolicyAccess operation middleware
func (*ServerInterfaceWrapper) UnignoreSuggestion ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) UnignoreSuggestion(w http.ResponseWriter, r *http.Request)
UnignoreSuggestion operation middleware
func (*ServerInterfaceWrapper) UpdateDevice ¶ added in v0.2.0
func (siw *ServerInterfaceWrapper) UpdateDevice(w http.ResponseWriter, r *http.Request)
UpdateDevice operation middleware
func (*ServerInterfaceWrapper) UpdateMe ¶
func (siw *ServerInterfaceWrapper) UpdateMe(w http.ResponseWriter, r *http.Request)
UpdateMe operation middleware
type SetUserHostGrants204Response ¶ added in v0.3.0
type SetUserHostGrants204Response struct {
}
func (SetUserHostGrants204Response) VisitSetUserHostGrantsResponse ¶ added in v0.3.0
func (response SetUserHostGrants204Response) VisitSetUserHostGrantsResponse(w http.ResponseWriter) error
type SetUserHostGrants400JSONResponse ¶ added in v0.3.0
type SetUserHostGrants400JSONResponse ErrorResponse
func (SetUserHostGrants400JSONResponse) VisitSetUserHostGrantsResponse ¶ added in v0.3.0
func (response SetUserHostGrants400JSONResponse) VisitSetUserHostGrantsResponse(w http.ResponseWriter) error
type SetUserHostGrants401JSONResponse ¶ added in v0.3.0
type SetUserHostGrants401JSONResponse ErrorResponse
func (SetUserHostGrants401JSONResponse) VisitSetUserHostGrantsResponse ¶ added in v0.3.0
func (response SetUserHostGrants401JSONResponse) VisitSetUserHostGrantsResponse(w http.ResponseWriter) error
type SetUserHostGrants403Response ¶ added in v0.3.0
type SetUserHostGrants403Response struct {
}
func (SetUserHostGrants403Response) VisitSetUserHostGrantsResponse ¶ added in v0.3.0
func (response SetUserHostGrants403Response) VisitSetUserHostGrantsResponse(w http.ResponseWriter) error
type SetUserHostGrants404JSONResponse ¶ added in v0.3.0
type SetUserHostGrants404JSONResponse ErrorResponse
func (SetUserHostGrants404JSONResponse) VisitSetUserHostGrantsResponse ¶ added in v0.3.0
func (response SetUserHostGrants404JSONResponse) VisitSetUserHostGrantsResponse(w http.ResponseWriter) error
type SetUserHostGrants500JSONResponse ¶ added in v0.3.0
type SetUserHostGrants500JSONResponse ErrorResponse
func (SetUserHostGrants500JSONResponse) VisitSetUserHostGrantsResponse ¶ added in v0.3.0
func (response SetUserHostGrants500JSONResponse) VisitSetUserHostGrantsResponse(w http.ResponseWriter) error
type SetUserHostGrantsJSONRequestBody ¶ added in v0.3.0
type SetUserHostGrantsJSONRequestBody = SetUserHostGrantsRequest
SetUserHostGrantsJSONRequestBody defines body for SetUserHostGrants for application/json ContentType.
type SetUserHostGrantsRequest ¶ added in v0.3.0
type SetUserHostGrantsRequest struct {
Bypass *bool `json:"bypass,omitempty"`
GroupIds *[]int `json:"group_ids,omitempty"`
HostIds *[]int `json:"host_ids,omitempty"`
}
SetUserHostGrantsRequest defines model for SetUserHostGrantsRequest.
type SetUserHostGrantsRequestObject ¶ added in v0.3.0
type SetUserHostGrantsRequestObject struct {
UserId ID `json:"user_id"`
Body *SetUserHostGrantsJSONRequestBody
}
type SetUserHostGrantsResponseObject ¶ added in v0.3.0
type SetUserHostGrantsResponseObject interface {
VisitSetUserHostGrantsResponse(w http.ResponseWriter) error
}
type SimulatePolicyAccess200JSONResponse ¶ added in v0.3.0
type SimulatePolicyAccess200JSONResponse PolicySimulateResult
func (SimulatePolicyAccess200JSONResponse) VisitSimulatePolicyAccessResponse ¶ added in v0.3.0
func (response SimulatePolicyAccess200JSONResponse) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error
type SimulatePolicyAccess400JSONResponse ¶ added in v0.3.0
type SimulatePolicyAccess400JSONResponse ErrorResponse
func (SimulatePolicyAccess400JSONResponse) VisitSimulatePolicyAccessResponse ¶ added in v0.3.0
func (response SimulatePolicyAccess400JSONResponse) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error
type SimulatePolicyAccess401JSONResponse ¶ added in v0.3.0
type SimulatePolicyAccess401JSONResponse ErrorResponse
func (SimulatePolicyAccess401JSONResponse) VisitSimulatePolicyAccessResponse ¶ added in v0.3.0
func (response SimulatePolicyAccess401JSONResponse) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error
type SimulatePolicyAccess403Response ¶ added in v0.3.0
type SimulatePolicyAccess403Response struct {
}
func (SimulatePolicyAccess403Response) VisitSimulatePolicyAccessResponse ¶ added in v0.3.0
func (response SimulatePolicyAccess403Response) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error
type SimulatePolicyAccess500JSONResponse ¶ added in v0.3.0
type SimulatePolicyAccess500JSONResponse ErrorResponse
func (SimulatePolicyAccess500JSONResponse) VisitSimulatePolicyAccessResponse ¶ added in v0.3.0
func (response SimulatePolicyAccess500JSONResponse) VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error
type SimulatePolicyAccessParams ¶ added in v0.3.0
type SimulatePolicyAccessParams struct {
// Ip Client IP to simulate.
Ip string `form:"ip" json:"ip"`
// Host Target host FQDN to simulate.
Host string `form:"host" json:"host"`
}
SimulatePolicyAccessParams defines parameters for SimulatePolicyAccess.
type SimulatePolicyAccessRequestObject ¶ added in v0.3.0
type SimulatePolicyAccessRequestObject struct {
Params SimulatePolicyAccessParams
}
type SimulatePolicyAccessResponseObject ¶ added in v0.3.0
type SimulatePolicyAccessResponseObject interface {
VisitSimulatePolicyAccessResponse(w http.ResponseWriter) error
}
type StrictHTTPServerOptions ¶
type StrictHTTPServerOptions struct {
RequestErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictnethttp.StrictHTTPHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictnethttp.StrictHTTPMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// List access log entries
// (GET /access-log)
GetAccessLog(ctx context.Context, request GetAccessLogRequestObject) (GetAccessLogResponseObject, error)
// List valid deny reason values
// (GET /access-log/deny-reasons)
GetAccessLogDenyReasons(ctx context.Context, request GetAccessLogDenyReasonsRequestObject) (GetAccessLogDenyReasonsResponseObject, error)
// Request counts grouped by country
// (GET /access-log/stats/by-country)
GetAccessLogByCountry(ctx context.Context, request GetAccessLogByCountryRequestObject) (GetAccessLogByCountryResponseObject, error)
// Get address activity history
// (GET /address-history)
GetAddressHistory(ctx context.Context, request GetAddressHistoryRequestObject) (GetAddressHistoryResponseObject, error)
// List all users with host access summary (bypass, direct host count, groups)
// (GET /admin/host-access/users)
ListUsersHostAccess(ctx context.Context, request ListUsersHostAccessRequestObject) (ListUsersHostAccessResponseObject, error)
// Get full host access details for a single user (drawer data)
// (GET /admin/host-access/users/{user_id})
GetUserHostDetails(ctx context.Context, request GetUserHostDetailsRequestObject) (GetUserHostDetailsResponseObject, error)
// List host groups with their member host IDs
// (GET /admin/host-groups)
ListHostGroups(ctx context.Context, request ListHostGroupsRequestObject) (ListHostGroupsResponseObject, error)
// Reconcile the full desired image of host groups and their members
// (PUT /admin/host-groups/reconcile)
ReconcileHostGroups(ctx context.Context, request ReconcileHostGroupsRequestObject) (ReconcileHostGroupsResponseObject, error)
// List FQDNs seen in the access log that are not yet known hosts, plus ignored suggestions
// (GET /admin/host-suggestions)
ListHostSuggestions(ctx context.Context, request ListHostSuggestionsRequestObject) (ListHostSuggestionsResponseObject, error)
// Ignore a host suggestion
// (POST /admin/host-suggestions/ignore)
IgnoreSuggestion(ctx context.Context, request IgnoreSuggestionRequestObject) (IgnoreSuggestionResponseObject, error)
// Remove a host suggestion from the ignore list
// (DELETE /admin/host-suggestions/ignore/{fqdn})
UnignoreSuggestion(ctx context.Context, request UnignoreSuggestionRequestObject) (UnignoreSuggestionResponseObject, error)
// List known hosts with access stats
// (GET /admin/hosts)
ListKnownHosts(ctx context.Context, request ListKnownHostsRequestObject) (ListKnownHostsResponseObject, error)
// Reconcile the full desired image of known hosts
// (PUT /admin/hosts/reconcile)
ReconcileKnownHosts(ctx context.Context, request ReconcileKnownHostsRequestObject) (ReconcileKnownHostsResponseObject, error)
// Get the current policy cache snapshot (user-pivoted)
// (GET /admin/policy-map)
GetPolicyUserMap(ctx context.Context, request GetPolicyUserMapRequestObject) (GetPolicyUserMapResponseObject, error)
// Simulate an access decision for a given IP and host
// (GET /admin/policy-simulate)
SimulatePolicyAccess(ctx context.Context, request SimulatePolicyAccessRequestObject) (SimulatePolicyAccessResponseObject, error)
// List pending registrations (Admin only)
// (GET /admin/registrations)
ListRegistrations(ctx context.Context, request ListRegistrationsRequestObject) (ListRegistrationsResponseObject, error)
// Create a registration invite (Admin only)
// (POST /admin/registrations)
CreateRegistration(ctx context.Context, request CreateRegistrationRequestObject) (CreateRegistrationResponseObject, error)
// Invalidate and delete an unclaimed invite (Admin only)
// (DELETE /admin/registrations/{registration_id})
DeleteRegistration(ctx context.Context, request DeleteRegistrationRequestObject) (DeleteRegistrationResponseObject, error)
// Get a single registration invite (Admin only)
// (GET /admin/registrations/{registration_id})
GetRegistration(ctx context.Context, request GetRegistrationRequestObject) (GetRegistrationResponseObject, error)
// List all users
// (GET /admin/users)
ListUsers(ctx context.Context, request ListUsersRequestObject) (ListUsersResponseObject, error)
// Superadmin only. Register a new user. Creation role is always "user", to create an admin promote it after creation
// (POST /admin/users)
CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)
// Delete a user
// (DELETE /admin/users/{user_id})
DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)
// Superadmin only. Demote an admin to regular user
// (POST /admin/users/{user_id}/demote)
DemoteUser(ctx context.Context, request DemoteUserRequestObject) (DemoteUserResponseObject, error)
// List devices owned by a user
// (GET /admin/users/{user_id}/devices)
GetDevicesByUser(ctx context.Context, request GetDevicesByUserRequestObject) (GetDevicesByUserResponseObject, error)
// Atomically replace a user's host grants and bypass flag
// (PUT /admin/users/{user_id}/host-grants)
SetUserHostGrants(ctx context.Context, request SetUserHostGrantsRequestObject) (SetUserHostGrantsResponseObject, error)
// Superadmin only. Promote a user to admin
// (POST /admin/users/{user_id}/promote)
PromoteUser(ctx context.Context, request PromoteUserRequestObject) (PromoteUserResponseObject, error)
// Login user
// (POST /auth/login)
Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error)
// Logout user
// (POST /auth/logout)
Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error)
// Get current user
// (GET /auth/me)
GetCurrentUser(ctx context.Context, request GetCurrentUserRequestObject) (GetCurrentUserResponseObject, error)
// Dashboard service breakdown
// (GET /dashboard/services)
GetDashboardServices(ctx context.Context, request GetDashboardServicesRequestObject) (GetDashboardServicesResponseObject, error)
// Dashboard summary statistics
// (GET /dashboard/stats)
GetDashboardStats(ctx context.Context, request GetDashboardStatsRequestObject) (GetDashboardStatsResponseObject, error)
// Dashboard top denied IPs
// (GET /dashboard/top-denied-ips)
GetDashboardTopDeniedIps(ctx context.Context, request GetDashboardTopDeniedIpsRequestObject) (GetDashboardTopDeniedIpsResponseObject, error)
// Dashboard traffic time series
// (GET /dashboard/traffic)
GetDashboardTraffic(ctx context.Context, request GetDashboardTrafficRequestObject) (GetDashboardTrafficResponseObject, error)
// List device types
// (GET /device-types)
ListDeviceTypes(ctx context.Context, request ListDeviceTypesRequestObject) (ListDeviceTypesResponseObject, error)
// List all devices
// (GET /devices)
GetDevices(ctx context.Context, request GetDevicesRequestObject) (GetDevicesResponseObject, error)
// Create a device
// (POST /devices)
CreateDevice(ctx context.Context, request CreateDeviceRequestObject) (CreateDeviceResponseObject, error)
// Delete a device
// (DELETE /devices/{device_id})
DeleteDevice(ctx context.Context, request DeleteDeviceRequestObject) (DeleteDeviceResponseObject, error)
// Get a device
// (GET /devices/{device_id})
GetDevice(ctx context.Context, request GetDeviceRequestObject) (GetDeviceResponseObject, error)
// Update device profile
// (PATCH /devices/{device_id})
UpdateDevice(ctx context.Context, request UpdateDeviceRequestObject) (UpdateDeviceResponseObject, error)
// Get addresses for a device
// (GET /devices/{device_id}/addresses)
GetDeviceAddresses(ctx context.Context, request GetDeviceAddressesRequestObject) (GetDeviceAddressesResponseObject, error)
// Assign address to device
// (POST /devices/{device_id}/addresses)
AddAddress(ctx context.Context, request AddAddressRequestObject) (AddAddressResponseObject, error)
// Disable address
// (DELETE /devices/{device_id}/addresses/{address_id})
DisableAddress(ctx context.Context, request DisableAddressRequestObject) (DisableAddressResponseObject, error)
// Delete device API key
// (DELETE /devices/{device_id}/api-key)
DeleteDeviceAPIKey(ctx context.Context, request DeleteDeviceAPIKeyRequestObject) (DeleteDeviceAPIKeyResponseObject, error)
// Generate or regenerate device API key
// (POST /devices/{device_id}/api-key/regenerate)
RegenerateDeviceAPIKey(ctx context.Context, request RegenerateDeviceAPIKeyRequestObject) (RegenerateDeviceAPIKeyResponseObject, error)
// Device heartbeat
// (POST /devices/{device_id}/heartbeat)
DeviceHeartbeat(ctx context.Context, request DeviceHeartbeatRequestObject) (DeviceHeartbeatResponseObject, error)
// Disable device lease rule for a device
// (DELETE /devices/{device_id}/rules/address_lease)
DisableDeviceAddressLeaseRule(ctx context.Context, request DisableDeviceAddressLeaseRuleRequestObject) (DisableDeviceAddressLeaseRuleResponseObject, error)
// Get address lease rule for a device
// (GET /devices/{device_id}/rules/address_lease)
GetDeviceAddressLeaseRule(ctx context.Context, request GetDeviceAddressLeaseRuleRequestObject) (GetDeviceAddressLeaseRuleResponseObject, error)
// Create or update IP auto-expiry rule for a device
// (PUT /devices/{device_id}/rules/address_lease)
PutDeviceAddressLeaseRule(ctx context.Context, request PutDeviceAddressLeaseRuleRequestObject) (PutDeviceAddressLeaseRuleResponseObject, error)
// Disable max active addresses rule for a device
// (DELETE /devices/{device_id}/rules/max_active_addresses)
DisableMaxActiveAddressesRule(ctx context.Context, request DisableMaxActiveAddressesRuleRequestObject) (DisableMaxActiveAddressesRuleResponseObject, error)
// Get max active addresses rule for a device
// (GET /devices/{device_id}/rules/max_active_addresses)
GetMaxActiveAddressesRule(ctx context.Context, request GetMaxActiveAddressesRuleRequestObject) (GetMaxActiveAddressesRuleResponseObject, error)
// Create or update max active addresses rule for a device
// (PUT /devices/{device_id}/rules/max_active_addresses)
PutMaxActiveAddressesRule(ctx context.Context, request PutMaxActiveAddressesRuleRequestObject) (PutMaxActiveAddressesRuleResponseObject, error)
// Performs a heartbeat with the given api key header
// (POST /heartbeat)
DeviceHeartbeatByAPIKey(ctx context.Context, request DeviceHeartbeatByAPIKeyRequestObject) (DeviceHeartbeatByAPIKeyResponseObject, error)
// Claim a registration code
// (POST /register)
ClaimRegistration(ctx context.Context, request ClaimRegistrationRequestObject) (ClaimRegistrationResponseObject, error)
// Update current user profile
// (PATCH /users/me)
UpdateMe(ctx context.Context, request UpdateMeRequestObject) (UpdateMeResponseObject, error)
// Change current user password. Only administrators can change their password
// (POST /users/me/password)
ChangePassword(ctx context.Context, request ChangePasswordRequestObject) (ChangePasswordResponseObject, error)
}
StrictServerInterface represents all server handlers.
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UTCTime ¶
UTCTime wraps time.Time and always marshals to UTC RFC3339. It is used for all date-time fields in API response types so that UTC serialization is enforced at the type level — the compiler requires an explicit UTCTime(t) conversion in every handler, making it impossible to accidentally return a non-UTC timestamp.
func (UTCTime) MarshalJSON ¶
func (*UTCTime) UnmarshalJSON ¶
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnignoreSuggestion204Response ¶ added in v0.3.0
type UnignoreSuggestion204Response struct {
}
func (UnignoreSuggestion204Response) VisitUnignoreSuggestionResponse ¶ added in v0.3.0
func (response UnignoreSuggestion204Response) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error
type UnignoreSuggestion401JSONResponse ¶ added in v0.3.0
type UnignoreSuggestion401JSONResponse ErrorResponse
func (UnignoreSuggestion401JSONResponse) VisitUnignoreSuggestionResponse ¶ added in v0.3.0
func (response UnignoreSuggestion401JSONResponse) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error
type UnignoreSuggestion403Response ¶ added in v0.3.0
type UnignoreSuggestion403Response struct {
}
func (UnignoreSuggestion403Response) VisitUnignoreSuggestionResponse ¶ added in v0.3.0
func (response UnignoreSuggestion403Response) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error
type UnignoreSuggestion404JSONResponse ¶ added in v0.3.0
type UnignoreSuggestion404JSONResponse ErrorResponse
func (UnignoreSuggestion404JSONResponse) VisitUnignoreSuggestionResponse ¶ added in v0.3.0
func (response UnignoreSuggestion404JSONResponse) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error
type UnignoreSuggestion500JSONResponse ¶ added in v0.3.0
type UnignoreSuggestion500JSONResponse ErrorResponse
func (UnignoreSuggestion500JSONResponse) VisitUnignoreSuggestionResponse ¶ added in v0.3.0
func (response UnignoreSuggestion500JSONResponse) VisitUnignoreSuggestionResponse(w http.ResponseWriter) error
type UnignoreSuggestionRequestObject ¶ added in v0.3.0
type UnignoreSuggestionRequestObject struct {
Fqdn string `json:"fqdn"`
}
type UnignoreSuggestionResponseObject ¶ added in v0.3.0
type UnignoreSuggestionResponseObject interface {
VisitUnignoreSuggestionResponse(w http.ResponseWriter) error
}
type Unimplemented ¶
type Unimplemented struct{}
func (Unimplemented) AddAddress ¶
func (_ Unimplemented) AddAddress(w http.ResponseWriter, r *http.Request, deviceId ID)
Assign address to device (POST /devices/{device_id}/addresses)
func (Unimplemented) ChangePassword ¶
func (_ Unimplemented) ChangePassword(w http.ResponseWriter, r *http.Request)
Change current user password. Only administrators can change their password (POST /users/me/password)
func (Unimplemented) ClaimRegistration ¶ added in v0.3.0
func (_ Unimplemented) ClaimRegistration(w http.ResponseWriter, r *http.Request)
Claim a registration code (POST /register)
func (Unimplemented) CreateDevice ¶
func (_ Unimplemented) CreateDevice(w http.ResponseWriter, r *http.Request)
Create a device (POST /devices)
func (Unimplemented) CreateRegistration ¶ added in v0.3.0
func (_ Unimplemented) CreateRegistration(w http.ResponseWriter, r *http.Request)
Create a registration invite (Admin only) (POST /admin/registrations)
func (Unimplemented) CreateUser ¶
func (_ Unimplemented) CreateUser(w http.ResponseWriter, r *http.Request)
Superadmin only. Register a new user. Creation role is always "user", to create an admin promote it after creation (POST /admin/users)
func (Unimplemented) DeleteDevice ¶
func (_ Unimplemented) DeleteDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
Delete a device (DELETE /devices/{device_id})
func (Unimplemented) DeleteDeviceAPIKey ¶ added in v0.3.0
func (_ Unimplemented) DeleteDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)
Delete device API key (DELETE /devices/{device_id}/api-key)
func (Unimplemented) DeleteRegistration ¶ added in v0.3.0
func (_ Unimplemented) DeleteRegistration(w http.ResponseWriter, r *http.Request, registrationId ID)
Invalidate and delete an unclaimed invite (Admin only) (DELETE /admin/registrations/{registration_id})
func (Unimplemented) DeleteUser ¶
func (_ Unimplemented) DeleteUser(w http.ResponseWriter, r *http.Request, userId ID)
Delete a user (DELETE /admin/users/{user_id})
func (Unimplemented) DemoteUser ¶
func (_ Unimplemented) DemoteUser(w http.ResponseWriter, r *http.Request, userId ID)
Superadmin only. Demote an admin to regular user (POST /admin/users/{user_id}/demote)
func (Unimplemented) DeviceHeartbeat ¶
func (_ Unimplemented) DeviceHeartbeat(w http.ResponseWriter, r *http.Request, deviceId ID)
Device heartbeat (POST /devices/{device_id}/heartbeat)
func (Unimplemented) DeviceHeartbeatByAPIKey ¶
func (_ Unimplemented) DeviceHeartbeatByAPIKey(w http.ResponseWriter, r *http.Request)
Performs a heartbeat with the given api key header (POST /heartbeat)
func (Unimplemented) DisableAddress ¶
func (_ Unimplemented) DisableAddress(w http.ResponseWriter, r *http.Request, deviceId ID, addressId ID)
Disable address (DELETE /devices/{device_id}/addresses/{address_id})
func (Unimplemented) DisableDeviceAddressLeaseRule ¶
func (_ Unimplemented) DisableDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
Disable device lease rule for a device (DELETE /devices/{device_id}/rules/address_lease)
func (Unimplemented) DisableMaxActiveAddressesRule ¶ added in v0.2.0
func (_ Unimplemented) DisableMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
Disable max active addresses rule for a device (DELETE /devices/{device_id}/rules/max_active_addresses)
func (Unimplemented) GetAccessLog ¶
func (_ Unimplemented) GetAccessLog(w http.ResponseWriter, r *http.Request, params GetAccessLogParams)
List access log entries (GET /access-log)
func (Unimplemented) GetAccessLogByCountry ¶
func (_ Unimplemented) GetAccessLogByCountry(w http.ResponseWriter, r *http.Request, params GetAccessLogByCountryParams)
Request counts grouped by country (GET /access-log/stats/by-country)
func (Unimplemented) GetAccessLogDenyReasons ¶
func (_ Unimplemented) GetAccessLogDenyReasons(w http.ResponseWriter, r *http.Request)
List valid deny reason values (GET /access-log/deny-reasons)
func (Unimplemented) GetAddressHistory ¶
func (_ Unimplemented) GetAddressHistory(w http.ResponseWriter, r *http.Request, params GetAddressHistoryParams)
Get address activity history (GET /address-history)
func (Unimplemented) GetCurrentUser ¶
func (_ Unimplemented) GetCurrentUser(w http.ResponseWriter, r *http.Request)
Get current user (GET /auth/me)
func (Unimplemented) GetDashboardServices ¶
func (_ Unimplemented) GetDashboardServices(w http.ResponseWriter, r *http.Request, params GetDashboardServicesParams)
Dashboard service breakdown (GET /dashboard/services)
func (Unimplemented) GetDashboardStats ¶
func (_ Unimplemented) GetDashboardStats(w http.ResponseWriter, r *http.Request, params GetDashboardStatsParams)
Dashboard summary statistics (GET /dashboard/stats)
func (Unimplemented) GetDashboardTopDeniedIps ¶
func (_ Unimplemented) GetDashboardTopDeniedIps(w http.ResponseWriter, r *http.Request, params GetDashboardTopDeniedIpsParams)
Dashboard top denied IPs (GET /dashboard/top-denied-ips)
func (Unimplemented) GetDashboardTraffic ¶
func (_ Unimplemented) GetDashboardTraffic(w http.ResponseWriter, r *http.Request, params GetDashboardTrafficParams)
Dashboard traffic time series (GET /dashboard/traffic)
func (Unimplemented) GetDevice ¶
func (_ Unimplemented) GetDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
Get a device (GET /devices/{device_id})
func (Unimplemented) GetDeviceAddressLeaseRule ¶
func (_ Unimplemented) GetDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
Get address lease rule for a device (GET /devices/{device_id}/rules/address_lease)
func (Unimplemented) GetDeviceAddresses ¶
func (_ Unimplemented) GetDeviceAddresses(w http.ResponseWriter, r *http.Request, deviceId ID)
Get addresses for a device (GET /devices/{device_id}/addresses)
func (Unimplemented) GetDevices ¶
func (_ Unimplemented) GetDevices(w http.ResponseWriter, r *http.Request)
List all devices (GET /devices)
func (Unimplemented) GetDevicesByUser ¶ added in v0.3.0
func (_ Unimplemented) GetDevicesByUser(w http.ResponseWriter, r *http.Request, userId ID)
List devices owned by a user (GET /admin/users/{user_id}/devices)
func (Unimplemented) GetMaxActiveAddressesRule ¶ added in v0.2.0
func (_ Unimplemented) GetMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
Get max active addresses rule for a device (GET /devices/{device_id}/rules/max_active_addresses)
func (Unimplemented) GetPolicyUserMap ¶ added in v0.3.0
func (_ Unimplemented) GetPolicyUserMap(w http.ResponseWriter, r *http.Request)
Get the current policy cache snapshot (user-pivoted) (GET /admin/policy-map)
func (Unimplemented) GetRegistration ¶ added in v0.3.0
func (_ Unimplemented) GetRegistration(w http.ResponseWriter, r *http.Request, registrationId ID)
Get a single registration invite (Admin only) (GET /admin/registrations/{registration_id})
func (Unimplemented) GetUserHostDetails ¶ added in v0.3.0
func (_ Unimplemented) GetUserHostDetails(w http.ResponseWriter, r *http.Request, userId ID)
Get full host access details for a single user (drawer data) (GET /admin/host-access/users/{user_id})
func (Unimplemented) IgnoreSuggestion ¶ added in v0.3.0
func (_ Unimplemented) IgnoreSuggestion(w http.ResponseWriter, r *http.Request)
Ignore a host suggestion (POST /admin/host-suggestions/ignore)
func (Unimplemented) ListDeviceTypes ¶ added in v0.2.0
func (_ Unimplemented) ListDeviceTypes(w http.ResponseWriter, r *http.Request)
List device types (GET /device-types)
func (Unimplemented) ListHostGroups ¶ added in v0.3.0
func (_ Unimplemented) ListHostGroups(w http.ResponseWriter, r *http.Request)
List host groups with their member host IDs (GET /admin/host-groups)
func (Unimplemented) ListHostSuggestions ¶ added in v0.3.0
func (_ Unimplemented) ListHostSuggestions(w http.ResponseWriter, r *http.Request)
List FQDNs seen in the access log that are not yet known hosts, plus ignored suggestions (GET /admin/host-suggestions)
func (Unimplemented) ListKnownHosts ¶ added in v0.3.0
func (_ Unimplemented) ListKnownHosts(w http.ResponseWriter, r *http.Request)
List known hosts with access stats (GET /admin/hosts)
func (Unimplemented) ListRegistrations ¶ added in v0.3.0
func (_ Unimplemented) ListRegistrations(w http.ResponseWriter, r *http.Request, params ListRegistrationsParams)
List pending registrations (Admin only) (GET /admin/registrations)
func (Unimplemented) ListUsers ¶
func (_ Unimplemented) ListUsers(w http.ResponseWriter, r *http.Request)
List all users (GET /admin/users)
func (Unimplemented) ListUsersHostAccess ¶ added in v0.3.0
func (_ Unimplemented) ListUsersHostAccess(w http.ResponseWriter, r *http.Request)
List all users with host access summary (bypass, direct host count, groups) (GET /admin/host-access/users)
func (Unimplemented) Login ¶
func (_ Unimplemented) Login(w http.ResponseWriter, r *http.Request)
Login user (POST /auth/login)
func (Unimplemented) Logout ¶
func (_ Unimplemented) Logout(w http.ResponseWriter, r *http.Request)
Logout user (POST /auth/logout)
func (Unimplemented) PromoteUser ¶
func (_ Unimplemented) PromoteUser(w http.ResponseWriter, r *http.Request, userId ID)
Superadmin only. Promote a user to admin (POST /admin/users/{user_id}/promote)
func (Unimplemented) PutDeviceAddressLeaseRule ¶
func (_ Unimplemented) PutDeviceAddressLeaseRule(w http.ResponseWriter, r *http.Request, deviceId ID)
Create or update IP auto-expiry rule for a device (PUT /devices/{device_id}/rules/address_lease)
func (Unimplemented) PutMaxActiveAddressesRule ¶ added in v0.2.0
func (_ Unimplemented) PutMaxActiveAddressesRule(w http.ResponseWriter, r *http.Request, deviceId ID)
Create or update max active addresses rule for a device (PUT /devices/{device_id}/rules/max_active_addresses)
func (Unimplemented) ReconcileHostGroups ¶ added in v0.3.0
func (_ Unimplemented) ReconcileHostGroups(w http.ResponseWriter, r *http.Request)
Reconcile the full desired image of host groups and their members (PUT /admin/host-groups/reconcile)
func (Unimplemented) ReconcileKnownHosts ¶ added in v0.3.0
func (_ Unimplemented) ReconcileKnownHosts(w http.ResponseWriter, r *http.Request)
Reconcile the full desired image of known hosts (PUT /admin/hosts/reconcile)
func (Unimplemented) RegenerateDeviceAPIKey ¶
func (_ Unimplemented) RegenerateDeviceAPIKey(w http.ResponseWriter, r *http.Request, deviceId ID)
Generate or regenerate device API key (POST /devices/{device_id}/api-key/regenerate)
func (Unimplemented) SetUserHostGrants ¶ added in v0.3.0
func (_ Unimplemented) SetUserHostGrants(w http.ResponseWriter, r *http.Request, userId ID)
Atomically replace a user's host grants and bypass flag (PUT /admin/users/{user_id}/host-grants)
func (Unimplemented) SimulatePolicyAccess ¶ added in v0.3.0
func (_ Unimplemented) SimulatePolicyAccess(w http.ResponseWriter, r *http.Request, params SimulatePolicyAccessParams)
Simulate an access decision for a given IP and host (GET /admin/policy-simulate)
func (Unimplemented) UnignoreSuggestion ¶ added in v0.3.0
func (_ Unimplemented) UnignoreSuggestion(w http.ResponseWriter, r *http.Request, fqdn string)
Remove a host suggestion from the ignore list (DELETE /admin/host-suggestions/ignore/{fqdn})
func (Unimplemented) UpdateDevice ¶ added in v0.2.0
func (_ Unimplemented) UpdateDevice(w http.ResponseWriter, r *http.Request, deviceId ID)
Update device profile (PATCH /devices/{device_id})
func (Unimplemented) UpdateMe ¶
func (_ Unimplemented) UpdateMe(w http.ResponseWriter, r *http.Request)
Update current user profile (PATCH /users/me)
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error
type UpdateDevice200JSONResponse ¶ added in v0.2.0
type UpdateDevice200JSONResponse Device
func (UpdateDevice200JSONResponse) VisitUpdateDeviceResponse ¶ added in v0.2.0
func (response UpdateDevice200JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error
type UpdateDevice400JSONResponse ¶ added in v0.2.0
type UpdateDevice400JSONResponse ErrorResponse
func (UpdateDevice400JSONResponse) VisitUpdateDeviceResponse ¶ added in v0.2.0
func (response UpdateDevice400JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error
type UpdateDevice403JSONResponse ¶ added in v0.3.0
type UpdateDevice403JSONResponse ErrorResponse
func (UpdateDevice403JSONResponse) VisitUpdateDeviceResponse ¶ added in v0.3.0
func (response UpdateDevice403JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error
type UpdateDevice404JSONResponse ¶ added in v0.2.0
type UpdateDevice404JSONResponse ErrorResponse
func (UpdateDevice404JSONResponse) VisitUpdateDeviceResponse ¶ added in v0.2.0
func (response UpdateDevice404JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error
type UpdateDevice409JSONResponse ¶ added in v0.2.0
type UpdateDevice409JSONResponse ErrorResponse
func (UpdateDevice409JSONResponse) VisitUpdateDeviceResponse ¶ added in v0.2.0
func (response UpdateDevice409JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error
type UpdateDevice500JSONResponse ¶ added in v0.2.0
type UpdateDevice500JSONResponse ErrorResponse
func (UpdateDevice500JSONResponse) VisitUpdateDeviceResponse ¶ added in v0.2.0
func (response UpdateDevice500JSONResponse) VisitUpdateDeviceResponse(w http.ResponseWriter) error
type UpdateDeviceJSONRequestBody ¶ added in v0.2.0
type UpdateDeviceJSONRequestBody = UpdateDeviceRequest
UpdateDeviceJSONRequestBody defines body for UpdateDevice for application/json ContentType.
type UpdateDeviceRequest ¶ added in v0.2.0
type UpdateDeviceRequest struct {
// Description Free-form note. Pass null to clear.
Description NullableString `json:"description"`
// DeviceType Network behaviour classification.
DeviceType *UpdateDeviceRequestDeviceType `json:"device_type,omitempty"`
// Icon Tabler icon name override. Pass null to clear.
Icon NullableString `json:"icon"`
// Name New name for the device
Name *string `json:"name,omitempty"`
// OwnerId Admin only. Reassign device ownership to another user.
OwnerId *int `json:"owner_id"`
}
UpdateDeviceRequest defines model for UpdateDeviceRequest.
type UpdateDeviceRequestDeviceType ¶ added in v0.2.0
type UpdateDeviceRequestDeviceType string
UpdateDeviceRequestDeviceType Network behaviour classification.
const ( UpdateDeviceRequestDeviceTypeMobile UpdateDeviceRequestDeviceType = "mobile" UpdateDeviceRequestDeviceTypeStatic UpdateDeviceRequestDeviceType = "static" )
Defines values for UpdateDeviceRequestDeviceType.
type UpdateDeviceRequestObject ¶ added in v0.2.0
type UpdateDeviceRequestObject struct {
DeviceId ID `json:"device_id"`
Body *UpdateDeviceJSONRequestBody
}
type UpdateDeviceResponseObject ¶ added in v0.2.0
type UpdateDeviceResponseObject interface {
VisitUpdateDeviceResponse(w http.ResponseWriter) error
}
type UpdateMe200JSONResponse ¶
type UpdateMe200JSONResponse User
func (UpdateMe200JSONResponse) VisitUpdateMeResponse ¶
func (response UpdateMe200JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error
type UpdateMe400JSONResponse ¶
type UpdateMe400JSONResponse ErrorResponse
func (UpdateMe400JSONResponse) VisitUpdateMeResponse ¶
func (response UpdateMe400JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error
type UpdateMe401JSONResponse ¶
type UpdateMe401JSONResponse ErrorResponse
func (UpdateMe401JSONResponse) VisitUpdateMeResponse ¶
func (response UpdateMe401JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error
type UpdateMe409JSONResponse ¶
type UpdateMe409JSONResponse ErrorResponse
func (UpdateMe409JSONResponse) VisitUpdateMeResponse ¶
func (response UpdateMe409JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error
type UpdateMe500JSONResponse ¶
type UpdateMe500JSONResponse ErrorResponse
func (UpdateMe500JSONResponse) VisitUpdateMeResponse ¶
func (response UpdateMe500JSONResponse) VisitUpdateMeResponse(w http.ResponseWriter) error
type UpdateMeJSONRequestBody ¶
type UpdateMeJSONRequestBody = UpdateProfileRequest
UpdateMeJSONRequestBody defines body for UpdateMe for application/json ContentType.
type UpdateMeRequestObject ¶
type UpdateMeRequestObject struct {
Body *UpdateMeJSONRequestBody
}
type UpdateMeResponseObject ¶
type UpdateMeResponseObject interface {
VisitUpdateMeResponse(w http.ResponseWriter) error
}
type UpdateProfileRequest ¶
type UpdateProfileRequest struct {
// DisplayName User's public name. Unicode allowed.
DisplayName *DisplayName `json:"display_name,omitempty"`
Email *openapi_types.Email `json:"email,omitempty"`
Username *string `json:"username,omitempty"`
// contains filtered or unexported fields
}
UpdateProfileRequest defines model for UpdateProfileRequest.
func (UpdateProfileRequest) AsUpdateProfileRequest0 ¶
func (t UpdateProfileRequest) AsUpdateProfileRequest0() (UpdateProfileRequest0, error)
AsUpdateProfileRequest0 returns the union data inside the UpdateProfileRequest as a UpdateProfileRequest0
func (UpdateProfileRequest) AsUpdateProfileRequest1 ¶
func (t UpdateProfileRequest) AsUpdateProfileRequest1() (UpdateProfileRequest1, error)
AsUpdateProfileRequest1 returns the union data inside the UpdateProfileRequest as a UpdateProfileRequest1
func (UpdateProfileRequest) AsUpdateProfileRequest2 ¶
func (t UpdateProfileRequest) AsUpdateProfileRequest2() (UpdateProfileRequest2, error)
AsUpdateProfileRequest2 returns the union data inside the UpdateProfileRequest as a UpdateProfileRequest2
func (*UpdateProfileRequest) FromUpdateProfileRequest0 ¶
func (t *UpdateProfileRequest) FromUpdateProfileRequest0(v UpdateProfileRequest0) error
FromUpdateProfileRequest0 overwrites any union data inside the UpdateProfileRequest as the provided UpdateProfileRequest0
func (*UpdateProfileRequest) FromUpdateProfileRequest1 ¶
func (t *UpdateProfileRequest) FromUpdateProfileRequest1(v UpdateProfileRequest1) error
FromUpdateProfileRequest1 overwrites any union data inside the UpdateProfileRequest as the provided UpdateProfileRequest1
func (*UpdateProfileRequest) FromUpdateProfileRequest2 ¶
func (t *UpdateProfileRequest) FromUpdateProfileRequest2(v UpdateProfileRequest2) error
FromUpdateProfileRequest2 overwrites any union data inside the UpdateProfileRequest as the provided UpdateProfileRequest2
func (UpdateProfileRequest) MarshalJSON ¶
func (t UpdateProfileRequest) MarshalJSON() ([]byte, error)
func (*UpdateProfileRequest) MergeUpdateProfileRequest0 ¶
func (t *UpdateProfileRequest) MergeUpdateProfileRequest0(v UpdateProfileRequest0) error
MergeUpdateProfileRequest0 performs a merge with any union data inside the UpdateProfileRequest, using the provided UpdateProfileRequest0
func (*UpdateProfileRequest) MergeUpdateProfileRequest1 ¶
func (t *UpdateProfileRequest) MergeUpdateProfileRequest1(v UpdateProfileRequest1) error
MergeUpdateProfileRequest1 performs a merge with any union data inside the UpdateProfileRequest, using the provided UpdateProfileRequest1
func (*UpdateProfileRequest) MergeUpdateProfileRequest2 ¶
func (t *UpdateProfileRequest) MergeUpdateProfileRequest2(v UpdateProfileRequest2) error
MergeUpdateProfileRequest2 performs a merge with any union data inside the UpdateProfileRequest, using the provided UpdateProfileRequest2
func (*UpdateProfileRequest) UnmarshalJSON ¶
func (t *UpdateProfileRequest) UnmarshalJSON(b []byte) error
type UpdateProfileRequest0 ¶
type UpdateProfileRequest0 = interface{}
UpdateProfileRequest0 defines model for .
type UpdateProfileRequest1 ¶
type UpdateProfileRequest1 = interface{}
UpdateProfileRequest1 defines model for .
type UpdateProfileRequest2 ¶
type UpdateProfileRequest2 = interface{}
UpdateProfileRequest2 defines model for .
type User ¶
type User struct {
// BypassHostAllowlist When true the user bypasses the host allowlist and can reach every known host.
BypassHostAllowlist bool `json:"bypass_host_allowlist"`
CreatedAt UTCTime `json:"created_at"`
// DisplayName User's public name. Unicode allowed.
DisplayName DisplayName `json:"display_name"`
Email openapi_types.Email `json:"email"`
Id ID `json:"id"`
// MustChangePassword When true, the user must change their password before using the app.
MustChangePassword *bool `json:"must_change_password,omitempty"`
// Role The user's role. User role cannot login. Only superadmin can manage users.
Role UserRole `json:"role"`
// Username Unique username. Lowercase alphanumeric, underscores, and hyphens only. Uppercase letters are not accepted.
Username Username `json:"username"`
}
User defines model for User.
type UserHostAccessSummary ¶ added in v0.3.0
type UserHostAccessSummary struct {
// Bypass When true the user can reach every known host.
Bypass bool `json:"bypass"`
// DirectHostCount Number of hosts granted directly via user_allowed_hosts.
DirectHostCount int `json:"direct_host_count"`
DisplayName string `json:"display_name"`
Email openapi_types.Email `json:"email"`
Groups []GroupRef `json:"groups"`
Id ID `json:"id"`
// Role The user's role. User role cannot login. Only superadmin can manage users.
Role UserRole `json:"role"`
}
UserHostAccessSummary defines model for UserHostAccessSummary.
type UserHostDetails ¶ added in v0.3.0
type UserHostDetails struct {
Bypass bool `json:"bypass"`
DisplayName string `json:"display_name"`
Email openapi_types.Email `json:"email"`
Groups []UserHostDetailsGroup `json:"groups"`
Hosts []UserHostDetailsHost `json:"hosts"`
Id ID `json:"id"`
// Role The user's role. User role cannot login. Only superadmin can manage users.
Role UserRole `json:"role"`
}
UserHostDetails defines model for UserHostDetails.
type UserHostDetailsGroup ¶ added in v0.3.0
type UserHostDetailsGroup struct {
// Granted Whether this group is granted to the user.
Granted bool `json:"granted"`
Hosts []KnownHostRef `json:"hosts"`
Icon *string `json:"icon"`
Id ID `json:"id"`
Name string `json:"name"`
}
UserHostDetailsGroup defines model for UserHostDetailsGroup.
type UserHostDetailsHost ¶ added in v0.3.0
type UserHostDetailsHost struct {
// DirectlyGranted Whether this host is directly granted to the user.
DirectlyGranted bool `json:"directly_granted"`
Fqdn string `json:"fqdn"`
Icon *string `json:"icon"`
Id ID `json:"id"`
// ViaGroup First (alphabetically) granted group that covers this host, if any.
ViaGroup *GroupRef `json:"via_group"`
}
UserHostDetailsHost defines model for UserHostDetailsHost.