config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated from Pkl module `org.github.m_mizutani.hatchery.config`. DO NOT EDIT.

Code generated from Pkl module `org.github.m_mizutani.hatchery.config`. DO NOT EDIT.

Code generated from Pkl module `org.github.m_mizutani.hatchery.config`. DO NOT EDIT.

Code generated from Pkl module `org.github.m_mizutani.hatchery.config`. DO NOT EDIT.

Code generated from Pkl module `org.github.m_mizutani.hatchery.config`. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogObjNamePrefix

func LogObjNamePrefix(action Action, now time.Time) model.CSObjectName

Types

type Action

type Action interface {
	GetId() string

	GetBucket() string

	GetPrefix() *string
}

type Config

type Config struct {
	Actions []Action `pkl:"actions"`
}

func Load

func Load(ctx context.Context, evaluator pkl.Evaluator, source *pkl.ModuleSource) (*Config, error)

Load loads the pkl module at the given source and evaluates it with the given evaluator into a Config

func LoadFromPath

func LoadFromPath(ctx context.Context, path string) (ret *Config, err error)

LoadFromPath loads the pkl module at the given path and evaluates it into a Config

func (Config) LookupAction

func (x Config) LookupAction(id string) Action

type FalconDataReplicator

type FalconDataReplicator interface {
	Action

	GetAwsRegion() string

	GetAwsAccessKeyId() string

	GetAwsSecretAccessKey() string

	GetSqsUrl() string

	GetMaxMessages() *int

	GetMaxPulls() *int
}

type FalconDataReplicatorImpl

type FalconDataReplicatorImpl struct {
	AwsRegion string `pkl:"aws_region"`

	AwsAccessKeyId string `pkl:"aws_access_key_id"`

	AwsSecretAccessKey string `pkl:"aws_secret_access_key"`

	SqsUrl string `pkl:"sqs_url"`

	MaxMessages *int `pkl:"max_messages"`

	MaxPulls *int `pkl:"max_pulls"`

	Id string `pkl:"id"`

	Bucket string `pkl:"bucket"`

	Prefix *string `pkl:"prefix"`
}

func (*FalconDataReplicatorImpl) GetAwsAccessKeyId

func (rcv *FalconDataReplicatorImpl) GetAwsAccessKeyId() string

func (*FalconDataReplicatorImpl) GetAwsRegion

func (rcv *FalconDataReplicatorImpl) GetAwsRegion() string

func (*FalconDataReplicatorImpl) GetAwsSecretAccessKey

func (rcv *FalconDataReplicatorImpl) GetAwsSecretAccessKey() string

func (*FalconDataReplicatorImpl) GetBucket

func (rcv *FalconDataReplicatorImpl) GetBucket() string

func (*FalconDataReplicatorImpl) GetId

func (rcv *FalconDataReplicatorImpl) GetId() string

func (*FalconDataReplicatorImpl) GetMaxMessages

func (rcv *FalconDataReplicatorImpl) GetMaxMessages() *int

func (*FalconDataReplicatorImpl) GetMaxPulls

func (rcv *FalconDataReplicatorImpl) GetMaxPulls() *int

func (*FalconDataReplicatorImpl) GetPrefix

func (rcv *FalconDataReplicatorImpl) GetPrefix() *string

func (*FalconDataReplicatorImpl) GetSqsUrl

func (rcv *FalconDataReplicatorImpl) GetSqsUrl() string

type OnePassword

type OnePassword interface {
	Action

	GetApiToken() string

	GetDuration() *pkl.Duration

	GetLimit() int

	GetMaxPages() *int
}

type OnePasswordImpl

type OnePasswordImpl struct {
	ApiToken string `pkl:"api_token"`

	Duration *pkl.Duration `pkl:"duration"`

	Limit int `pkl:"limit"`

	MaxPages *int `pkl:"max_pages"`

	Id string `pkl:"id"`

	Bucket string `pkl:"bucket"`

	Prefix *string `pkl:"prefix"`
}

func (*OnePasswordImpl) GetApiToken

func (rcv *OnePasswordImpl) GetApiToken() string

func (*OnePasswordImpl) GetBucket

func (rcv *OnePasswordImpl) GetBucket() string

func (*OnePasswordImpl) GetDuration

func (rcv *OnePasswordImpl) GetDuration() *pkl.Duration

func (*OnePasswordImpl) GetId

func (rcv *OnePasswordImpl) GetId() string

func (*OnePasswordImpl) GetLimit

func (rcv *OnePasswordImpl) GetLimit() int

func (*OnePasswordImpl) GetMaxPages

func (rcv *OnePasswordImpl) GetMaxPages() *int

func (*OnePasswordImpl) GetPrefix

func (rcv *OnePasswordImpl) GetPrefix() *string

Jump to

Keyboard shortcuts

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