opslevel_common

package module
v2022.6.28 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 13 Imported by: 0

README

opslevel-common

Library of common or utility code for sharing across all opslevel golang projects

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSignalHandler

func InitSignalHandler() <-chan struct{}

InitSignalHandler Usage:

func Start() {
  log.Info().Msg("Starting...")
	 <-opslevel_common.InitSignalHandler() // Block until signals
	 log.Info().Msg("Stopping...")
}

Types

type ClientWrapper

type ClientWrapper struct {
	Client  kubernetes.Interface
	Dynamic dynamic.Interface
	Mapper  restmapper.DeferredDiscoveryRESTMapper
}

func CreateKubernetesClient

func CreateKubernetesClient() (*ClientWrapper, error)

CreateKubernetesClient This creates a wrapper which gives you an initialized and connected kubernetes client and dynamic client with restmapper

Jump to

Keyboard shortcuts

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