pb

package
v0.0.0-...-42dd4d3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserService_GetUser_FullMethodName    = "/example.UserService/GetUser"
	UserService_CreateUser_FullMethodName = "/example.UserService/CreateUser"
	UserService_UpdateUser_FullMethodName = "/example.UserService/UpdateUser"
	UserService_DeleteUser_FullMethodName = "/example.UserService/DeleteUser"
	UserService_ListUsers_FullMethodName  = "/example.UserService/ListUsers"
)
View Source
const (
	GroupService_GetGroup_FullMethodName    = "/example.GroupService/GetGroup"
	GroupService_CreateGroup_FullMethodName = "/example.GroupService/CreateGroup"
	GroupService_UpdateGroup_FullMethodName = "/example.GroupService/UpdateGroup"
	GroupService_DeleteGroup_FullMethodName = "/example.GroupService/DeleteGroup"
	GroupService_ListGroups_FullMethodName  = "/example.GroupService/ListGroups"
)

Variables

View Source
var File_example_proto protoreflect.FileDescriptor
View Source
var GroupService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "example.GroupService",
	HandlerType: (*GroupServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetGroup",
			Handler:    _GroupService_GetGroup_Handler,
		},
		{
			MethodName: "CreateGroup",
			Handler:    _GroupService_CreateGroup_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _GroupService_UpdateGroup_Handler,
		},
		{
			MethodName: "DeleteGroup",
			Handler:    _GroupService_DeleteGroup_Handler,
		},
		{
			MethodName: "ListGroups",
			Handler:    _GroupService_ListGroups_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "example.proto",
}

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

View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "example.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "DeleteUser",
			Handler:    _UserService_DeleteUser_Handler,
		},
		{
			MethodName: "ListUsers",
			Handler:    _UserService_ListUsers_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "example.proto",
}

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

Functions

func RegisterGroupServiceServer

func RegisterGroupServiceServer(s grpc.ServiceRegistrar, srv GroupServiceServer)

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetGroupRequest

type GetGroupRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupRequest) Descriptor deprecated

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

Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.

func (*GetGroupRequest) GetName

func (x *GetGroupRequest) GetName() string

func (*GetGroupRequest) ProtoMessage

func (*GetGroupRequest) ProtoMessage()

func (*GetGroupRequest) ProtoReflect

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

func (*GetGroupRequest) Reset

func (x *GetGroupRequest) Reset()

func (*GetGroupRequest) String

func (x *GetGroupRequest) String() string

type GetUserRequest

type GetUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetUsername

func (x *GetUserRequest) GetUsername() string

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

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

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type Group

type Group struct {
	Name       string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" tfsdk:"name"`
	Email      *string  `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty" tfsdk:"email"` // group email address
	Maintainer *User    `protobuf:"bytes,3,opt,name=maintainer,proto3" json:"maintainer,omitempty" tfsdk:"-"` // this will be skipped in provider
	Users      []*User  `protobuf:"bytes,4,rep,name=users,proto3" json:"users,omitempty" tfsdk:"-"`           // this will be skipped in provider
	UsersNames []string `protobuf:"bytes,5,rep,name=users_names,json=usersNames,proto3" json:"users_names,omitempty" tfsdk:"users"`
	// contains filtered or unexported fields
}

terraform resource

func (*Group) ApplyTerraform5AttributePathStep

func (x *Group) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)

func (Group) AttributeDefaultValues

func (x Group) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value

func (*Group) AttributeTypes

func (x *Group) AttributeTypes() map[string]attr.Type

func (*Group) Descriptor deprecated

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

Deprecated: Use Group.ProtoReflect.Descriptor instead.

func (*Group) Equal

func (x *Group) Equal(candidate attr.Type) bool

func (*Group) GetEmail

func (x *Group) GetEmail() string

func (*Group) GetMaintainer

func (x *Group) GetMaintainer() *User

func (*Group) GetName

func (x *Group) GetName() string

func (*Group) GetUsers

func (x *Group) GetUsers() []*User

func (*Group) GetUsersNames

func (x *Group) GetUsersNames() []string

func (*Group) ProtoMessage

func (*Group) ProtoMessage()

