generate

package
v0.0.0-...-7995a24 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDockerFile

func InitDockerFile(layout directory.GRPCServiceLayout, opts ...option.Option) error

InitDockerFile initializes the Dockerfile used to generate docker image

func InitIstioDestinationRule

func InitIstioDestinationRule(layout directory.GRPCServiceLayout, opts ...option.Option) error

InitIstioDestinationRule initializes the istio destination_rule.yaml file

func InitIstioVirtualService

func InitIstioVirtualService(layout directory.GRPCServiceLayout, opts ...option.Option) error

InitIstioVirtualService initializes the istio virtual_service.yaml file

func InitKubeDeployment

func InitKubeDeployment(layout directory.GRPCServiceLayout, opts ...option.Option) error

InitKubeDeployment initializes the kubernetes deployment.yaml file

func InitKubeService

func InitKubeService(layout directory.GRPCServiceLayout, opts ...option.Option) error

InitKubeService initializes the kubernetes service.yaml file

Types

type GRPCServiceGenerator

type GRPCServiceGenerator struct{}

GRPCServiceGenerator definition

func NewGRPCServiceGenerator

func NewGRPCServiceGenerator() *GRPCServiceGenerator

NewGRPCServiceGenerator returns a GRPCServiceGenerator pointer

func (*GRPCServiceGenerator) Add

func (gen *GRPCServiceGenerator) Add(
	protoPath string, layout directory.GRPCServiceLayout, opts ...option.Option) error

Add adds a gRPC service according to proto file

func (*GRPCServiceGenerator) Init

Init initializes all the files needed for a basic gRPC service with health check service

func (*GRPCServiceGenerator) Update

func (gen *GRPCServiceGenerator) Update(
	protoPath string, layout directory.GRPCServiceLayout, opts ...option.Option) error

Update updates a gRPC service according to proto file

type ProtobufServiceGenerator

type ProtobufServiceGenerator interface {
	Init(layout directory.GRPCServiceLayout, opts ...option.Option) error
	Add(protoPath string, layout directory.GRPCServiceLayout, opts ...option.Option) error
	Update(protoPath string, layout directory.GRPCServiceLayout, opts ...option.Option) error
}

ProtobufServiceGenerator interface

Jump to

Keyboard shortcuts

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