billing

package
v1.21.0-up.1.rc.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package billing contains controllers that manage billing-related resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupAWSMarketplace

func SetupAWSMarketplace(mgr ctrl.Manager, l logging.Logger) error

SetupAWSMarketplace adds the AWS Marketplace controller that registers this instance with AWS Marketplace.

Types

type NopRegisterer

type NopRegisterer struct{}

NopRegisterer implements Registerer and does nothing.

func NewNopRegisterer

func NewNopRegisterer() NopRegisterer

NewNopRegisterer returns a Registerer that does nothing.

func (NopRegisterer) Register

func (np NopRegisterer) Register(_ context.Context, _ *v1.Secret, _ string) (string, error)

Register does nothing.

func (NopRegisterer) Verify

func (np NopRegisterer) Verify(_, _ string) (bool, error)

Verify does nothing.

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler reconciles on entitlement secret.

func NewReconciler

func NewReconciler(mgr manager.Manager, opts ...ReconcilerOption) *Reconciler

NewReconciler returns a new reconciler.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)

Reconcile reconciles on entitlement secret and registers & verifies that usage is valid in given entitlement context.

type ReconcilerOption

type ReconcilerOption func(*Reconciler)

ReconcilerOption is used to configure the Reconciler.

func WithLogger

func WithLogger(log logging.Logger) ReconcilerOption

WithLogger specifies how the Reconciler should log messages.

func WithRecorder

func WithRecorder(er event.Recorder) ReconcilerOption

WithRecorder specifies how the Reconciler should record Kubernetes events.

func WithRegisterer

func WithRegisterer(reg Registerer) ReconcilerOption

WithRegisterer specifies the Registerer to use.

type Registerer

type Registerer interface {
	Register(ctx context.Context, secret *v1.Secret, uid string) (string, error)
	Verify(token, uid string) (bool, error)
}

Registerer can register usage of universal-crossplane with idempotent calls.

Directories

Path Synopsis
Package aws contains logic to handle AWS Marketplace billing.
Package aws contains logic to handle AWS Marketplace billing.

Jump to

Keyboard shortcuts

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