Documentation ¶
Index ¶
- Constants
- func AddCreate(r *schema.Resource, resourceMb *builder.MessageBuilder, ...) error
- func AddDelete(r *schema.Resource, resourceMb *builder.MessageBuilder, ...) error
- func AddRead(r *schema.Resource, resourceMb *builder.MessageBuilder, ...) error
- func AddResource(r *schema.Resource, fb *builder.FileBuilder, sb *builder.ServiceBuilder) error
- func GeneratedResourceMessage(r *schema.Resource) (*builder.MessageBuilder, error)
- func WriteServiceToProto(s *schema.Service) ([]byte, error)
Constants ¶
View Source
const FIELD_NAME_ID = "id"
View Source
const FIELD_NAME_PATH = "path"
View Source
const FIELD_NAME_RESOURCE = "resource"
Variables ¶
This section is empty.
Functions ¶
func AddCreate ¶
func AddCreate(r *schema.Resource, resourceMb *builder.MessageBuilder, fb *builder.FileBuilder, sb *builder.ServiceBuilder) error
func AddDelete ¶
func AddDelete(r *schema.Resource, resourceMb *builder.MessageBuilder, fb *builder.FileBuilder, sb *builder.ServiceBuilder) error
func AddRead ¶
func AddRead(r *schema.Resource, resourceMb *builder.MessageBuilder, fb *builder.FileBuilder, sb *builder.ServiceBuilder) error
func AddResource ¶
func AddResource(r *schema.Resource, fb *builder.FileBuilder, sb *builder.ServiceBuilder) error
AddResource adds a resource's protos and RPCs to a file and service.
func GeneratedResourceMessage ¶
func GeneratedResourceMessage(r *schema.Resource) (*builder.MessageBuilder, error)
GenerateResourceMesssage adds the resource message.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.