Documentation ¶
Index ¶
- func InitDockerFile(layout directory.GRPCServiceLayout, opts ...option.Option) error
- func InitIstioDestinationRule(layout directory.GRPCServiceLayout, opts ...option.Option) error
- func InitIstioVirtualService(layout directory.GRPCServiceLayout, opts ...option.Option) error
- func InitKubeDeployment(layout directory.GRPCServiceLayout, opts ...option.Option) error
- func InitKubeService(layout directory.GRPCServiceLayout, opts ...option.Option) error
- type GRPCServiceGenerator
- func (gen *GRPCServiceGenerator) Add(protoPath string, layout directory.GRPCServiceLayout, opts ...option.Option) error
- func (gen *GRPCServiceGenerator) Init(layout directory.GRPCServiceLayout, opts ...option.Option) error
- func (gen *GRPCServiceGenerator) Update(protoPath string, layout directory.GRPCServiceLayout, opts ...option.Option) error
- type ProtobufServiceGenerator
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 ¶
func (gen *GRPCServiceGenerator) Init(layout directory.GRPCServiceLayout, opts ...option.Option) error
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