Documentation ¶
Index ¶
- type MockHTTPClient
- type MockOmadaApi
- func (oa *MockOmadaApi) CreateTimeRange(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*OmadaResponse, error)
- func (oa *MockOmadaApi) CreateUrlFilter(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*OmadaResponse, error)
- func (oa *MockOmadaApi) DeleteUrlFilter(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*OmadaResponse, error)
- func (oa *MockOmadaApi) GetControllerId() (*OmadaResponse, error)
- func (oa *MockOmadaApi) GetSites(omadaControllerId *string, cookies []*http.Cookie, loginToken *string) (*OmadaResponse, error)
- func (oa *MockOmadaApi) GetSsids(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*OmadaResponse, error)
- func (oa *MockOmadaApi) GetTimeRanges(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*OmadaResponse, error)
- func (oa *MockOmadaApi) GetWlans(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*OmadaResponse, error)
- func (oa *MockOmadaApi) Login(omadaControllerId *string) (*OmadaResponse, []*http.Cookie, error)
- func (oa *MockOmadaApi) QueryUrlFilters(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*OmadaResponse, error)
- func (oa *MockOmadaApi) UpdateSsid(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*OmadaResponse, error)
- func (oa *MockOmadaApi) UpdateUrlFilter(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*OmadaResponse, error)
- type MockUrlFilterController
- func (ufc MockUrlFilterController) MaybeUpdateUrlFilters(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*[]UrlFilter, *bool, error)
- func (ufc MockUrlFilterController) QueryUrlFilters(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, ...) (*[]UrlFilter, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockHTTPClient ¶
type MockOmadaApi ¶
type MockOmadaApi struct { MockGetControllerId func() (*OmadaResponse, error) MockLogin func(omadaControllerId *string) (*OmadaResponse, []*http.Cookie, error) MockGetSites func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string) (*OmadaResponse, error) MockGetWlans func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string) (*OmadaResponse, error) MockGetSsids func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string, wlanId *string) (*OmadaResponse, error) MockUpdateSsid func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string, wlanId *string, ssidUpdateData *Data) (*OmadaResponse, error) MockGetTimeRanges func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string) (*OmadaResponse, error) MockCreateTimeRange func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string, trData *Data) (*OmadaResponse, error) MockQueryUrlFilters func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string) (*OmadaResponse, error) MockCreateUrlFilter func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string, urlFilterData *Data) (*OmadaResponse, error) MockUpdateUrlFilter func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string, urlFilterData *Data) (*OmadaResponse, error) MockDeleteUrlFilter func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string, urlFilterId *string) (*OmadaResponse, error) }
func (*MockOmadaApi) CreateTimeRange ¶
func (*MockOmadaApi) CreateUrlFilter ¶
func (*MockOmadaApi) DeleteUrlFilter ¶
func (*MockOmadaApi) GetControllerId ¶
func (oa *MockOmadaApi) GetControllerId() (*OmadaResponse, error)
func (*MockOmadaApi) GetTimeRanges ¶
func (*MockOmadaApi) Login ¶
func (oa *MockOmadaApi) Login(omadaControllerId *string) (*OmadaResponse, []*http.Cookie, error)
func (*MockOmadaApi) QueryUrlFilters ¶
func (*MockOmadaApi) UpdateSsid ¶
func (*MockOmadaApi) UpdateUrlFilter ¶
type MockUrlFilterController ¶
type MockUrlFilterController struct { MockQueryUrlFilters func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string, ssidData *Data) (*[]UrlFilter, error) MockMaybeUpdateUrlFilters func(omadaControllerId *string, cookies []*http.Cookie, loginToken *string, siteId *string, ssidData *Data, requestedFilters *[]UrlFilter) (*[]UrlFilter, *bool, error) }
func NewMockUrlFilterController ¶
func NewMockUrlFilterController(queryError bool, updateUpstreamError bool) MockUrlFilterController
func (MockUrlFilterController) MaybeUpdateUrlFilters ¶
func (MockUrlFilterController) QueryUrlFilters ¶
Click to show internal directories.
Click to hide internal directories.