common

package
v0.0.0-...-ff48f10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Machine readable event "Reason" fields, used for determining synchronization state.
	EventSynchronized               = "Synchronized"
	EventFailedSynchronization      = "FailedSynchronization"
	EventFailedStatusUpdate         = "FailedStatusUpdate"
	EventCreatedInDigDir            = "CreatedInDigDir"
	EventUpdatedInDigDir            = "UpdatedInDigDir"
	EventRotatedInDigDir            = "RotatedInDigDir"
	EventSkipped                    = "Skipped"
	EventRetrying                   = "Retrying"
	EventActivatedScopeInDigDir     = "ActivatedScopeInDigDir"
	EventDeactivatedScopeInDigDir   = "DeactivatedScopeInDigDir"
	EventCreatedScopeInDigDir       = "CreatedScopeInDigDir"
	EventUpdatedScopeInDigDir       = "UpdatedScopeInDigDir"
	EventUpdatedACLForScopeInDigDir = "UpdatedACLForScopeInDigDir"
)
View Source
const (
	FinalizerName      string = "finalizer.digdirator.nais.io"
	PreserveAnnotation string = "digdir.nais.io/preserve"
)
View Source
const RequeueInterval = 10 * time.Second
View Source
const (
	StakaterReloaderKeyAnnotation = "reloader.stakater.com/match"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	Client     client.Client
	Reader     client.Reader
	Scheme     *runtime.Scheme
	Recorder   record.EventRecorder
	Config     *config.Config
	Signer     jose.Signer
	HttpClient *http.Client
	ClientID   []byte
}

func NewReconciler

func NewReconciler(
	client client.Client,
	reader client.Reader,
	scheme *runtime.Scheme,
	recorder record.EventRecorder,
	config *config.Config,
	signer jose.Signer,
	httpClient *http.Client,
	clientID []byte,
) Reconciler

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request, instance clients.Instance) (ctrl.Result, error)

type Transaction

type Transaction struct {
	Ctx          context.Context
	Instance     clients.Instance
	Logger       *log.Entry
	DigdirClient *digdir.Client
	Config       *config.Config
}

func NewTransaction

func NewTransaction(
	ctx context.Context,
	instance clients.Instance,
	logger *log.Entry,
	digdirClient *digdir.Client,
	config *config.Config,
) Transaction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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