random

package
v0.5.61 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const TypeRandomCreature string = "random_creature"

TypeRandomCreature is the resource for generating random creatures

View Source
const TypeRandomID string = "random_id"

TypeRandomID is the resource for generating random IDs

View Source
const TypeRandomNumber string = "random_number"

TypeRandomNumber is the resource for generating random numbers

View Source
const TypeRandomPassword string = "random_password"

TypeRandomPassword is the resource for generating random passwords

View Source
const TypeRandomUUID string = "random_uuid"

TypeRandomUUID is the resource for generating random UUIDs

Variables

This section is empty.

Functions

This section is empty.

Types

type RandomCreature

type RandomCreature struct {
	types.ResourceMetadata `hcl:",remain"`

	// Output parameters
	Value string `hcl:"value,optional" json:"value"`
}

allows the generation of random creatures

func (*RandomCreature) Process

func (c *RandomCreature) Process() error

type RandomCreatureProvider

type RandomCreatureProvider struct {
	// contains filtered or unexported fields
}

RandomCreature is a provider for generating random creatures

func (*RandomCreatureProvider) Changed

func (p *RandomCreatureProvider) Changed() (bool, error)

func (*RandomCreatureProvider) Create

func (p *RandomCreatureProvider) Create() error

func (*RandomCreatureProvider) Destroy

func (p *RandomCreatureProvider) Destroy() error

func (*RandomCreatureProvider) Init

func (*RandomCreatureProvider) Lookup

func (p *RandomCreatureProvider) Lookup() ([]string, error)

func (*RandomCreatureProvider) Refresh

func (p *RandomCreatureProvider) Refresh() error

type RandomID

type RandomID struct {
	types.ResourceMetadata `hcl:",remain"`

	ByteLength int64 `hcl:"byte_length" json:"byte_length"`

	// Output parameters
	Base64 string `hcl:"base64,optional" json:"base64"`
	Hex    string `hcl:"hex,optional" json:"hex"`
	Dec    string `hcl:"dec,optional" json:"dec"`
}

allows the generation of random IDs

func (*RandomID) Process

func (c *RandomID) Process() error

type RandomIDProvider

type RandomIDProvider struct {
	// contains filtered or unexported fields
}

RandomID is a provider for generating random IDs

func (*RandomIDProvider) Changed

func (p *RandomIDProvider) Changed() (bool, error)

func (*RandomIDProvider) Create

func (p *RandomIDProvider) Create() error

func (*RandomIDProvider) Destroy

func (p *RandomIDProvider) Destroy() error

func (*RandomIDProvider) Init

func (p *RandomIDProvider) Init(cfg htypes.Resource, l sdk.Logger) error

func (*RandomIDProvider) Lookup

func (p *RandomIDProvider) Lookup() ([]string, error)

func (*RandomIDProvider) Refresh

func (p *RandomIDProvider) Refresh() error

type RandomNumber

type RandomNumber struct {
	types.ResourceMetadata `hcl:",remain"`

	Minimum int `hcl:"minimum" json:"minimum"`
	Maximum int `hcl:"maximum" json:"maximum"`

	// Output parameters
	Value int `hcl:"value,optional" json:"value"`
}

allows the generation of random numbers

func (*RandomNumber) Process

func (c *RandomNumber) Process() error

type RandomNumberProvider

type RandomNumberProvider struct {
	// contains filtered or unexported fields
}

RandomNumber is a random number provider

func (*RandomNumberProvider) Changed

func (p *RandomNumberProvider) Changed() (bool, error)

func (*RandomNumberProvider) Create

func (p *RandomNumberProvider) Create() error

func (*RandomNumberProvider) Destroy

func (p *RandomNumberProvider) Destroy() error

func (*RandomNumberProvider) Init

func (*RandomNumberProvider) Lookup

func (p *RandomNumberProvider) Lookup() ([]string, error)

func (*RandomNumberProvider) Refresh

func (p *RandomNumberProvider) Refresh() error

type RandomPassword

type RandomPassword struct {
	types.ResourceMetadata `hcl:",remain"`

	Length int64 `hcl:"length" json:"lenght"`

	OverrideSpecial string `hcl:"override_special,optional" json:"override_special"`

	Special    *bool `hcl:"special,optional" json:"special"`
	Numeric    *bool `hcl:"numeric,optional" json:"numeric"`
	Lower      *bool `hcl:"lower,optional" json:"lower"`
	Upper      *bool `hcl:"upper,optional" json:"upper"`
	MinSpecial int64 `hcl:"min_special,optional" json:"min_special"`
	MinNumeric int64 `hcl:"min_numeric,optional" json:"min_numeric"`
	MinLower   int64 `hcl:"min_lower,optional" json:"min_lower"`
	MinUpper   int64 `hcl:"min_upper,optional" json:"min_upper"`

	// Output parameters
	Value string `hcl:"value,optional" json:"value"`
}

allows the generation of random Passwords

func (*RandomPassword) Process

func (c *RandomPassword) Process() error

type RandomPasswordProvider

type RandomPasswordProvider struct {
	// contains filtered or unexported fields
}

RandomPassword is a provider for generating random passwords

func (*RandomPasswordProvider) Changed

func (p *RandomPasswordProvider) Changed() (bool, error)

func (*RandomPasswordProvider) Create

func (p *RandomPasswordProvider) Create() error

func (*RandomPasswordProvider) Destroy

func (p *RandomPasswordProvider) Destroy() error

func (*RandomPasswordProvider) Init

func (*RandomPasswordProvider) Lookup

func (p *RandomPasswordProvider) Lookup() ([]string, error)

func (*RandomPasswordProvider) Refresh

func (p *RandomPasswordProvider) Refresh() error

type RandomUUID

type RandomUUID struct {
	types.ResourceMetadata `hcl:",remain"`

	// Output parameters
	Value string `hcl:"value,optional" json:"value"`
}

allows the generation of random UUIDs

func (*RandomUUID) Process

func (c *RandomUUID) Process() error

type RandomUUIDProvider

type RandomUUIDProvider struct {
	// contains filtered or unexported fields
}

RandomUUID is a provider for generating random UUIDs

func (*RandomUUIDProvider) Changed

func (p *RandomUUIDProvider) Changed() (bool, error)

func (*RandomUUIDProvider) Create

func (p *RandomUUIDProvider) Create() error

func (*RandomUUIDProvider) Destroy

func (p *RandomUUIDProvider) Destroy() error

func (*RandomUUIDProvider) Init

func (*RandomUUIDProvider) Lookup

func (p *RandomUUIDProvider) Lookup() ([]string, error)

func (*RandomUUIDProvider) Refresh

func (p *RandomUUIDProvider) Refresh() error

Jump to

Keyboard shortcuts

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