func (*Group) ProtoReflect

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

func (*Group) Reset

func (x *Group) Reset()

func (*Group) ResourceSchema

func (x *Group) ResourceSchema() map[string]rschema.Attribute

func (*Group) String

func (x *Group) String() string

func (*Group) TerraformType

func (x *Group) TerraformType(ctx context.Context) tftypes.Type

func (*Group) ValueFromObject

func (*Group) ValueFromTerraform

func (x *Group) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (*Group) ValueType

func (x *Group) ValueType(ctx context.Context) attr.Value

func (*Group) WithAttributeTypes

func (x *Group) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes

type GroupServiceClient

type GroupServiceClient interface {
	GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*Group, error)
	CreateGroup(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Group, error)
	UpdateGroup(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Group, error)
	DeleteGroup(ctx context.Context, in *Group, opts ...grpc.CallOption) (*Empty, error)
	ListGroups(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Groups, error)
}

GroupServiceClient is the client API for GroupService 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.

type GroupServiceServer

type GroupServiceServer interface {
	GetGroup(context.Context, *GetGroupRequest) (*Group, error)
	CreateGroup(context.Context, *Group) (*Group, error)
	UpdateGroup(context.Context, *Group) (*Group, error)
	DeleteGroup(context.Context, *Group) (*Empty, error)
	ListGroups(context.Context, *Empty) (*Groups, error)
	// contains filtered or unexported methods
}

GroupServiceServer is the server API for GroupService service. All implementations must embed UnimplementedGroupServiceServer for forward compatibility

type Groups

type Groups struct {
	Groups []*Group `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty" tfsdk:"groups"`
	// contains filtered or unexported fields
}

terraform datasource

func (*Groups) ApplyTerraform5AttributePathStep

func (x *Groups) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)

func (Groups) AttributeDefaultValues

func (x Groups) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value

func (*Groups) AttributeTypes

func (x *Groups) AttributeTypes() map[string]attr.Type

func (*Groups) DatasourceSchema

func (x *Groups) DatasourceSchema() map[string]dschema.Attribute

func (*Groups) Descriptor deprecated

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

Deprecated: Use Groups.ProtoReflect.Descriptor instead.

func (*Groups) Equal

func (x *Groups) Equal(candidate attr.Type) bool

func (*Groups) GetGroups

func (x *Groups) GetGroups() []*Group

func (*Groups) ProtoMessage

func (*Groups) ProtoMessage()

func (*Groups) ProtoReflect

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

func (*Groups) Reset

func (x *Groups) Reset()

func (*Groups) String

func (x *Groups) String() string

func (*Groups) TerraformType

func (x *Groups) TerraformType(ctx context.Context) tftypes.Type

func (*Groups) ValueFromObject

func (*Groups) ValueFromTerraform

func (x *Groups) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (*Groups) ValueType

func (x *Groups) ValueType(ctx context.Context) attr.Value

func (*Groups) WithAttributeTypes

func (x *Groups) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes

type ProviderModel

type ProviderModel struct {
	Endpoint  string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty" tfsdk:"endpoint"`
	KeyId     string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty" tfsdk:"key_id"`
	SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty" tfsdk:"secret_key"`
	// contains filtered or unexported fields
}

func (*ProviderModel) ApplyTerraform5AttributePathStep

func (x *ProviderModel) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)

func (ProviderModel) AttributeDefaultValues

func (x ProviderModel) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value

func (*ProviderModel) AttributeTypes

func (x *ProviderModel) AttributeTypes() map[string]attr.Type

func (*ProviderModel) Descriptor deprecated

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

Deprecated: Use ProviderModel.ProtoReflect.Descriptor instead.

func (*ProviderModel) Equal

func (x *ProviderModel) Equal(candidate attr.Type) bool

func (*ProviderModel) GetEndpoint

func (x *ProviderModel) GetEndpoint() string

func (*ProviderModel) GetKeyId

func (x *ProviderModel) GetKeyId() string

func (*ProviderModel) GetSecretKey

func (x *ProviderModel) GetSecretKey() string

func (*ProviderModel) ProtoMessage

func (*ProviderModel) ProtoMessage()

func (*ProviderModel) ProtoReflect

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

