ocmagent

package
v0.0.0-...-2f7b245 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OCM_AGENT_SERVICE_URL  = "ocm-agent.openshift-ocm-agent-operator.svc.cluster.local"
	OCM_AGENT_SERVICE_PORT = 8081
	// OPERATION_ID_HEADER is a header field used to correlate OCM events
	OPERATION_ID_HEADER = "X-Operation-Id"
	// UPGRADEPOLICIES_PATH is a sub-path to the OCM upgrade policies service
	UPGRADEPOLICIES_PATH = "upgrade_policies"
	// STATE_V1_PATH sub-path to the policy state service
	STATE_V1_PATH = "state"

	// SERVICELOG_LOG_TYPE is the log type sent from MUO
	SERVICELOG_LOG_TYPE = "Cluster Updates"
	// SERVICELOG_SERVICE_NAME is the name of the service reporting the log
	SERVICELOG_SERVICE_NAME = "RedHat Managed Upgrade Notifications"
	// SERVICELOG_INTERNAL_ONLY defines if the log is internal or not
	SERVICELOG_INTERNAL_ONLY = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OcmAgentClientBuilder

type OcmAgentClientBuilder interface {
	New(c client.Client, ocmBaseUrl *url.URL) (ocm.OcmClient, error)
}

OcmAgentClientBuilder enables implementation of an ocm client.

func NewBuilder

func NewBuilder() OcmAgentClientBuilder

NewBuilder creates a new Notifier instance builder

type SdkClient

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

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

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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