scaffold

package
v0.0.0-...-a0cb2aa Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package scaffold contains methods and helpers for code scaffolding

Package scaffold contains methods and helpers for code scaffolding

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(s *Scaffold)

Option sets options for Scaffold instance

func WithOutputLocation

func WithOutputLocation(location string) Option

WithOutputLocation allows to specify location where generated files will be located. If empty string is provided - then files will be created in current directory.

type Scaffold

type Scaffold struct {
	// contains filtered or unexported fields
}

Scaffold contains parameters that required for code scaffolding

func New

func New(opts ...Option) *Scaffold

New returns instance of a Scaffold

func (*Scaffold) BuildGrpcService

func (s *Scaffold) BuildGrpcService(customResource crd.CRD) error

BuildGrpcService is building protobuf package with gRPC CRUD for the provided CustomResource

func (*Scaffold) BuildStubs

func (s *Scaffold) BuildStubs(customResource crd.CRD) error

BuildStubs is building protobuf stubs with gRPC CRUD from protobuf definitions of provided CustomResource

Jump to

Keyboard shortcuts

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