func (*ProviderModel) ProviderSchema

func (x *ProviderModel) ProviderSchema() map[string]pschema.Attribute

func (*ProviderModel) Reset

func (x *ProviderModel) Reset()

func (*ProviderModel) String

func (x *ProviderModel) String() string

func (*ProviderModel) TerraformType

func (x *ProviderModel) TerraformType(ctx context.Context) tftypes.Type

func (*ProviderModel) ValueFromObject

func (*ProviderModel) ValueFromTerraform

func (x *ProviderModel) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (*ProviderModel) ValueType

func (x *ProviderModel) ValueType(ctx context.Context) attr.Value

func (*ProviderModel) WithAttributeTypes

func (x *ProviderModel) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes

type UnimplementedGroupServiceServer

type UnimplementedGroupServiceServer struct {
}

UnimplementedGroupServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedGroupServiceServer) CreateGroup

func (UnimplementedGroupServiceServer) DeleteGroup

func (UnimplementedGroupServiceServer) GetGroup

func (UnimplementedGroupServiceServer) ListGroups

func (UnimplementedGroupServiceServer) UpdateGroup

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUsers

func (UnimplementedUserServiceServer) UpdateUser

type UnsafeGroupServiceServer

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

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

type UnsafeUserServiceServer

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

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

type User

type User struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty" tfsdk:"username"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty" tfsdk:"email"` // user email address
	// contains filtered or unexported fields
}

terraform resource

func (*User) ApplyTerraform5AttributePathStep

func (x *User) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)

func (User) AttributeDefaultValues

func (x User) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value

func (*User) AttributeTypes

func (x *User) AttributeTypes() map[string]attr.Type

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) Equal

func (x *User) Equal(candidate attr.Type) bool

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) ResourceSchema

func (x *User) ResourceSchema() map[string]rschema.Attribute

func (*User) String

func (x *User) String() string

func (*User) TerraformType

func (x *User) TerraformType(ctx context.Context) tftypes.Type

func (*User) ValueFromObject

func (*User) ValueFromTerraform

func (x *User) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (*User) ValueType

func (x *User) ValueType(ctx context.Context) attr.Value

func (*User) WithAttributeTypes

func (x *User) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes

type UserServiceClient

type UserServiceClient interface {
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*User, error)
	CreateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error)
	UpdateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error)
	DeleteUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*Empty, error)
	ListUsers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Users, error)
}

UserServiceClient is the client API for UserService 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.

type UserServiceServer

type UserServiceServer interface {
	GetUser(context.Context, *GetUserRequest) (*User, error)
	CreateUser(context.Context, *User) (*User, error)
	UpdateUser(context.Context, *User) (*User, error)
	DeleteUser(context.Context, *User) (*Empty, error)
	ListUsers(context.Context, *Empty) (*Users, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type Users

type Users struct {
	Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty" tfsdk:"users"`
	// contains filtered or unexported fields
}

terraform datasource

func (*Users) ApplyTerraform5AttributePathStep

func (x *Users) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)

func (Users) AttributeDefaultValues

func (x Users) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value

func (*Users) AttributeTypes

func (x *Users) AttributeTypes() map[string]attr.Type

func (*Users) DatasourceSchema

func (x *Users) DatasourceSchema() map[string]dschema.Attribute

func (*Users) Descriptor deprecated

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

Deprecated: Use Users.ProtoReflect.Descriptor instead.

func (*Users) Equal

func (x *Users) Equal(candidate attr.Type) bool

func (*Users) GetUsers

func (x *Users) GetUsers() []*User

func (*Users) ProtoMessage

func (*Users) ProtoMessage()

func (*Users) ProtoReflect

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

func (*Users) Reset

func (x *Users) Reset()

func (*Users) String

func (x *Users) String() string

func (*Users) TerraformType

func (x *Users) TerraformType(ctx context.Context) tftypes.Type

func (*Users) ValueFromObject

func (*Users) ValueFromTerraform

func (x *Users) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (*Users) ValueType

func (x *Users) ValueType(ctx context.Context) attr.Value

func (*Users) WithAttributeTypes

func (x *Users) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes

Jump to

Keyboard shortcuts

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