codegen

package
v3.61.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pulumi_codegen_mapper_proto protoreflect.FileDescriptor
View Source
var Mapper_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "codegen.Mapper",
	HandlerType: (*MapperServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMapping",
			Handler:    _Mapper_GetMapping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pulumi/codegen/mapper.proto",
}

Mapper_ServiceDesc is the grpc.ServiceDesc for Mapper service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMapperServer

func RegisterMapperServer(s grpc.ServiceRegistrar, srv MapperServer)

Types

type GetMappingRequest

type GetMappingRequest struct {

	// the provider name for the mapping being requested.
	Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	// contains filtered or unexported fields
}

GetMappingRequest allows the engine to return ecosystem specific information to allow the converter to be convert provider types from a source markup to Pulumi.

func (*GetMappingRequest) Descriptor deprecated

func (*GetMappingRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetMappingRequest.ProtoReflect.Descriptor instead.

func (*GetMappingRequest) GetProvider

func (x *GetMappingRequest) GetProvider() string

func (*GetMappingRequest) ProtoMessage

func (*GetMappingRequest) ProtoMessage()

func (*GetMappingRequest) ProtoReflect

func (x *GetMappingRequest) ProtoReflect() protoreflect.Message

func (*GetMappingRequest) Reset

func (x *GetMappingRequest) Reset()

func (*GetMappingRequest) String

func (x *GetMappingRequest) String() string

type GetMappingResponse

type GetMappingResponse struct {

	// the conversion plugin specific data (if any)
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

GetMappingResponse returns converter plugin specific data for the requested provider. This will normally be human readable JSON, but the engine doesn't mandate any form.

func (*GetMappingResponse) Descriptor deprecated

func (*GetMappingResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetMappingResponse.ProtoReflect.Descriptor instead.

func (*GetMappingResponse) GetData

func (x *GetMappingResponse) GetData() []byte

func (*GetMappingResponse) ProtoMessage

func (*GetMappingResponse) ProtoMessage()

func (*GetMappingResponse) ProtoReflect

func (x *GetMappingResponse) ProtoReflect() protoreflect.Message

func (*GetMappingResponse) Reset

func (x *GetMappingResponse) Reset()

func (*GetMappingResponse) String

func (x *GetMappingResponse) String() string

type MapperClient

type MapperClient interface {
	// GetMapping tries to find a mapping for the given provider.
	GetMapping(ctx context.Context, in *GetMappingRequest, opts ...grpc.CallOption) (*GetMappingResponse, error)
}

MapperClient is the client API for Mapper service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMapperClient

func NewMapperClient(cc grpc.ClientConnInterface) MapperClient

type MapperServer

type MapperServer interface {
	// GetMapping tries to find a mapping for the given provider.
	GetMapping(context.Context, *GetMappingRequest) (*GetMappingResponse, error)
	// contains filtered or unexported methods
}

MapperServer is the server API for Mapper service. All implementations must embed UnimplementedMapperServer for forward compatibility

type UnimplementedMapperServer

type UnimplementedMapperServer struct {
}

UnimplementedMapperServer must be embedded to have forward compatible implementations.

func (UnimplementedMapperServer) GetMapping

type UnsafeMapperServer

type UnsafeMapperServer interface {
	// contains filtered or unexported methods
}

UnsafeMapperServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MapperServer will result in compilation errors.

Jump to

Keyboard shortcuts

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