Documentation ¶
Index ¶
- Variables
- type CIRARepo
- func (r *CIRARepo) Delete(_ context.Context, configName, tenantID string) (bool, error)
- func (r *CIRARepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.CIRAConfig, error)
- func (r *CIRARepo) GetByName(_ context.Context, configName, tenantID string) (*entity.CIRAConfig, error)
- func (r *CIRARepo) GetCount(_ context.Context, tenantID string) (int, error)
- func (r *CIRARepo) Insert(_ context.Context, p *entity.CIRAConfig) (string, error)
- func (r *CIRARepo) Update(_ context.Context, p *entity.CIRAConfig) (bool, error)
- type DatabaseError
- type DeviceRepo
- func (r *DeviceRepo) Delete(_ context.Context, guid, tenantID string) (bool, error)
- func (r *DeviceRepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.Device, error)
- func (r *DeviceRepo) GetByColumn(_ context.Context, columnName, queryValue, tenantID string) ([]entity.Device, error)
- func (r *DeviceRepo) GetByID(_ context.Context, guid, tenantID string) (*entity.Device, error)
- func (r *DeviceRepo) GetByTags(_ context.Context, tags []string, method string, limit, offset int, ...) ([]entity.Device, error)
- func (r *DeviceRepo) GetCount(_ context.Context, tenantID string) (int, error)
- func (r *DeviceRepo) GetDistinctTags(_ context.Context, tenantID string) ([]string, error)
- func (r *DeviceRepo) Insert(_ context.Context, d *entity.Device) (string, error)
- func (r *DeviceRepo) Update(_ context.Context, d *entity.Device) (bool, error)
- type DomainRepo
- func (r *DomainRepo) Delete(_ context.Context, domainName, tenantID string) (bool, error)
- func (r *DomainRepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.Domain, error)
- func (r *DomainRepo) GetByName(_ context.Context, domainName, tenantID string) (*entity.Domain, error)
- func (r *DomainRepo) GetCount(_ context.Context, tenantID string) (int, error)
- func (r *DomainRepo) GetDomainByDomainSuffix(_ context.Context, domainSuffix, tenantID string) (*entity.Domain, error)
- func (r *DomainRepo) Insert(_ context.Context, d *entity.Domain) (string, error)
- func (r *DomainRepo) Update(_ context.Context, d *entity.Domain) (bool, error)
- type ForeignKeyViolationError
- type IEEE8021xRepo
- func (r *IEEE8021xRepo) CheckProfileExists(_ context.Context, profileName, tenantID string) (bool, error)
- func (r *IEEE8021xRepo) Delete(_ context.Context, profileName, tenantID string) (bool, error)
- func (r *IEEE8021xRepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.IEEE8021xConfig, error)
- func (r *IEEE8021xRepo) GetByName(_ context.Context, profileName, tenantID string) (*entity.IEEE8021xConfig, error)
- func (r *IEEE8021xRepo) GetCount(_ context.Context, tenantID string) (int, error)
- func (r *IEEE8021xRepo) Insert(_ context.Context, p *entity.IEEE8021xConfig) (string, error)
- func (r *IEEE8021xRepo) Update(_ context.Context, p *entity.IEEE8021xConfig) (bool, error)
- type NotFoundError
- type NotUniqueError
- type ProfileRepo
- func (r *ProfileRepo) Delete(_ context.Context, profileName, tenantID string) (bool, error)
- func (r *ProfileRepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.Profile, error)
- func (r *ProfileRepo) GetByName(_ context.Context, profileName, tenantID string) (*entity.Profile, error)
- func (r *ProfileRepo) GetCount(_ context.Context, tenantID string) (int, error)
- func (r *ProfileRepo) Insert(_ context.Context, p *entity.Profile) (string, error)
- func (r *ProfileRepo) Update(_ context.Context, p *entity.Profile) (bool, error)
- type ProfileWiFiConfigsRepo
- func (r *ProfileWiFiConfigsRepo) DeleteByProfileName(_ context.Context, profileName, tenantID string) (bool, error)
- func (r *ProfileWiFiConfigsRepo) GetByProfileName(_ context.Context, profileName, tenantID string) ([]entity.ProfileWiFiConfigs, error)
- func (r *ProfileWiFiConfigsRepo) Insert(_ context.Context, p *entity.ProfileWiFiConfigs) (string, error)
- type WirelessRepo
- func (r *WirelessRepo) CheckProfileExists(_ context.Context, profileName, tenantID string) (bool, error)
- func (r *WirelessRepo) Delete(_ context.Context, profileName, tenantID string) (bool, error)
- func (r *WirelessRepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.WirelessConfig, error)
- func (r *WirelessRepo) GetByName(_ context.Context, profileName, tenantID string) (*entity.WirelessConfig, error)
- func (r *WirelessRepo) GetCount(_ context.Context, tenantID string) (int, error)
- func (r *WirelessRepo) Insert(_ context.Context, p *entity.WirelessConfig) (string, error)
- func (r *WirelessRepo) Update(_ context.Context, p *entity.WirelessConfig) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCIRARepo = consoleerrors.CreateConsoleError("CIRARepo") ErrCIRARepoDatabase = DatabaseError{Console: consoleerrors.CreateConsoleError("CIRARepo")} ErrCIRARepoNotUnique = NotUniqueError{Console: consoleerrors.CreateConsoleError("CIRARepo")} )
View Source
var ( ErrDeviceDatabase = DatabaseError{Console: consoleerrors.CreateConsoleError("DeviceRepo")} ErrDeviceNotUnique = NotUniqueError{Console: consoleerrors.CreateConsoleError("DeviceRepo")} )
View Source
var ( ErrDomainDatabase = DatabaseError{Console: consoleerrors.CreateConsoleError("DomainRepo")} ErrDomainNotUnique = NotUniqueError{Console: consoleerrors.CreateConsoleError("DomainRepo")} )
View Source
var ( ErrIEEE8021xDatabase = DatabaseError{Console: consoleerrors.CreateConsoleError("IEEE8021xRepo")} ErrIEEE8021xNotUnique = NotUniqueError{Console: consoleerrors.CreateConsoleError("IEEE8021xRepo")} )
View Source
var ( ErrProfileDatabase = DatabaseError{Console: consoleerrors.CreateConsoleError("ProfileRepo")} ErrProfileNotUnique = NotUniqueError{Console: consoleerrors.CreateConsoleError("ProfileRepo")} )
View Source
var ( ErrProfileWiFiConfigsDatabase = DatabaseError{Console: consoleerrors.CreateConsoleError("ProfileWiFiConfigsRepo")} ErrProfileWiFiConfigsNotUnique = NotUniqueError{Console: consoleerrors.CreateConsoleError("ProfileWiFiConfigsRepo")} ErrProfileWiFiConfigsForeignKeyViolation = ForeignKeyViolationError{Console: consoleerrors.CreateConsoleError("ProfileWiFiConfigsRepo")} )
View Source
var ( ErrWiFiDatabase = DatabaseError{Console: consoleerrors.CreateConsoleError("WirelessRepo")} ErrWiFiNotUnique = NotUniqueError{Console: consoleerrors.CreateConsoleError("WirelessRepo")} ErrWiFiIEEEForeignKeyViolation = ForeignKeyViolationError{Console: consoleerrors.CreateConsoleError("WirelessRepo")} )
Functions ¶
This section is empty.
Types ¶
type CIRARepo ¶
CIRARepo -.
func (*CIRARepo) Get ¶
func (r *CIRARepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.CIRAConfig, error)
Get -.
func (*CIRARepo) GetByName ¶
func (r *CIRARepo) GetByName(_ context.Context, configName, tenantID string) (*entity.CIRAConfig, error)
GetByName -.
type DatabaseError ¶
type DatabaseError struct {
Console consoleerrors.InternalError
}
func (DatabaseError) Error ¶
func (e DatabaseError) Error() string
type DeviceRepo ¶
DeviceRepo -.
func (*DeviceRepo) Get ¶
func (r *DeviceRepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.Device, error)
Get -.
func (*DeviceRepo) GetByColumn ¶
func (*DeviceRepo) GetDistinctTags ¶
type DomainRepo ¶
DomainRepo -.
func (*DomainRepo) Get ¶
func (r *DomainRepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.Domain, error)
Get -.
func (*DomainRepo) GetByName ¶
func (r *DomainRepo) GetByName(_ context.Context, domainName, tenantID string) (*entity.Domain, error)
GetByName -.
func (*DomainRepo) GetDomainByDomainSuffix ¶
func (r *DomainRepo) GetDomainByDomainSuffix(_ context.Context, domainSuffix, tenantID string) (*entity.Domain, error)
GetDomainByDomainSuffix -.
type ForeignKeyViolationError ¶
type ForeignKeyViolationError struct {
Console consoleerrors.InternalError
}
func (ForeignKeyViolationError) Error ¶
func (e ForeignKeyViolationError) Error() string
func (ForeignKeyViolationError) Wrap ¶
func (e ForeignKeyViolationError) Wrap(details string) error
type IEEE8021xRepo ¶
IEEE8021xRepo -.
func NewIEEE8021xRepo ¶
func NewIEEE8021xRepo(database *db.SQL, log logger.Interface) *IEEE8021xRepo
New -.
func (*IEEE8021xRepo) CheckProfileExists ¶
func (r *IEEE8021xRepo) CheckProfileExists(_ context.Context, profileName, tenantID string) (bool, error)
CheckProfileExits -.
func (*IEEE8021xRepo) Get ¶
func (r *IEEE8021xRepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.IEEE8021xConfig, error)
Get -.
func (*IEEE8021xRepo) GetByName ¶
func (r *IEEE8021xRepo) GetByName(_ context.Context, profileName, tenantID string) (*entity.IEEE8021xConfig, error)
GetByName -.
func (*IEEE8021xRepo) Insert ¶
func (r *IEEE8021xRepo) Insert(_ context.Context, p *entity.IEEE8021xConfig) (string, error)
Insert -.
func (*IEEE8021xRepo) Update ¶
func (r *IEEE8021xRepo) Update(_ context.Context, p *entity.IEEE8021xConfig) (bool, error)
Update -.
type NotFoundError ¶
type NotFoundError struct {
Console consoleerrors.InternalError
}
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type NotUniqueError ¶
type NotUniqueError struct {
Console consoleerrors.InternalError
}
func (NotUniqueError) Error ¶
func (e NotUniqueError) Error() string
func (NotUniqueError) Wrap ¶
func (e NotUniqueError) Wrap(details string) error
type ProfileRepo ¶
func NewProfileRepo ¶
func NewProfileRepo(database *db.SQL, log logger.Interface) *ProfileRepo
type ProfileWiFiConfigsRepo ¶
func NewProfileWiFiConfigsRepo ¶
func NewProfileWiFiConfigsRepo(database *db.SQL, log logger.Interface) *ProfileWiFiConfigsRepo
func (*ProfileWiFiConfigsRepo) DeleteByProfileName ¶
func (r *ProfileWiFiConfigsRepo) DeleteByProfileName(_ context.Context, profileName, tenantID string) (bool, error)
Delete -.
func (*ProfileWiFiConfigsRepo) GetByProfileName ¶
func (r *ProfileWiFiConfigsRepo) GetByProfileName(_ context.Context, profileName, tenantID string) ([]entity.ProfileWiFiConfigs, error)
Get by profile name -.
func (*ProfileWiFiConfigsRepo) Insert ¶
func (r *ProfileWiFiConfigsRepo) Insert(_ context.Context, p *entity.ProfileWiFiConfigs) (string, error)
Insert -.
type WirelessRepo ¶
WirelessRepo -.
func NewWirelessRepo ¶
func NewWirelessRepo(database *db.SQL, log logger.Interface) *WirelessRepo
New -.
func (*WirelessRepo) CheckProfileExists ¶
func (r *WirelessRepo) CheckProfileExists(_ context.Context, profileName, tenantID string) (bool, error)
CheckProfileExits -.
func (*WirelessRepo) Get ¶
func (r *WirelessRepo) Get(_ context.Context, top, skip int, tenantID string) ([]entity.WirelessConfig, error)
Get -.
func (*WirelessRepo) GetByName ¶
func (r *WirelessRepo) GetByName(_ context.Context, profileName, tenantID string) (*entity.WirelessConfig, error)
GetByName -.
func (*WirelessRepo) Insert ¶
func (r *WirelessRepo) Insert(_ context.Context, p *entity.WirelessConfig) (string, error)
Insert -.
func (*WirelessRepo) Update ¶
func (r *WirelessRepo) Update(_ context.Context, p *entity.WirelessConfig) (bool, error)
Update -.
Click to show internal directories.
Click to hide internal directories.