package
0.0.0-20250325040603-118c1786ccc0
Repository: https://github.com/openshift/managed-upgrade-operator.git
Documentation: pkg.go.dev

# Packages

Package mocks is a generated GoMock package.

# Functions

NewBuilder creates a new Notifier instance builder.

# Constants

CLUSTERS_V1_PATH is a path to the OCM clusters service.
OPERATION_ID_HEADER is a header field used to correlate OCM events.
SERVICELOG_INTERNAL_ONLY defines if the log is internal or not.
SERVICELOG_LOG_TYPE is the log type sent from MUO.
SERVICELOG_SERVICE_NAME is the name of the service reporting the log.
STATE_V1_PATH sub-path to the policy state service.
UPGRADEPOLICIES_V1_PATH is a sub-path to the OCM upgrade policies service.

# Variables

ErrClusterIdNotFound is an error describing the cluster ID can not be found.

# Structs

ClusterInfo represents a partial unmarshalled Cluster response from Cluster Services.
ClusterList represents an unmarshalled Cluster List response from Cluster Services.
ClusterVersion represents a clusters version.
ConfigManager holds config for ocm client.
NodeDrainGracePeriod represents a duration for node drain grace periods.
OcmClientConfig holds config for an ocm client.
SdkClient is the ocm client with which we can run the commands currently we do not need to export the connection or the config, as we create the SdkClient using the New func.
ServiceLog is the internal representation of a service log.
UpgradePolicy represents an unmarshalled individual Upgrade Policy response from Cluster Services.
UpgradePolicyList represents an unmarshalled Upgrade Policy response from Cluster Services.
UpgradePolicyState represents an Upgrade Policy state for notifications.
UpgradePolicyStateRequest represents an Upgrade Policy state for notifications.

# Interfaces

OcmClient enables an implementation of an ocm client go:generate mockgen -destination=mocks/client.go -package=mocks github.com/openshift/managed-upgrade-operator/pkg/ocm OcmClient.
OcmClientBuilder enables implementation of an ocm client.