util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: AGPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const RFC3389WithMS = "2006-01-02T15:04:05.000Z07:00"

Variables

This section is empty.

Functions

func BigFloatToInt64 added in v0.2.0

func BigFloatToInt64(input *big.Float) int64

func CalculateHash

func CalculateHash(s, salt string) string

func GetHost

func GetHost() string

func NewExecutionID

func NewExecutionID() string

func NewPipelineExecutionID

func NewPipelineExecutionID() string

func NewProcessID

func NewProcessID() string

func NewSessionID

func NewSessionID() string

func NewStepExecutionID

func NewStepExecutionID() string

func NewUniqueID

func NewUniqueID() string

func RunSendEmail

func RunSendEmail(ctx context.Context, input modconfig.Input) (*modconfig.Output, error)

TODO: Sync up with email step - once the variable names are in sync, we can use the same schema

func ValidateEmailInput

func ValidateEmailInput(ctx context.Context, i modconfig.Input) error

Types

type CommandBusMock added in v0.2.0

type CommandBusMock struct {
	SendFunc         func(ctx context.Context, command interface{}) error
	SendWithLockFunc func(ctx context.Context, command interface{}, lock *sync.Mutex) error
}

func (*CommandBusMock) Send added in v0.2.0

func (c *CommandBusMock) Send(ctx context.Context, command interface{}) error

func (*CommandBusMock) SendWithLock added in v0.2.0

func (c *CommandBusMock) SendWithLock(ctx context.Context, command interface{}, lock *sync.Mutex) error

type HclExpressionMock added in v0.2.0

type HclExpressionMock struct {
	ValueFunc func(evalCtx *hcl.EvalContext) (cty.Value, hcl.Diagnostics)
}

func (*HclExpressionMock) Range added in v0.2.0

func (*HclExpressionMock) Range() hcl.Range

func (*HclExpressionMock) StartRange added in v0.2.0

func (*HclExpressionMock) StartRange() hcl.Range

func (*HclExpressionMock) Value added in v0.2.0

func (h *HclExpressionMock) Value(evalCtx *hcl.EvalContext) (cty.Value, hcl.Diagnostics)

func (*HclExpressionMock) Variables added in v0.2.0

func (*HclExpressionMock) Variables() []hcl.Traversal

Jump to

Keyboard shortcuts

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