Help us shape the future of Go! Take the 2026 Go Developer Survey

util

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockModifier

type MockModifier struct {
	Val      string
	Err      error
	ArgToVal map[string]string
	// contains filtered or unexported fields
}

MockModifier implements types.SecretModifier for testing

func NewMockModifier

func NewMockModifier(typ string) *MockModifier

NewMockModifier creates a new MockModifier with the required typ field

func (*MockModifier) Modify

func (m *MockModifier) Modify(_ context.Context, value string, modArg string) (string, error)

func (*MockModifier) Type

func (m *MockModifier) Type() string

type MockSource

type MockSource struct {
	Val string
	Err error
	// contains filtered or unexported fields
}

MockSource implements spelunk.SecretSource for testing

func NewMockSource

func NewMockSource(typ string) *MockSource

NewMockSource creates a new MockSource with the required typ field

func (*MockSource) DigUp

func (*MockSource) Type

func (m *MockSource) Type() string

Jump to

Keyboard shortcuts

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