random

package
v0.15.9-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 4 Imported by: 0

README

Random Provider

TODO

Documentation

Overview

Package random implements a sidecred.Provider for random strings, and can be used for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(seed int64, options ...option) sidecred.Provider

New returns a new sidecred.Provider for random strings.

func WithRotationInterval

func WithRotationInterval(duration time.Duration) option

WithRotationInterval sets the interval at which the random string should be rotated.

Types

type RequestConfig

type RequestConfig struct {
	Length int `json:"length"`
}

RequestConfig ...

func (*RequestConfig) Validate added in v0.11.0

func (c *RequestConfig) Validate() error

Validate implements sidecred.Validatable.

Jump to

Keyboard shortcuts

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