Documentation ¶
Index ¶
- type Context
- func (k Context) DB() *gorm.DB
- func (k Context) GetAnnotations() map[string]string
- func (k *Context) GetConfigMapFromCache(namespace, name, key string) (string, error)
- func (k *Context) GetEnvStringFromCache(env string, namespace string) (string, error)
- func (k Context) GetEnvValueFromCache(input types.EnvVar, namespace string) (string, error)
- func (k Context) GetLabels() map[string]string
- func (k Context) GetName() string
- func (k Context) GetNamespace() string
- func (k Context) GetObjectMeta() metav1.ObjectMeta
- func (k *Context) GetSecretFromCache(namespace, name, key string) (string, error)
- func (k *Context) HydrateConnection(connection *models.Connection, namespace string) (*models.Connection, error)
- func (k Context) HydratedConnectionByURL(namespace, connectionString string) (*models.Connection, error)
- func (k *Context) Kommons() *kommons.Client
- func (k *Context) Kubernetes() kubernetes.Interface
- func (k Context) Pool() *pgxpool.Pool
- func (k Context) StartSpan(name string) (Context, trace.Span)
- func (k Context) User() *models.Person
- func (k Context) WithDB(db *gorm.DB, pool *pgxpool.Pool) Context
- func (k Context) WithKommons(client *kommons.Client) Context
- func (k Context) WithKubernetes(client kubernetes.Interface) Context
- func (k Context) WithNamespace(namespace string) Context
- func (k Context) WithObject(object metav1.ObjectMeta) Context
- func (k Context) WithTimeout(timeout time.Duration) (Context, gocontext.CancelFunc)
- func (k Context) WithUser(user *models.Person) Context
- func (k Context) Wrap(ctx gocontext.Context) Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func NewContext ¶
func NewContext(baseCtx gocontext.Context, opts ...commons.ContextOptions) Context
func (Context) GetAnnotations ¶
func (*Context) GetConfigMapFromCache ¶
func (*Context) GetEnvStringFromCache ¶
func (Context) GetEnvValueFromCache ¶
func (Context) GetNamespace ¶
func (Context) GetObjectMeta ¶
func (k Context) GetObjectMeta() metav1.ObjectMeta
func (*Context) GetSecretFromCache ¶
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) WithKommons ¶ added in v1.0.202
func (Context) WithKubernetes ¶
func (k Context) WithKubernetes(client kubernetes.Interface) Context
func (Context) WithNamespace ¶ added in v1.0.197
func (Context) WithObject ¶
func (k Context) WithObject(object metav1.ObjectMeta) Context
func (Context) WithTimeout ¶ added in v1.0.197
Click to show internal directories.
Click to hide internal directories.