Help us shape the future of Go! Take the 2026 Go Developer Survey

rhsm

package
v1.59.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedhatSubscriptionFinalizer = "kubermatic.io/red-hat-subscription"
)

Variables

This section is empty.

Functions

func AddRHELSubscriptionFinalizer

func AddRHELSubscriptionFinalizer(machine *v1alpha1.Machine, update types.MachineUpdater) error

AddRHELSubscriptionFinalizer adds finalizer RedhatSubscriptionFinalizer to the machine object on rhel machine creation.

func RemoveRHELSubscriptionFinalizer

func RemoveRHELSubscriptionFinalizer(machine *v1alpha1.Machine, update types.MachineUpdater) error

RemoveRHELSubscriptionFinalizer removes finalizer RedhatSubscriptionFinalizer to the machine object on rhel machine deletion.

Types

type DefaultSatelliteSubscriptionManager added in v1.15.0

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

DefaultSatelliteSubscriptionManager default manager for redhat satellite server.

func (*DefaultSatelliteSubscriptionManager) DeleteSatelliteHost added in v1.15.0

func (s *DefaultSatelliteSubscriptionManager) DeleteSatelliteHost(ctx context.Context, machineName, username, password, serverURL string) error

type RedHatSubscriptionManager

type RedHatSubscriptionManager interface {
	UnregisterInstance(ctx context.Context, offlineToken, machineName string) error
}

RedHatSubscriptionManager is responsible for removing redhat subscriptions.

func NewRedHatSubscriptionManager

func NewRedHatSubscriptionManager(log *zap.SugaredLogger) RedHatSubscriptionManager

type SatelliteSubscriptionManager added in v1.15.0

type SatelliteSubscriptionManager interface {
	DeleteSatelliteHost(ctx context.Context, machineName, username, password, serverURL string) error
}

SatelliteSubscriptionManager manages the communications between machine-controller and redhat satellite server.

func NewSatelliteSubscriptionManager added in v1.15.0

func NewSatelliteSubscriptionManager(log *zap.SugaredLogger) SatelliteSubscriptionManager

NewSatelliteSubscriptionManager creates a new Redhat satellite manager.

Jump to

Keyboard shortcuts

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