chipingressset

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 27 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DEFAULT_STACK_NAME = "chip-ingress"

	DEFAULT_CHIP_INGRESS_GRPC_PORT    = "50051"
	DEFAULT_CHIP_INGRESS_SERVICE_NAME = "chip-ingress"

	DEFAULT_CHIP_CONFIG_EXTERNAL_PORT = "50052"
	DEFAULT_CHIP_CONFIG_INTERNAL_PORT = "50051"
	DEFAULT_CHIP_CONFIG_SERVICE_NAME  = "chip-config"
	DEFAULT_CHIP_CONFIG_USERNAME      = "admin"
	DEFAULT_CHIP_CONFIG_PASSWORD      = "password"

	DEFAULT_RED_PANDA_SCHEMA_REGISTRY_PORT = "18081"
	DEFAULT_RED_PANDA_KAFKA_PORT           = "19092"
	DEFAULT_RED_PANDA_SERVICE_NAME         = "redpanda-0"

	DEFAULT_RED_PANDA_CONSOLE_SERVICE_NAME = "redpanda-console"
	DEFAULT_RED_PANDA_CONSOLE_PORT         = "8080"
)

Variables

This section is empty.

Functions

func CreateTopics

func CreateTopics(ctx context.Context, kafkaAddress string, topics []string) error

func DeleteAllTopics

func DeleteAllTopics(ctx context.Context, kafkaAddress string) error

func FetchAndRegisterProtos added in v0.1.18

func FetchAndRegisterProtos(ctx context.Context, client *github.Client, chipIngressOutput *ChipIngressOutput, schemaSet []SchemaSet) error

Types

type ChipConfigOutput added in v0.1.18

type ChipConfigOutput struct {
	GRPCInternalURL string `toml:"grpc_internal_url"`
	GRPCExternalURL string `toml:"grpc_external_url"`
	Username        string `toml:"username"`
	Password        string `toml:"password"`
}

type ChipIngressOutput

type ChipIngressOutput struct {
	GRPCInternalURL string `toml:"grpc_internal_url"`
	GRPCExternalURL string `toml:"grpc_external_url"`
}

type Input

type Input struct {
	ComposeFile         string   `toml:"compose_file"`
	ExtraDockerNetworks []string `toml:"extra_docker_networks"`
	Output              *Output  `toml:"output"`
	UseCache            bool     `toml:"use_cache"`
}

type Output

type Output struct {
	ChipIngress *ChipIngressOutput `toml:"chip_ingress"`
	ChipConfig  *ChipConfigOutput  `toml:"chip_config"`
	RedPanda    *RedPandaOutput    `toml:"redpanda"`
}

func New

func New(in *Input) (*Output, error)

func NewWithContext added in v0.1.17

func NewWithContext(ctx context.Context, in *Input) (*Output, error)

type RedPandaOutput

type RedPandaOutput struct {
	SchemaRegistryInternalURL string `toml:"schema_registry_internal_url"`
	SchemaRegistryExternalURL string `toml:"schema_registry_external_url"`
	KafkaInternalURL          string `toml:"kafka_internal_url"`
	KafkaExternalURL          string `toml:"kafka_external_url"`
	ConsoleExternalURL        string `toml:"console_external_url"`
}

type SchemaSet added in v0.1.18

type SchemaSet struct {
	URI        string `toml:"uri"`
	Ref        string `toml:"ref"`         // ref or tag or commit SHA
	SchemaDir  string `toml:"schema_dir"`  // optional sub-directory in the repo where protos are located
	ConfigFile string `toml:"config_file"` // optional path to config file in the repo (default: <schemaDir>/chip.json)
}

func (*SchemaSet) ConfigFileName added in v0.1.18

func (s *SchemaSet) ConfigFileName() string

Jump to

Keyboard shortcuts

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