Documentation ¶
Index ¶
- Constants
- type AzureState
- type DependencyTrackState
- type GitHubRepository
- type GitHubRepositoryPermission
- type GitHubState
- type GoogleGarState
- type GoogleGcpEnvironmentProject
- type GoogleGcpProjectState
- type GoogleWorkspaceState
- type Input
- type MockReconciler
- type MockReconciler_Delete_Call
- func (_c *MockReconciler_Delete_Call) Return(_a0 error) *MockReconciler_Delete_Call
- func (_c *MockReconciler_Delete_Call) Run(run func(ctx context.Context, teamSlug slug.Slug, correlationID uuid.UUID)) *MockReconciler_Delete_Call
- func (_c *MockReconciler_Delete_Call) RunAndReturn(run func(context.Context, slug.Slug, uuid.UUID) error) *MockReconciler_Delete_Call
- type MockReconciler_Expecter
- func (_e *MockReconciler_Expecter) Delete(ctx interface{}, teamSlug interface{}, correlationID interface{}) *MockReconciler_Delete_Call
- func (_e *MockReconciler_Expecter) Name() *MockReconciler_Name_Call
- func (_e *MockReconciler_Expecter) Reconcile(ctx interface{}, input interface{}) *MockReconciler_Reconcile_Call
- type MockReconciler_Name_Call
- type MockReconciler_Reconcile_Call
- func (_c *MockReconciler_Reconcile_Call) Return(_a0 error) *MockReconciler_Reconcile_Call
- func (_c *MockReconciler_Reconcile_Call) Run(run func(ctx context.Context, input Input)) *MockReconciler_Reconcile_Call
- func (_c *MockReconciler_Reconcile_Call) RunAndReturn(run func(context.Context, Input) error) *MockReconciler_Reconcile_Call
- type NaisDeployKeyState
- type NaisNamespaceState
- type Reconciler
- type ReconcilerFactory
Constants ¶
const ( ManagedByLabelName = "managed-by" ManagedByLabelValue = "teams-backend" // TeamNamePrefix Prefix that can be used for team-like objects in external systems TeamNamePrefix = "nais-team-" CnrmServiceAccountAccountID = "nais-sa-cnrm" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureState ¶
type DependencyTrackState ¶
type GitHubRepository ¶
type GitHubState ¶
type GitHubState struct { Slug *slug.Slug `json:"slug"` Repositories []*GitHubRepository `json:"repositories"` }
type GoogleGarState ¶
type GoogleGarState struct {
RepositoryName *string `json:"repopsitoryName"`
}
type GoogleGcpEnvironmentProject ¶
type GoogleGcpEnvironmentProject struct {
ProjectID string `json:"projectId"` // Unique of the project, for instance `my-project-123`
}
type GoogleGcpProjectState ¶
type GoogleGcpProjectState struct {
Projects map[string]GoogleGcpEnvironmentProject `json:"projects"` // environment name is used as key
}
type GoogleWorkspaceState ¶
type GoogleWorkspaceState struct {
GroupEmail *string `json:"groupEmail"`
}
type MockReconciler ¶
MockReconciler is an autogenerated mock type for the Reconciler type
func NewMockReconciler ¶
func NewMockReconciler(t interface { mock.TestingT Cleanup(func()) }, ) *MockReconciler
NewMockReconciler creates a new instance of MockReconciler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockReconciler) Delete ¶
func (_m *MockReconciler) Delete(ctx context.Context, teamSlug slug.Slug, correlationID uuid.UUID) error
Delete provides a mock function with given fields: ctx, teamSlug, correlationID
func (*MockReconciler) EXPECT ¶
func (_m *MockReconciler) EXPECT() *MockReconciler_Expecter
func (*MockReconciler) Name ¶
func (_m *MockReconciler) Name() sqlc.ReconcilerName
Name provides a mock function with given fields:
type MockReconciler_Delete_Call ¶
MockReconciler_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockReconciler_Delete_Call) Return ¶
func (_c *MockReconciler_Delete_Call) Return(_a0 error) *MockReconciler_Delete_Call
func (*MockReconciler_Delete_Call) Run ¶
func (_c *MockReconciler_Delete_Call) Run(run func(ctx context.Context, teamSlug slug.Slug, correlationID uuid.UUID)) *MockReconciler_Delete_Call
func (*MockReconciler_Delete_Call) RunAndReturn ¶
func (_c *MockReconciler_Delete_Call) RunAndReturn(run func(context.Context, slug.Slug, uuid.UUID) error) *MockReconciler_Delete_Call
type MockReconciler_Expecter ¶
type MockReconciler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockReconciler_Expecter) Delete ¶
func (_e *MockReconciler_Expecter) Delete(ctx interface{}, teamSlug interface{}, correlationID interface{}) *MockReconciler_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- teamSlug slug.Slug
- correlationID uuid.UUID
func (*MockReconciler_Expecter) Name ¶
func (_e *MockReconciler_Expecter) Name() *MockReconciler_Name_Call
Name is a helper method to define mock.On call
func (*MockReconciler_Expecter) Reconcile ¶
func (_e *MockReconciler_Expecter) Reconcile(ctx interface{}, input interface{}) *MockReconciler_Reconcile_Call
Reconcile is a helper method to define mock.On call
- ctx context.Context
- input Input
type MockReconciler_Name_Call ¶
MockReconciler_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*MockReconciler_Name_Call) Return ¶
func (_c *MockReconciler_Name_Call) Return(_a0 sqlc.ReconcilerName) *MockReconciler_Name_Call
func (*MockReconciler_Name_Call) Run ¶
func (_c *MockReconciler_Name_Call) Run(run func()) *MockReconciler_Name_Call
func (*MockReconciler_Name_Call) RunAndReturn ¶
func (_c *MockReconciler_Name_Call) RunAndReturn(run func() sqlc.ReconcilerName) *MockReconciler_Name_Call
type MockReconciler_Reconcile_Call ¶
MockReconciler_Reconcile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reconcile'
func (*MockReconciler_Reconcile_Call) Return ¶
func (_c *MockReconciler_Reconcile_Call) Return(_a0 error) *MockReconciler_Reconcile_Call
func (*MockReconciler_Reconcile_Call) Run ¶
func (_c *MockReconciler_Reconcile_Call) Run(run func(ctx context.Context, input Input)) *MockReconciler_Reconcile_Call
func (*MockReconciler_Reconcile_Call) RunAndReturn ¶
func (_c *MockReconciler_Reconcile_Call) RunAndReturn(run func(context.Context, Input) error) *MockReconciler_Reconcile_Call