Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterGroupServiceServer(s grpc.ServiceRegistrar, srv GroupServiceServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type Empty
- type GetGroupRequest
- type GetUserRequest
- type Group
- func (x *Group) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
- func (x Group) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value
- func (x *Group) AttributeTypes() map[string]attr.Type
- func (*Group) Descriptor() ([]byte, []int)deprecated
- func (x *Group) Equal(candidate attr.Type) bool
- func (x *Group) GetEmail() string
- func (x *Group) GetMaintainer() *User
- func (x *Group) GetName() string
- func (x *Group) GetUsers() []*User
- func (x *Group) GetUsersNames() []string
- func (*Group) ProtoMessage()
- func (x *Group) ProtoReflect() protoreflect.Message
- func (x *Group) Reset()
- func (x *Group) ResourceSchema() map[string]rschema.Attribute
- func (x *Group) String() string
- func (x *Group) TerraformType(ctx context.Context) tftypes.Type
- func (x *Group) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (x *Group) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (x *Group) ValueType(ctx context.Context) attr.Value
- func (x *Group) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes
- type GroupServiceClient
- type GroupServiceServer
- type Groups
- func (x *Groups) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
- func (x Groups) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value
- func (x *Groups) AttributeTypes() map[string]attr.Type
- func (x *Groups) DatasourceSchema() map[string]dschema.Attribute
- func (*Groups) Descriptor() ([]byte, []int)deprecated
- func (x *Groups) Equal(candidate attr.Type) bool
- func (x *Groups) GetGroups() []*Group
- func (*Groups) ProtoMessage()
- func (x *Groups) ProtoReflect() protoreflect.Message
- func (x *Groups) Reset()
- func (x *Groups) String() string
- func (x *Groups) TerraformType(ctx context.Context) tftypes.Type
- func (x *Groups) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (x *Groups) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (x *Groups) ValueType(ctx context.Context) attr.Value
- func (x *Groups) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes
- type ProviderModel
- func (x *ProviderModel) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
- func (x ProviderModel) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value
- func (x *ProviderModel) AttributeTypes() map[string]attr.Type
- func (*ProviderModel) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderModel) Equal(candidate attr.Type) bool
- func (x *ProviderModel) GetEndpoint() string
- func (x *ProviderModel) GetKeyId() string
- func (x *ProviderModel) GetSecretKey() string
- func (*ProviderModel) ProtoMessage()
- func (x *ProviderModel) ProtoReflect() protoreflect.Message
- func (x *ProviderModel) ProviderSchema() map[string]pschema.Attribute
- func (x *ProviderModel) Reset()
- func (x *ProviderModel) String() string
- func (x *ProviderModel) TerraformType(ctx context.Context) tftypes.Type
- func (x *ProviderModel) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (x *ProviderModel) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (x *ProviderModel) ValueType(ctx context.Context) attr.Value
- func (x *ProviderModel) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes
- type UnimplementedGroupServiceServer
- func (UnimplementedGroupServiceServer) CreateGroup(context.Context, *Group) (*Group, error)
- func (UnimplementedGroupServiceServer) DeleteGroup(context.Context, *Group) (*Empty, error)
- func (UnimplementedGroupServiceServer) GetGroup(context.Context, *GetGroupRequest) (*Group, error)
- func (UnimplementedGroupServiceServer) ListGroups(context.Context, *Empty) (*Groups, error)
- func (UnimplementedGroupServiceServer) UpdateGroup(context.Context, *Group) (*Group, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *User) (*User, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *User) (*Empty, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*User, error)
- func (UnimplementedUserServiceServer) ListUsers(context.Context, *Empty) (*Users, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *User) (*User, error)
- type UnsafeGroupServiceServer
- type UnsafeUserServiceServer
- type User
- func (x *User) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
- func (x User) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value
- func (x *User) AttributeTypes() map[string]attr.Type
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) Equal(candidate attr.Type) bool
- func (x *User) GetEmail() string
- func (x *User) GetUsername() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) ResourceSchema() map[string]rschema.Attribute
- func (x *User) String() string
- func (x *User) TerraformType(ctx context.Context) tftypes.Type
- func (x *User) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (x *User) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (x *User) ValueType(ctx context.Context) attr.Value
- func (x *User) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes
- type UserServiceClient
- type UserServiceServer
- type Users
- func (x *Users) ApplyTerraform5AttributePathStep(step tftypes.AttributePathStep) (interface{}, error)
- func (x Users) AttributeDefaultValues(ctx context.Context) map[string]tftypes.Value
- func (x *Users) AttributeTypes() map[string]attr.Type
- func (x *Users) DatasourceSchema() map[string]dschema.Attribute
- func (*Users) Descriptor() ([]byte, []int)deprecated
- func (x *Users) Equal(candidate attr.Type) bool
- func (x *Users) GetUsers() []*User
- func (*Users) ProtoMessage()
- func (x *Users) ProtoReflect() protoreflect.Message
- func (x *Users) Reset()
- func (x *Users) String() string
- func (x *Users) TerraformType(ctx context.Context) tftypes.Type
- func (x *Users) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (x *Users) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (x *Users) ValueType(ctx context.Context) attr.Value
- func (x *Users) WithAttributeTypes(typs map[string]attr.Type) attr.TypeWithAttributeTypes
Constants ¶
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" )
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 ¶
var File_example_proto protoreflect.FileDescriptor
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)
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) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
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 (*Group) Descriptor
deprecated
func (*Group) GetMaintainer ¶
func (*Group) GetUsersNames ¶
func (*Group) ProtoMessage ¶
func (*Group) ProtoMessage()
func (*Group) ProtoReflect ¶
func (x *Group) ProtoReflect() protoreflect.Message
func (*Group) ValueFromObject ¶
func (x *Group) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (*Group) ValueFromTerraform ¶
func (*Group) WithAttributeTypes ¶
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.
func NewGroupServiceClient ¶
func NewGroupServiceClient(cc grpc.ClientConnInterface) GroupServiceClient
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 (*Groups) Descriptor
deprecated
func (*Groups) ProtoMessage ¶
func (*Groups) ProtoMessage()
func (*Groups) ProtoReflect ¶
func (x *Groups) ProtoReflect() protoreflect.Message
func (*Groups) ValueFromObject ¶
func (x *Groups) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (*Groups) ValueFromTerraform ¶
func (*Groups) WithAttributeTypes ¶
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 (*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) 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 (x *ProviderModel) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (*ProviderModel) ValueFromTerraform ¶
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) GetGroup(context.Context, *GetGroupRequest) (*Group, error)
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) GetUser(context.Context, *GetUserRequest) (*User, error)
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 (*User) Descriptor
deprecated
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) ValueFromObject ¶
func (x *User) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (*User) ValueFromTerraform ¶
func (*User) WithAttributeTypes ¶
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.
func NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
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 (*Users) Descriptor
deprecated
func (*Users) ProtoMessage ¶
func (*Users) ProtoMessage()
func (*Users) ProtoReflect ¶
func (x *Users) ProtoReflect() protoreflect.Message
func (*Users) ValueFromObject ¶
func (x *Users) ValueFromObject(ctx context.Context, obj basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)