package
0.1.0
Repository: https://github.com/kong/koko.git
Documentation: pkg.go.dev

# Functions

New instantiates a seeder with the given config.
NewOptionsBuilder instantiates a new instance of an OptionsBuilder.

# Variables

DefaultNewResourceFuncs contains the NewResourceFunc functions for resources that require other fields to be set.
DefaultRandSourceFunc defines the default function used for determining the random source based on a given type.
ErrRequiredFieldMissing is returned during a seed call when a type does not have a required field to properly seed the resource.

# Structs

NewSeederOpts defines the configuration used to instantiate a new seeder.
Options defines the non-exported options that the Seeder seed methods can take in.
OptionsBuilder allows seeder options to be built, used for each seed call.
ResourceInfo stores various information related to a specific resource.
Result defines a single resource, with some common fields shared across resources & its underling Protobuf message.
Results is a list of Result objects.

# Interfaces

Seeder handles creating test resources, usually used to ease integration testing.

# Type aliases

ModifyHTTPRequestFunc defines a function that can manipulate the passed in HTTP request for the given type.
NewResourceFunc allows the seeder to properly set the desired fields on a resource that require more fields than just an ID to be created.