Documentation
¶
Index ¶
- Constants
- Variables
- func ChainlinkProtosSubjectNamingStrategy(path, source string, protoSchemaSet ProtoSchemaSet) (string, error)
- func CreateTopics(ctx context.Context, kafkaAddress string, topics []string) error
- func DefaultRegisterAndFetchProtos(ctx context.Context, client *github.Client, protoSchemaSets []ProtoSchemaSet, ...) error
- func DefaultSubjectNamingStrategy(path, source string, protoSchemaSet ProtoSchemaSet) (string, error)
- func DeleteAllTopics(ctx context.Context, kafkaAddress string) error
- func RegisterAndFetchProtos(ctx context.Context, client *github.Client, protoSchemaSets []ProtoSchemaSet, ...) error
- func ValidateRepoConfiguration(repoConfig ProtoSchemaSet) error
- type ChipIngressOutput
- type Input
- type Output
- type ProtoSchemaSet
- type RedPandaOutput
- type RepositoryToSubjectNamingStrategyFn
- type SubjectNamingStrategyFn
Constants ¶
View Source
const ( DEFAULT_STACK_NAME = "chip-ingress" DEFAULT_CHIP_INGRESS_GRPC_PORT = "50051" DEFAULT_CHIP_INGRESS_SERVICE_NAME = "chip-ingress" 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 ¶
View Source
var DefaultRepositoryToSubjectNamingStrategy = RepositoryToSubjectNamingStrategyFn{ "smartcontractkit/chainlink-protos": ChainlinkProtosSubjectNamingStrategy, }
DefaultRepositoryToSubjectNamingStrategy is a map of repository names to SubjectNamingStrategyFn functions
Functions ¶
func ChainlinkProtosSubjectNamingStrategy ¶
func ChainlinkProtosSubjectNamingStrategy(path, source string, protoSchemaSet ProtoSchemaSet) (string, error)
TODO once we have single source of truth for the relationship between protos and subjects, we need to modify this function
func CreateTopics ¶
func DefaultSubjectNamingStrategy ¶
func DefaultSubjectNamingStrategy(path, source string, protoSchemaSet ProtoSchemaSet) (string, error)
func RegisterAndFetchProtos ¶
func RegisterAndFetchProtos(ctx context.Context, client *github.Client, protoSchemaSets []ProtoSchemaSet, schemaRegistryURL string, repoToSubjectNamingStrategy RepositoryToSubjectNamingStrategyFn) error
func ValidateRepoConfiguration ¶
func ValidateRepoConfiguration(repoConfig ProtoSchemaSet) error
Types ¶
type ChipIngressOutput ¶
type Output ¶
type Output struct { ChipIngress *ChipIngressOutput RedPanda *RedPandaOutput }
type ProtoSchemaSet ¶
type RedPandaOutput ¶
type RepositoryToSubjectNamingStrategyFn ¶
type RepositoryToSubjectNamingStrategyFn map[string]SubjectNamingStrategyFn
RepositoryToSubjectNamingStrategyFn is a map of repository names to SubjectNamingStrategyFn functions
type SubjectNamingStrategyFn ¶
type SubjectNamingStrategyFn func(path, source string, repoConfig ProtoSchemaSet) (string, error)
SubjectNamingStrategyFn is a function that is used to determine the subject name for a given proto file in a given repo
Click to show internal directories.
Click to hide internal directories.