Documentation ¶
Index ¶
- type Store
- func (s *Store) CreateApplication(ctx context.Context, projectID, name, description string) (*models.Application, error)
- func (s *Store) CreateConnection(ctx context.Context, projectID, name string, protocol models.Protocol, ...) (*models.Connection, error)
- func (s *Store) CreateDevice(ctx context.Context, projectID, name, deviceRegistrationTokenID string, ...) (*models.Device, error)
- func (s *Store) CreateDeviceAccessKey(ctx context.Context, projectID, deviceID, hash string) (*models.DeviceAccessKey, error)
- func (s *Store) CreateDeviceRegistrationToken(ctx context.Context, projectID, name, description string, ...) (*models.DeviceRegistrationToken, error)
- func (s *Store) CreateExternalUser(ctx context.Context, providerName, providerID, email string, ...) (*models.ExternalUser, error)
- func (s *Store) CreateInternalUser(ctx context.Context, email, passwordHash string) (*models.InternalUser, error)
- func (s *Store) CreateMembership(ctx context.Context, userID, projectID string) (*models.Membership, error)
- func (s *Store) CreateMembershipRoleBinding(ctx context.Context, userID, roleID, projectID string) (*models.MembershipRoleBinding, error)
- func (s *Store) CreatePasswordRecoveryToken(ctx context.Context, userID, hash string) (*models.PasswordRecoveryToken, error)
- func (s *Store) CreateProject(ctx context.Context, name string) (*models.Project, error)
- func (s *Store) CreateRegistrationToken(ctx context.Context, internalUserID, hash string) (*models.RegistrationToken, error)
- func (s *Store) CreateRelease(ctx context.Context, ...) (*models.Release, error)
- func (s *Store) CreateRole(ctx context.Context, projectID, name, description, config string) (*models.Role, error)
- func (s *Store) CreateServiceAccount(ctx context.Context, projectID, name, description string) (*models.ServiceAccount, error)
- func (s *Store) CreateServiceAccountAccessKey(ctx context.Context, projectID, serviceAccountID, hash, description string) (*models.ServiceAccountAccessKey, error)
- func (s *Store) CreateServiceAccountRoleBinding(ctx context.Context, serviceAccountID, roleID, projectID string) (*models.ServiceAccountRoleBinding, error)
- func (s *Store) CreateSession(ctx context.Context, userID, hash string) (*models.Session, error)
- func (s *Store) CreateUserAccessKey(ctx context.Context, userID, hash, description string) (*models.UserAccessKey, error)
- func (s *Store) DeleteApplication(ctx context.Context, id, projectID string) error
- func (s *Store) DeleteConnection(ctx context.Context, id, projectID string) error
- func (s *Store) DeleteDevice(ctx context.Context, id, projectID string) error
- func (s *Store) DeleteDeviceApplicationStatus(ctx context.Context, projectID, deviceID, applicationID string) error
- func (s *Store) DeleteDeviceEnvironmentVariable(ctx context.Context, deviceID, projectID, key string) error
- func (s *Store) DeleteDeviceLabel(ctx context.Context, deviceID, projectID, key string) error
- func (s *Store) DeleteDeviceRegistrationToken(ctx context.Context, id, projectID string) error
- func (s *Store) DeleteDeviceRegistrationTokenEnvironmentVariable(ctx context.Context, tokenID, projectID, key string) error
- func (s *Store) DeleteDeviceRegistrationTokenLabel(ctx context.Context, deviceRegistrationTokenID, projectID, key string) error
- func (s *Store) DeleteDeviceServiceState(ctx context.Context, projectID, deviceID, applicationID, service string) error
- func (s *Store) DeleteDeviceServiceStatus(ctx context.Context, projectID, deviceID, applicationID, service string) error
- func (s *Store) DeleteMembership(ctx context.Context, userID, projectID string) error
- func (s *Store) DeleteMembershipRoleBinding(ctx context.Context, userID, roleID, projectID string) error
- func (s *Store) DeleteProject(ctx context.Context, id string) error
- func (s *Store) DeleteRole(ctx context.Context, id, projectID string) error
- func (s *Store) DeleteServiceAccount(ctx context.Context, id, projectID string) error
- func (s *Store) DeleteServiceAccountAccessKey(ctx context.Context, id, projectID string) error
- func (s *Store) DeleteServiceAccountRoleBinding(ctx context.Context, serviceAccountID, roleID, projectID string) error
- func (s *Store) DeleteSession(ctx context.Context, id string) error
- func (s *Store) DeleteUserAccessKey(ctx context.Context, id string) error
- func (s *Store) GetApplication(ctx context.Context, id, projectID string) (*models.Application, error)
- func (s *Store) GetApplicationDeviceCounts(ctx context.Context, projectID, applicationID string) (*models.ApplicationDeviceCounts, error)
- func (s *Store) GetConnection(ctx context.Context, id, projectID string) (*models.Connection, error)
- func (s *Store) GetDevice(ctx context.Context, id, projectID string) (*models.Device, error)
- func (s *Store) GetDeviceAccessKey(ctx context.Context, id, projectID string) (*models.DeviceAccessKey, error)
- func (s *Store) GetDeviceApplicationStatus(ctx context.Context, projectID, deviceID, applicationID string) (*models.DeviceApplicationStatus, error)
- func (s *Store) GetDeviceMetricsConfig(ctx context.Context, projectID string) (*models.DeviceMetricsConfig, error)
- func (s *Store) GetDeviceRegistrationToken(ctx context.Context, id, projectID string) (*models.DeviceRegistrationToken, error)
- func (s *Store) GetDeviceServiceState(ctx context.Context, projectID, deviceID, applicationID, service string) (*models.DeviceServiceState, error)
- func (s *Store) GetDeviceServiceStates(ctx context.Context, projectID, deviceID, applicationID string) ([]models.DeviceServiceState, error)
- func (s *Store) GetDeviceServiceStatus(ctx context.Context, projectID, deviceID, applicationID, service string) (*models.DeviceServiceStatus, error)
- func (s *Store) GetDeviceServiceStatuses(ctx context.Context, projectID, deviceID, applicationID string) ([]models.DeviceServiceStatus, error)
- func (s *Store) GetDevicesRegisteredWithTokenCount(ctx context.Context, tokenID, projectID string) (*models.DevicesRegisteredWithTokenCount, error)
- func (s *Store) GetExternalUser(ctx context.Context, id string) (*models.ExternalUser, error)
- func (s *Store) GetExternalUserByProviderID(ctx context.Context, providerName, providerID string) (*models.ExternalUser, error)
- func (s *Store) GetInternalUser(ctx context.Context, id string) (*models.InternalUser, error)
- func (s *Store) GetLatestRelease(ctx context.Context, projectID, applicationID string) (*models.Release, error)
- func (s *Store) GetMembership(ctx context.Context, userID, projectID string) (*models.Membership, error)
- func (s *Store) GetMembershipRoleBinding(ctx context.Context, userID, roleID, projectID string) (*models.MembershipRoleBinding, error)
- func (s *Store) GetPasswordRecoveryToken(ctx context.Context, id string) (*models.PasswordRecoveryToken, error)
- func (s *Store) GetProject(ctx context.Context, id string) (*models.Project, error)
- func (s *Store) GetProjectApplicationCounts(ctx context.Context, projectID string) (*models.ProjectApplicationCounts, error)
- func (s *Store) GetProjectDeviceCounts(ctx context.Context, projectID string) (*models.ProjectDeviceCounts, error)
- func (s *Store) GetProjectMetricsConfig(ctx context.Context, projectID string) (*models.ProjectMetricsConfig, error)
- func (s *Store) GetRegistrationToken(ctx context.Context, id string) (*models.RegistrationToken, error)
- func (s *Store) GetRelease(ctx context.Context, id, projectID, applicationID string) (*models.Release, error)
- func (s *Store) GetReleaseByNumber(ctx context.Context, number uint32, projectID, applicationID string) (*models.Release, error)
- func (s *Store) GetReleaseDeviceCounts(ctx context.Context, projectID, applicationID, releaseID string) (*models.ReleaseDeviceCounts, error)
- func (s *Store) GetRole(ctx context.Context, id, projectID string) (*models.Role, error)
- func (s *Store) GetServiceAccount(ctx context.Context, id, projectID string) (*models.ServiceAccount, error)
- func (s *Store) GetServiceAccountAccessKey(ctx context.Context, id, projectID string) (*models.ServiceAccountAccessKey, error)
- func (s *Store) GetServiceAccountRoleBinding(ctx context.Context, serviceAccountID, roleID, projectID string) (*models.ServiceAccountRoleBinding, error)
- func (s *Store) GetServiceMetricsConfigs(ctx context.Context, projectID string) ([]models.ServiceMetricsConfig, error)
- func (s *Store) GetSession(ctx context.Context, id string) (*models.Session, error)
- func (s *Store) GetUser(ctx context.Context, id string) (*models.User, error)
- func (s *Store) GetUserAccessKey(ctx context.Context, id string) (*models.UserAccessKey, error)
- func (s *Store) GetUserByExternalID(ctx context.Context, externalUserID string) (*models.User, error)
- func (s *Store) GetUserByInternalID(ctx context.Context, internalUserID string) (*models.User, error)
- func (s *Store) InitializeUser(ctx context.Context, internalUserID, externalUserID *string) (*models.User, error)
- func (s *Store) ListAllDeviceApplicationStatuses(ctx context.Context, projectID string) ([]models.DeviceApplicationStatus, error)
- func (s *Store) ListAllDeviceLabelKeys(ctx context.Context, projectID string) ([]string, error)
- func (s *Store) ListAllDeviceServiceStates(ctx context.Context, projectID string) ([]models.DeviceServiceState, error)
- func (s *Store) ListApplicationServiceStateCounts(ctx context.Context, projectID, applicationID string) ([]models.ServiceStateCount, error)
- func (s *Store) ListApplications(ctx context.Context, projectID string) ([]models.Application, error)
- func (s *Store) ListConnections(ctx context.Context, projectID string) ([]models.Connection, error)
- func (s *Store) ListDeviceApplicationStatuses(ctx context.Context, projectID, deviceID string) ([]models.DeviceApplicationStatus, error)
- func (s *Store) ListDeviceRegistrationTokens(ctx context.Context, projectID string) ([]models.DeviceRegistrationToken, error)
- func (s *Store) ListDeviceServiceStates(ctx context.Context, projectID, deviceID string) ([]models.DeviceServiceState, error)
- func (s *Store) ListDeviceServiceStatuses(ctx context.Context, projectID, deviceID string) ([]models.DeviceServiceStatus, error)
- func (s *Store) ListDevices(ctx context.Context, projectID, searchQuery string) ([]models.Device, error)
- func (s *Store) ListMembershipRoleBindings(ctx context.Context, userID, projectID string) ([]models.MembershipRoleBinding, error)
- func (s *Store) ListMembershipsByProject(ctx context.Context, projectID string) ([]models.Membership, error)
- func (s *Store) ListMembershipsByUser(ctx context.Context, userID string) ([]models.Membership, error)
- func (s *Store) ListProjects(ctx context.Context) ([]models.Project, error)
- func (s *Store) ListReleases(ctx context.Context, projectID, applicationID string) ([]models.Release, error)
- func (s *Store) ListRoles(ctx context.Context, projectID string) ([]models.Role, error)
- func (s *Store) ListServiceAccountAccessKeys(ctx context.Context, projectID, serviceAccountID string) ([]models.ServiceAccountAccessKey, error)
- func (s *Store) ListServiceAccountRoleBindings(ctx context.Context, serviceAccountID, projectID string) ([]models.ServiceAccountRoleBinding, error)
- func (s *Store) ListServiceAccounts(ctx context.Context, projectID string) ([]models.ServiceAccount, error)
- func (s *Store) ListUserAccessKeys(ctx context.Context, projectID string) ([]models.UserAccessKey, error)
- func (s *Store) LookupApplication(ctx context.Context, name, projectID string) (*models.Application, error)
- func (s *Store) LookupConnection(ctx context.Context, name, projectID string) (*models.Connection, error)
- func (s *Store) LookupDevice(ctx context.Context, name, projectID string) (*models.Device, error)
- func (s *Store) LookupDeviceRegistrationToken(ctx context.Context, name, projectID string) (*models.DeviceRegistrationToken, error)
- func (s *Store) LookupInternalUser(ctx context.Context, email string) (*models.InternalUser, error)
- func (s *Store) LookupProject(ctx context.Context, name string) (*models.Project, error)
- func (s *Store) LookupRole(ctx context.Context, name, projectID string) (*models.Role, error)
- func (s *Store) LookupServiceAccount(ctx context.Context, name, projectID string) (*models.ServiceAccount, error)
- func (s *Store) SetDeviceApplicationStatus(ctx context.Context, ...) error
- func (s *Store) SetDeviceEnvironmentVariable(ctx context.Context, deviceID, projectID, key, value string) (*string, error)
- func (s *Store) SetDeviceInfo(ctx context.Context, id, projectID string, deviceInfo models.DeviceInfo) (*models.Device, error)
- func (s *Store) SetDeviceLabel(ctx context.Context, deviceID, projectID, key, value string) (*string, error)
- func (s *Store) SetDeviceMetricsConfig(ctx context.Context, projectID string, value models.DeviceMetricsConfig) error
- func (s *Store) SetDeviceRegistrationTokenEnvironmentVariable(ctx context.Context, tokenID, projectID, key, value string) (*string, error)
- func (s *Store) SetDeviceRegistrationTokenLabel(ctx context.Context, deviceRegistrationTokenID, projectID, key, value string) (*string, error)
- func (s *Store) SetDeviceServiceState(ctx context.Context, projectID, deviceID, applicationID, service string, ...) error
- func (s *Store) SetDeviceServiceStatus(ctx context.Context, ...) error
- func (s *Store) SetProjectMetricsConfig(ctx context.Context, projectID string, value models.ProjectMetricsConfig) error
- func (s *Store) SetServiceMetricsConfigs(ctx context.Context, projectID string, value []models.ServiceMetricsConfig) error
- func (s *Store) UpdateApplicationDescription(ctx context.Context, id, projectID, description string) (*models.Application, error)
- func (s *Store) UpdateApplicationMetricEndpointConfigs(ctx context.Context, id, projectID string, ...) (*models.Application, error)
- func (s *Store) UpdateApplicationName(ctx context.Context, id, projectID, name string) (*models.Application, error)
- func (s *Store) UpdateApplicationSchedulingRule(ctx context.Context, id, projectID string, ...) (*models.Application, error)
- func (s *Store) UpdateConnection(ctx context.Context, id, projectID, name string, protocol models.Protocol, ...) (*models.Connection, error)
- func (s *Store) UpdateDeviceLastSeenAt(ctx context.Context, projectID, deviceID string) error
- func (s *Store) UpdateDeviceName(ctx context.Context, id, projectID, name string) (*models.Device, error)
- func (s *Store) UpdateDeviceRegistrationToken(ctx context.Context, id, projectID, name, description string, ...) (*models.DeviceRegistrationToken, error)
- func (s *Store) UpdateInternalUserPasswordHash(ctx context.Context, id, passwordHash string) (*models.InternalUser, error)
- func (s *Store) UpdateProject(ctx context.Context, id, name, datadogApiKey string) (*models.Project, error)
- func (s *Store) UpdateRole(ctx context.Context, id, projectID, name, description, config string) (*models.Role, error)
- func (s *Store) UpdateServiceAccount(ctx context.Context, id, projectID, name, description string) (*models.ServiceAccount, error)
- func (s *Store) UpdateUserName(ctx context.Context, id, name string) (*models.User, error)
- func (s *Store) ValidateDeviceAccessKey(ctx context.Context, projectID, hash string) (*models.DeviceAccessKey, error)
- func (s *Store) ValidateInternalUser(ctx context.Context, id, passwordHash string) (*models.InternalUser, error)
- func (s *Store) ValidateInternalUserWithEmail(ctx context.Context, email, passwordHash string) (*models.InternalUser, error)
- func (s *Store) ValidatePasswordRecoveryToken(ctx context.Context, hash string) (*models.PasswordRecoveryToken, error)
- func (s *Store) ValidateRegistrationToken(ctx context.Context, hash string) (*models.RegistrationToken, error)
- func (s *Store) ValidateServiceAccountAccessKey(ctx context.Context, hash string) (*models.ServiceAccountAccessKey, error)
- func (s *Store) ValidateSession(ctx context.Context, hash string) (*models.Session, error)
- func (s *Store) ValidateUserAccessKey(ctx context.Context, hash string) (*models.UserAccessKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateApplication ¶
func (*Store) CreateConnection ¶
func (*Store) CreateDevice ¶
func (*Store) CreateDeviceAccessKey ¶
func (*Store) CreateDeviceRegistrationToken ¶
func (*Store) CreateExternalUser ¶
func (*Store) CreateInternalUser ¶
func (*Store) CreateMembership ¶
func (*Store) CreateMembershipRoleBinding ¶
func (*Store) CreatePasswordRecoveryToken ¶
func (*Store) CreateProject ¶
func (*Store) CreateRegistrationToken ¶
func (*Store) CreateRelease ¶
func (*Store) CreateRole ¶
func (*Store) CreateServiceAccount ¶
func (*Store) CreateServiceAccountAccessKey ¶
func (*Store) CreateServiceAccountRoleBinding ¶
func (*Store) CreateSession ¶
func (*Store) CreateUserAccessKey ¶
func (*Store) DeleteApplication ¶
func (*Store) DeleteConnection ¶
func (*Store) DeleteDevice ¶
func (*Store) DeleteDeviceApplicationStatus ¶
func (*Store) DeleteDeviceEnvironmentVariable ¶
func (*Store) DeleteDeviceLabel ¶
func (*Store) DeleteDeviceRegistrationToken ¶
func (*Store) DeleteDeviceRegistrationTokenEnvironmentVariable ¶
func (*Store) DeleteDeviceRegistrationTokenLabel ¶
func (*Store) DeleteDeviceServiceState ¶
func (*Store) DeleteDeviceServiceStatus ¶
func (*Store) DeleteMembership ¶
func (*Store) DeleteMembershipRoleBinding ¶
func (*Store) DeleteRole ¶
func (*Store) DeleteServiceAccount ¶
func (*Store) DeleteServiceAccountAccessKey ¶
func (*Store) DeleteServiceAccountRoleBinding ¶
func (*Store) DeleteUserAccessKey ¶
func (*Store) GetApplication ¶
func (*Store) GetApplicationDeviceCounts ¶
func (*Store) GetConnection ¶
func (*Store) GetDeviceAccessKey ¶
func (*Store) GetDeviceApplicationStatus ¶
func (*Store) GetDeviceMetricsConfig ¶
func (*Store) GetDeviceRegistrationToken ¶
func (*Store) GetDeviceServiceState ¶
func (*Store) GetDeviceServiceStates ¶
func (*Store) GetDeviceServiceStatus ¶
func (*Store) GetDeviceServiceStatuses ¶
func (*Store) GetDevicesRegisteredWithTokenCount ¶
func (*Store) GetExternalUser ¶
func (*Store) GetExternalUserByProviderID ¶
func (*Store) GetInternalUser ¶
func (*Store) GetLatestRelease ¶
func (*Store) GetMembership ¶
func (*Store) GetMembershipRoleBinding ¶
func (*Store) GetPasswordRecoveryToken ¶
func (*Store) GetProject ¶
func (*Store) GetProjectApplicationCounts ¶
func (*Store) GetProjectDeviceCounts ¶
func (*Store) GetProjectMetricsConfig ¶
func (*Store) GetRegistrationToken ¶
func (*Store) GetRelease ¶
func (*Store) GetReleaseByNumber ¶
func (*Store) GetReleaseDeviceCounts ¶
func (*Store) GetServiceAccount ¶
func (*Store) GetServiceAccountAccessKey ¶
func (*Store) GetServiceAccountRoleBinding ¶
func (*Store) GetServiceMetricsConfigs ¶
func (*Store) GetSession ¶
func (*Store) GetUserAccessKey ¶
func (*Store) GetUserByExternalID ¶
func (*Store) GetUserByInternalID ¶
func (*Store) InitializeUser ¶
func (*Store) ListAllDeviceApplicationStatuses ¶
func (*Store) ListAllDeviceLabelKeys ¶
func (*Store) ListAllDeviceServiceStates ¶
func (*Store) ListApplicationServiceStateCounts ¶
func (*Store) ListApplications ¶
func (*Store) ListConnections ¶
func (*Store) ListDeviceApplicationStatuses ¶
func (*Store) ListDeviceRegistrationTokens ¶
func (*Store) ListDeviceServiceStates ¶
func (*Store) ListDeviceServiceStatuses ¶
func (*Store) ListDevices ¶
func (*Store) ListMembershipRoleBindings ¶
func (*Store) ListMembershipsByProject ¶
func (*Store) ListMembershipsByUser ¶
func (*Store) ListProjects ¶
func (*Store) ListReleases ¶
func (*Store) ListServiceAccountAccessKeys ¶
func (*Store) ListServiceAccountRoleBindings ¶
func (*Store) ListServiceAccounts ¶
func (*Store) ListUserAccessKeys ¶
func (*Store) LookupApplication ¶
func (*Store) LookupConnection ¶
func (*Store) LookupDevice ¶
func (*Store) LookupDeviceRegistrationToken ¶
func (*Store) LookupInternalUser ¶
func (*Store) LookupProject ¶
func (*Store) LookupRole ¶
func (*Store) LookupServiceAccount ¶
func (*Store) SetDeviceApplicationStatus ¶
func (*Store) SetDeviceEnvironmentVariable ¶
func (*Store) SetDeviceInfo ¶
func (*Store) SetDeviceLabel ¶
func (*Store) SetDeviceMetricsConfig ¶
func (*Store) SetDeviceRegistrationTokenEnvironmentVariable ¶
func (*Store) SetDeviceRegistrationTokenLabel ¶
func (*Store) SetDeviceServiceState ¶
func (*Store) SetDeviceServiceStatus ¶
func (*Store) SetProjectMetricsConfig ¶
func (*Store) SetServiceMetricsConfigs ¶
func (*Store) UpdateApplicationDescription ¶
func (*Store) UpdateApplicationMetricEndpointConfigs ¶
func (s *Store) UpdateApplicationMetricEndpointConfigs(ctx context.Context, id, projectID string, metricEndpointConfigs map[string]models.MetricEndpointConfig) (*models.Application, error)
func (*Store) UpdateApplicationName ¶
func (*Store) UpdateApplicationSchedulingRule ¶
func (s *Store) UpdateApplicationSchedulingRule(ctx context.Context, id, projectID string, schedulingRule models.SchedulingRule) (*models.Application, error)
func (*Store) UpdateConnection ¶
func (*Store) UpdateDeviceLastSeenAt ¶
func (*Store) UpdateDeviceName ¶
func (*Store) UpdateDeviceRegistrationToken ¶
func (*Store) UpdateInternalUserPasswordHash ¶
func (*Store) UpdateProject ¶
func (*Store) UpdateRole ¶
func (*Store) UpdateServiceAccount ¶
func (*Store) UpdateUserName ¶
func (*Store) ValidateDeviceAccessKey ¶
func (*Store) ValidateInternalUser ¶
func (*Store) ValidateInternalUserWithEmail ¶
func (*Store) ValidatePasswordRecoveryToken ¶
func (*Store) ValidateRegistrationToken ¶
func (*Store) ValidateServiceAccountAccessKey ¶
func (*Store) ValidateSession ¶
func (*Store) ValidateUserAccessKey ¶
Click to show internal directories.
Click to hide internal directories.