Documentation
¶
Index ¶
- Constants
- type FakeEvent
- type FakeEventRecorder
- type TestUtils
- func (t *TestUtils) Cleanup(ctx context.Context)
- func (t *TestUtils) CreateGrafanaInstanceAndSecret(ctx context.Context)
- func (t *TestUtils) CreateGrafanaOrg(ctx context.Context) *v1beta1.GrafanaOrg
- func (t *TestUtils) CreateGrafanaOrgDashboard(ctx context.Context) *v1beta1.GrafanaOrgDashboard
- func (t *TestUtils) CreateGrafanaOrgDatasource(ctx context.Context) *v1beta1.GrafanaOrgDatasource
- func (t *TestUtils) CreateOrg() int64
- func (t *TestUtils) DeleteGrafanaInstanceAndSecret(ctx context.Context)
- func (t *TestUtils) DeleteGrafanaOrg(ctx context.Context)
- func (t *TestUtils) DeleteGrafanaOrgDashboard(ctx context.Context)
- func (t *TestUtils) DeleteGrafanaOrgDatasource(ctx context.Context)
- func (t *TestUtils) DeleteOrg()
- func (t *TestUtils) ExpectOrgs(expectedOrgs []string)
- func (t *TestUtils) GetOrg() *models.OrgDetailsDTO
- func (t *TestUtils) SetGrafanaOrgReconciled(ctx context.Context, grafanaOrg *v1beta1.GrafanaOrg, orgID int64)
Constants ¶
View Source
const MainOrgName = "Main Org."
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeEventRecorder ¶ added in v1.2.0
type FakeEventRecorder struct {
Events []FakeEvent
}
func (*FakeEventRecorder) AnnotatedEventf ¶ added in v1.2.0
type TestUtils ¶
type TestUtils struct { URL string User string Password string GrafanaClient *grafanaclient.GrafanaHTTPAPI Namespace string GrafanaInstanceName v1beta1.ObjectNamespacedName ClientID string SecretName string EnvSecretName string GrafanaOrgName v1beta1.ObjectName OrgName string GrafanaOrgDatasourceName v1beta1.ObjectName GrafanaOrgDashboardName v1beta1.ObjectName // contains filtered or unexported fields }
func (*TestUtils) CreateGrafanaInstanceAndSecret ¶
func (*TestUtils) CreateGrafanaOrg ¶
func (t *TestUtils) CreateGrafanaOrg(ctx context.Context) *v1beta1.GrafanaOrg
func (*TestUtils) CreateGrafanaOrgDashboard ¶ added in v1.2.0
func (t *TestUtils) CreateGrafanaOrgDashboard(ctx context.Context) *v1beta1.GrafanaOrgDashboard
func (*TestUtils) CreateGrafanaOrgDatasource ¶
func (t *TestUtils) CreateGrafanaOrgDatasource(ctx context.Context) *v1beta1.GrafanaOrgDatasource
func (*TestUtils) DeleteGrafanaInstanceAndSecret ¶
func (*TestUtils) DeleteGrafanaOrg ¶
func (*TestUtils) DeleteGrafanaOrgDashboard ¶ added in v1.2.0
func (*TestUtils) DeleteGrafanaOrgDatasource ¶
func (*TestUtils) ExpectOrgs ¶
func (*TestUtils) GetOrg ¶
func (t *TestUtils) GetOrg() *models.OrgDetailsDTO
func (*TestUtils) SetGrafanaOrgReconciled ¶
Click to show internal directories.
Click to hide internal directories.