services

package
v0.38.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaService

type KafkaService struct {
	CommandEnvironment *v1alpha.CommandEnvironment
	KubernetesClients  *kubeclient.KubernetesClients
}

KafkaService contains methods to connect and bind Kafka Service instance to cluster

func (KafkaService) BuildServiceDetails

func (s KafkaService) BuildServiceDetails(serviceName string, namespace string, ignoreContext bool) (*ServiceDetails, error)

func (KafkaService) PrintAccessCommands

func (s KafkaService) PrintAccessCommands(clientID string)

PrintAccessCommands prints command to grant service account acccess to the Kafka instance

type RHOASKubernetesService

type RHOASKubernetesService interface {

	// Build Custom Resource representing desired service that should be created
	BuildServiceDetails(serviceName string, namespace string, ignoreConfigContext bool) (*ServiceDetails, error)

	// Print commands to be executed to grant access to the service
	PrintAccessCommands(clientID string)
}

RHOASKubernetesService interface defines type for custom resource structs

type RegistryService

type RegistryService struct {
	CommandEnvironment *v1alpha.CommandEnvironment
	KubernetesClients  *kubeclient.KubernetesClients
}

RegistryService contains methods to connect and bind Service registry instance to cluster

func (RegistryService) BuildServiceDetails

func (s RegistryService) BuildServiceDetails(serviceName string, namespace string, ignoreContext bool) (*ServiceDetails, error)

func (RegistryService) PrintAccessCommands

func (s RegistryService) PrintAccessCommands(clientID string)

PrintAccessCommands prints command to assign service account roles in the service registry instance

type ServiceDetails

type ServiceDetails struct {
	Type               string
	ID                 string
	Name               string
	KubernetesResource interface{}
	GroupMetadata      schema.GroupVersionResource
}

ServiceDetails contains metadata for service including structure that should be used to create service CR

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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