context

package
v1.0.42 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	gocontext.Context
	Kubernetes  kubernetes.Interface
	Kommons     *kommons.Client
	Namespace   string
	Canary      v1.Canary
	Environment map[string]interface{}
	logger.Logger
	// contains filtered or unexported fields
}

func New

func New(client *kommons.Client, kubernetes kubernetes.Interface, db *gorm.DB, canary v1.Canary) *Context

func (*Context) DB added in v1.0.11

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

func (*Context) Debugf added in v0.38.277

func (ctx *Context) Debugf(format string, args ...interface{})

func (Context) GetAuthValues added in v0.38.343

func (ctx Context) GetAuthValues(auth v1.Authentication) (v1.Authentication, error)

func (*Context) GetConnection added in v0.38.343

func (ctx *Context) GetConnection(conn v1.Connection) (*models.Connection, error)

func (*Context) GetEnvValueFromCache added in v0.38.286

func (ctx *Context) GetEnvValueFromCache(env types.EnvVar) (string, error)

func (*Context) HydrateConnectionByURL added in v0.38.276

func (ctx *Context) HydrateConnectionByURL(connectionName string) (*models.Connection, error)

func (*Context) IsDebug added in v0.38.11

func (ctx *Context) IsDebug() bool

func (*Context) IsTrace added in v0.38.11

func (ctx *Context) IsTrace() bool

func (*Context) New

func (ctx *Context) New(environment map[string]interface{}) *Context

func (*Context) String added in v0.38.17

func (ctx *Context) String() string

func (*Context) Tracef added in v0.38.277

func (ctx *Context) Tracef(format string, args ...interface{})

func (*Context) WithDeadline added in v0.38.21

func (ctx *Context) WithDeadline(deadline time.Time) (*Context, gocontext.CancelFunc)

func (*Context) WithTimeout added in v0.38.21

func (ctx *Context) WithTimeout(timeout time.Duration) (*Context, gocontext.CancelFunc)

type KubernetesContext added in v0.38.85

type KubernetesContext struct {
	gocontext.Context
	Kommons     *kommons.Client
	Kubernetes  kubernetes.Interface
	Namespace   string
	Environment map[string]interface{}
	logger.Logger
}

func NewKubernetesContext added in v0.38.85

func NewKubernetesContext(client *kommons.Client, kubernetes kubernetes.Interface, namespace string) *KubernetesContext

func (*KubernetesContext) Clone added in v0.38.85

func (ctx *KubernetesContext) Clone() *KubernetesContext

Jump to

Keyboard shortcuts

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