reconciler

package
v0.0.0-...-b00d09b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActivityLogEntryResourceTypeReconciler activitylog.ActivityLogEntryResourceType = "RECONCILER"
)

Variables

This section is empty.

Functions

func NewLoaderContext

func NewLoaderContext(ctx context.Context, dbConn *pgxpool.Pool) context.Context

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 Disable

func Disable(ctx context.Context, name string) (*Reconciler, error)

func Enable

func Enable(ctx context.Context, name string) (*Reconciler, error)

func Get

func Get(ctx context.Context, name string) (*Reconciler, error)

func GetByIdent

func GetByIdent(ctx context.Context, ident ident.Ident) (*Reconciler, error)

func (Reconciler) ID

func (r Reconciler) ID() ident.Ident

func (Reconciler) IsNode

func (Reconciler) IsNode()

type ReconcilerConfig

type ReconcilerConfig struct {
	Key            string  `json:"key"`
	DisplayName    string  `json:"displayName"`
	Description    string  `json:"description"`
	Configured     bool    `json:"configured"`
	Secret         bool    `json:"secret"`
	Value          *string `json:"value,omitempty"`
	ReconcilerName string  `json:"-"`
}

func GetConfig

func GetConfig(ctx context.Context, name string, includeSecrets bool) ([]*ReconcilerConfig, error)

type ReconcilerConfigInput

type ReconcilerConfigInput struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

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]

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]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL