Documentation
¶
Index ¶
- Constants
- func NewLoaderContext(ctx context.Context, dbConn *pgxpool.Pool) context.Context
- type ConfigureReconcilerInput
- type DisableReconcilerInput
- type EnableReconcilerInput
- type Reconciler
- func Configure(ctx context.Context, name string, config []*ReconcilerConfigInput) (*Reconciler, error)
- func Disable(ctx context.Context, name string) (*Reconciler, error)
- func Enable(ctx context.Context, name string) (*Reconciler, error)
- func Get(ctx context.Context, name string) (*Reconciler, error)
- func GetByIdent(ctx context.Context, ident ident.Ident) (*Reconciler, error)
- type ReconcilerConfig
- type ReconcilerConfigInput
- type ReconcilerConfiguredActivityLogEntry
- type ReconcilerConfiguredActivityLogEntryData
- type ReconcilerConnection
- type ReconcilerDisabledActivityLogEntry
- type ReconcilerEdge
- type ReconcilerEnabledActivityLogEntry
- type ReconcilerError
- type ReconcilerErrorConnection
- type ReconcilerErrorEdge
Constants ¶
View Source
const (
ActivityLogEntryResourceTypeReconciler activitylog.ActivityLogEntryResourceType = "RECONCILER"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigureReconcilerInput ¶
type ConfigureReconcilerInput struct { Name string `json:"name"` Config []*ReconcilerConfigInput `json:"config"` }
type DisableReconcilerInput ¶
type DisableReconcilerInput struct {
Name string `json:"name"`
}
type EnableReconcilerInput ¶
type EnableReconcilerInput struct {
Name string `json:"name"`
}
type Reconciler ¶
type Reconciler struct { Name string `json:"name"` DisplayName string `json:"displayName"` Description string `json:"description"` Enabled bool `json:"enabled"` }
func Configure ¶
func Configure(ctx context.Context, name string, config []*ReconcilerConfigInput) (*Reconciler, error)
func GetByIdent ¶
func (Reconciler) ID ¶
func (r Reconciler) ID() ident.Ident
func (Reconciler) IsNode ¶
func (Reconciler) IsNode()
type ReconcilerConfig ¶
type ReconcilerConfigInput ¶
type ReconcilerConfiguredActivityLogEntry ¶
type ReconcilerConfiguredActivityLogEntry struct { activitylog.GenericActivityLogEntry Data *ReconcilerConfiguredActivityLogEntryData `json:"data"` }
type ReconcilerConfiguredActivityLogEntryData ¶
type ReconcilerConfiguredActivityLogEntryData struct {
UpdatedKeys []string `json:"updatedKeys"`
}
type ReconcilerConnection ¶
type ReconcilerConnection = pagination.Connection[*Reconciler]
func List ¶
func List(ctx context.Context, page *pagination.Pagination) (*ReconcilerConnection, error)
type ReconcilerDisabledActivityLogEntry ¶
type ReconcilerDisabledActivityLogEntry struct {
activitylog.GenericActivityLogEntry
}
type ReconcilerEdge ¶
type ReconcilerEdge = pagination.Edge[*Reconciler]
type ReconcilerEnabledActivityLogEntry ¶
type ReconcilerEnabledActivityLogEntry struct {
activitylog.GenericActivityLogEntry
}
type ReconcilerError ¶
type ReconcilerError struct { CorrelationID string `json:"correlationID"` CreatedAt time.Time `json:"createdAt"` Message string `json:"message"` TeamSlug slug.Slug `json:"-"` UUID uuid.UUID `json:"-"` }
func (*ReconcilerError) ID ¶
func (e *ReconcilerError) ID() ident.Ident
func (ReconcilerError) IsNode ¶
func (ReconcilerError) IsNode()
type ReconcilerErrorConnection ¶
type ReconcilerErrorConnection = pagination.Connection[*ReconcilerError]
func GetErrors ¶
func GetErrors(ctx context.Context, reconcilerName string, page *pagination.Pagination) (*ReconcilerErrorConnection, error)
type ReconcilerErrorEdge ¶
type ReconcilerErrorEdge = pagination.Edge[*ReconcilerError]
Click to show internal directories.
Click to hide internal directories.