context

package
v1.0.196 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: Apache-2.0 Imports: 10 Imported by: 58

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	*commons.Context
}

func NewContext

func NewContext() *Context

func (Context) DB

func (k Context) DB() *gorm.DB

func (Context) GetAnnotations

func (k Context) GetAnnotations() map[string]string

func (*Context) GetConfigMapFromCache

func (k *Context) GetConfigMapFromCache(namespace, name, key string) (string, error)

func (*Context) GetEnvStringFromCache

func (k *Context) GetEnvStringFromCache(env string, namespace string) (string, error)

func (*Context) GetEnvValueFromCache

func (k *Context) GetEnvValueFromCache(c kubernetes.Interface, input types.EnvVar, namespace string) (string, error)

func (Context) GetLabels

func (k Context) GetLabels() map[string]string

func (Context) GetName

func (k Context) GetName() string

func (Context) GetNamespace

func (k Context) GetNamespace() string

func (Context) GetObjectMeta

func (k Context) GetObjectMeta() metav1.ObjectMeta

func (*Context) GetSecretFromCache

func (k *Context) GetSecretFromCache(namespace, name, key string) (string, error)

func (*Context) HydrateConnection

func (k *Context) HydrateConnection(connection *models.Connection, namespace string) (*models.Connection, error)

func (*Context) HydratedConnectionByURL

func (k *Context) HydratedConnectionByURL(namespace, connectionString string) (*models.Connection, error)

func (*Context) Kubernetes

func (k *Context) Kubernetes() kubernetes.Interface

func (Context) PgxPool

func (k Context) PgxPool() *pgxpool.Pool

func (Context) StartSpan

func (k Context) StartSpan(name string) (Context, trace.Span)

func (*Context) User

func (k *Context) User() *models.Person

func (Context) WithDB

func (k Context) WithDB(db *gorm.DB, pool *pgxpool.Pool) *Context

func (*Context) WithKubernetes

func (k *Context) WithKubernetes(client kubernetes.Interface) *Context

func (*Context) WithObject

func (k *Context) WithObject(object metav1.ObjectMeta) *Context

func (*Context) WithUser

func (k *Context) WithUser(user *models.Person) *Context

Jump to

Keyboard shortcuts

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