v1

package
v0.6.310 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_github_com_metaprov_modelaapi_services_license_v1_license_proto protoreflect.FileDescriptor
View Source
var LicenseService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "github.com.metaprov.modelaapi.services.license.v1.LicenseService",
	HandlerType: (*LicenseServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListLicenses",
			Handler:    _LicenseService_ListLicenses_Handler,
		},
		{
			MethodName: "CreateLicense",
			Handler:    _LicenseService_CreateLicense_Handler,
		},
		{
			MethodName: "CreateLicenseFromKey",
			Handler:    _LicenseService_CreateLicenseFromKey_Handler,
		},
		{
			MethodName: "GetLicense",
			Handler:    _LicenseService_GetLicense_Handler,
		},
		{
			MethodName: "UpdateLicense",
			Handler:    _LicenseService_UpdateLicense_Handler,
		},
		{
			MethodName: "DeleteLicense",
			Handler:    _LicenseService_DeleteLicense_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "github.com/metaprov/modelaapi/services/license/v1/license.proto",
}

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

Functions

func RegisterLicenseServiceServer

func RegisterLicenseServiceServer(s grpc.ServiceRegistrar, srv LicenseServiceServer)

Types

type CreateLicenseFromKeyRequest

type CreateLicenseFromKeyRequest struct {
	Key    string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Tenant string `protobuf:"bytes,2,opt,name=tenant,proto3" json:"tenant,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLicenseFromKeyRequest) Descriptor deprecated

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

Deprecated: Use CreateLicenseFromKeyRequest.ProtoReflect.Descriptor instead.

func (*CreateLicenseFromKeyRequest) GetKey

func (x *CreateLicenseFromKeyRequest) GetKey() string

func (*CreateLicenseFromKeyRequest) GetTenant

func (x *CreateLicenseFromKeyRequest) GetTenant() string

func (*CreateLicenseFromKeyRequest) ProtoMessage

func (*CreateLicenseFromKeyRequest) ProtoMessage()

func (*CreateLicenseFromKeyRequest) ProtoReflect

func (*CreateLicenseFromKeyRequest) Reset

func (x *CreateLicenseFromKeyRequest) Reset()

func (*CreateLicenseFromKeyRequest) String

func (x *CreateLicenseFromKeyRequest) String() string

type CreateLicenseRequest

type CreateLicenseRequest struct {
	License *v1alpha1.License `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateLicenseRequest) Descriptor deprecated

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

Deprecated: Use CreateLicenseRequest.ProtoReflect.Descriptor instead.

func (*CreateLicenseRequest) GetLicense added in v0.4.472

func (x *CreateLicenseRequest) GetLicense() *v1alpha1.License

func (*CreateLicenseRequest) ProtoMessage

func (*CreateLicenseRequest) ProtoMessage()

func (*CreateLicenseRequest) ProtoReflect

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

func (*CreateLicenseRequest) Reset

func (x *CreateLicenseRequest) Reset()

func (*CreateLicenseRequest) String

func (x *CreateLicenseRequest) String() string

type CreateLicenseResponse

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

func (*CreateLicenseResponse) Descriptor deprecated

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

Deprecated: Use CreateLicenseResponse.ProtoReflect.Descriptor instead.

func (*CreateLicenseResponse) ProtoMessage

func (*CreateLicenseResponse) ProtoMessage()

func (*CreateLicenseResponse) ProtoReflect

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

func (*CreateLicenseResponse) Reset

func (x *CreateLicenseResponse) Reset()

func (*CreateLicenseResponse) String

func (x *CreateLicenseResponse) String() string

type DeleteLicenseRequest

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

func (*DeleteLicenseRequest) Descriptor deprecated

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

Deprecated: Use DeleteLicenseRequest.ProtoReflect.Descriptor instead.

func (*DeleteLicenseRequest) GetName

func (x *DeleteLicenseRequest) GetName() string

func (*DeleteLicenseRequest) GetNamespace

func (x *DeleteLicenseRequest) GetNamespace() string

func (*DeleteLicenseRequest) ProtoMessage

func (*DeleteLicenseRequest) ProtoMessage()

func (*DeleteLicenseRequest) ProtoReflect

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

func (*DeleteLicenseRequest) Reset

func (x *DeleteLicenseRequest) Reset()

func (*DeleteLicenseRequest) String

func (x *DeleteLicenseRequest) String() string

type DeleteLicenseResponse

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

func (*DeleteLicenseResponse) Descriptor deprecated

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

Deprecated: Use DeleteLicenseResponse.ProtoReflect.Descriptor instead.

func (*DeleteLicenseResponse) ProtoMessage

func (*DeleteLicenseResponse) ProtoMessage()

func (*DeleteLicenseResponse) ProtoReflect

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

func (*DeleteLicenseResponse) Reset

func (x *DeleteLicenseResponse) Reset()

func (*DeleteLicenseResponse) String

func (x *DeleteLicenseResponse) String() string

type GetLicenseNamespacesRequest

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

func (*GetLicenseNamespacesRequest) Descriptor deprecated

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

Deprecated: Use GetLicenseNamespacesRequest.ProtoReflect.Descriptor instead.

func (*GetLicenseNamespacesRequest) GetName

func (x *GetLicenseNamespacesRequest) GetName() string

func (*GetLicenseNamespacesRequest) GetNamespace

func (x *GetLicenseNamespacesRequest) GetNamespace() string

func (*GetLicenseNamespacesRequest) ProtoMessage

func (*GetLicenseNamespacesRequest) ProtoMessage()

func (*GetLicenseNamespacesRequest) ProtoReflect

func (*GetLicenseNamespacesRequest) Reset

func (x *GetLicenseNamespacesRequest) Reset()

func (*GetLicenseNamespacesRequest) String

func (x *GetLicenseNamespacesRequest) String() string

type GetLicenseNamespacesResponse

type GetLicenseNamespacesResponse struct {
	Namespaces []*v1.NamespaceInfo `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLicenseNamespacesResponse) Descriptor deprecated

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

Deprecated: Use GetLicenseNamespacesResponse.ProtoReflect.Descriptor instead.

func (*GetLicenseNamespacesResponse) GetNamespaces

func (x *GetLicenseNamespacesResponse) GetNamespaces() []*v1.NamespaceInfo

func (*GetLicenseNamespacesResponse) ProtoMessage

func (*GetLicenseNamespacesResponse) ProtoMessage()

func (*GetLicenseNamespacesResponse) ProtoReflect

func (*GetLicenseNamespacesResponse) Reset

func (x *GetLicenseNamespacesResponse) Reset()

func (*GetLicenseNamespacesResponse) String

type GetLicenseRequest

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

func (*GetLicenseRequest) Descriptor deprecated

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

Deprecated: Use GetLicenseRequest.ProtoReflect.Descriptor instead.

func (*GetLicenseRequest) GetName

func (x *GetLicenseRequest) GetName() string

func (*GetLicenseRequest) GetNamespace

func (x *GetLicenseRequest) GetNamespace() string

func (*GetLicenseRequest) ProtoMessage

func (*GetLicenseRequest) ProtoMessage()

func (*GetLicenseRequest) ProtoReflect

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

func (*GetLicenseRequest) Reset

func (x *GetLicenseRequest) Reset()

func (*GetLicenseRequest) String

func (x *GetLicenseRequest) String() string

type GetLicenseResponse

type GetLicenseResponse struct {
	License *v1alpha1.License `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"`
	Yaml    string            `protobuf:"bytes,2,opt,name=yaml,proto3" json:"yaml,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLicenseResponse) Descriptor deprecated

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

Deprecated: Use GetLicenseResponse.ProtoReflect.Descriptor instead.

func (*GetLicenseResponse) GetLicense

func (x *GetLicenseResponse) GetLicense() *v1alpha1.License

func (*GetLicenseResponse) GetYaml

func (x *GetLicenseResponse) GetYaml() string

func (*GetLicenseResponse) ProtoMessage

func (*GetLicenseResponse) ProtoMessage()

func (*GetLicenseResponse) ProtoReflect

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

func (*GetLicenseResponse) Reset

func (x *GetLicenseResponse) Reset()

func (*GetLicenseResponse) String

func (x *GetLicenseResponse) String() string

type LicenseResponse

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

func (*LicenseResponse) Descriptor deprecated

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

Deprecated: Use LicenseResponse.ProtoReflect.Descriptor instead.

func (*LicenseResponse) ProtoMessage

func (*LicenseResponse) ProtoMessage()

func (*LicenseResponse) ProtoReflect

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

func (*LicenseResponse) Reset

func (x *LicenseResponse) Reset()

func (*LicenseResponse) String

func (x *LicenseResponse) String() string

type LicenseServiceClient

type LicenseServiceClient interface {
	ListLicenses(ctx context.Context, in *ListLicensesRequest, opts ...grpc.CallOption) (*ListLicensesResponse, error)
	CreateLicense(ctx context.Context, in *CreateLicenseRequest, opts ...grpc.CallOption) (*CreateLicenseResponse, error)
	CreateLicenseFromKey(ctx context.Context, in *CreateLicenseFromKeyRequest, opts ...grpc.CallOption) (*CreateLicenseResponse, error)
	GetLicense(ctx context.Context, in *GetLicenseRequest, opts ...grpc.CallOption) (*GetLicenseResponse, error)
	UpdateLicense(ctx context.Context, in *UpdateLicenseRequest, opts ...grpc.CallOption) (*UpdateLicenseResponse, error)
	DeleteLicense(ctx context.Context, in *DeleteLicenseRequest, opts ...grpc.CallOption) (*DeleteLicenseResponse, error)
}

LicenseServiceClient is the client API for LicenseService 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 LicenseServiceServer

type LicenseServiceServer interface {
	ListLicenses(context.Context, *ListLicensesRequest) (*ListLicensesResponse, error)
	CreateLicense(context.Context, *CreateLicenseRequest) (*CreateLicenseResponse, error)
	CreateLicenseFromKey(context.Context, *CreateLicenseFromKeyRequest) (*CreateLicenseResponse, error)
	GetLicense(context.Context, *GetLicenseRequest) (*GetLicenseResponse, error)
	UpdateLicense(context.Context, *UpdateLicenseRequest) (*UpdateLicenseResponse, error)
	DeleteLicense(context.Context, *DeleteLicenseRequest) (*DeleteLicenseResponse, error)
	// contains filtered or unexported methods
}

LicenseServiceServer is the server API for LicenseService service. All implementations must embed UnimplementedLicenseServiceServer for forward compatibility

type ListLicensesRequest

type ListLicensesRequest struct {
	Namespace string            `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
	Labels    map[string]string `` /* 153-byte string literal not displayed */
	PageSize  int32             `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	PageToken string            `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	OrderBy   string            `protobuf:"bytes,5,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLicensesRequest) Descriptor deprecated

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

Deprecated: Use ListLicensesRequest.ProtoReflect.Descriptor instead.

func (*ListLicensesRequest) GetLabels

func (x *ListLicensesRequest) GetLabels() map[string]string

func (*ListLicensesRequest) GetNamespace

func (x *ListLicensesRequest) GetNamespace() string

func (*ListLicensesRequest) GetOrderBy added in v0.4.414

func (x *ListLicensesRequest) GetOrderBy() string

func (*ListLicensesRequest) GetPageSize added in v0.4.414

func (x *ListLicensesRequest) GetPageSize() int32

func (*ListLicensesRequest) GetPageToken added in v0.4.414

func (x *ListLicensesRequest) GetPageToken() string

func (*ListLicensesRequest) ProtoMessage

func (*ListLicensesRequest) ProtoMessage()

func (*ListLicensesRequest) ProtoReflect

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

func (*ListLicensesRequest) Reset

func (x *ListLicensesRequest) Reset()

func (*ListLicensesRequest) String

func (x *ListLicensesRequest) String() string

type ListLicensesResponse

type ListLicensesResponse struct {
	Licences      *v1alpha1.LicenseList `protobuf:"bytes,1,opt,name=licences,proto3" json:"licences,omitempty"`
	NextPageToken string                `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLicensesResponse) Descriptor deprecated

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

Deprecated: Use ListLicensesResponse.ProtoReflect.Descriptor instead.

func (*ListLicensesResponse) GetLicences added in v0.4.472

func (x *ListLicensesResponse) GetLicences() *v1alpha1.LicenseList

func (*ListLicensesResponse) GetNextPageToken added in v0.4.472

func (x *ListLicensesResponse) GetNextPageToken() string

func (*ListLicensesResponse) ProtoMessage

func (*ListLicensesResponse) ProtoMessage()

func (*ListLicensesResponse) ProtoReflect

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

func (*ListLicensesResponse) Reset

func (x *ListLicensesResponse) Reset()

func (*ListLicensesResponse) String

func (x *ListLicensesResponse) String() string

type UnimplementedLicenseServiceServer

type UnimplementedLicenseServiceServer struct {
}

UnimplementedLicenseServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLicenseServiceServer) CreateLicense

func (UnimplementedLicenseServiceServer) CreateLicenseFromKey

func (UnimplementedLicenseServiceServer) DeleteLicense

func (UnimplementedLicenseServiceServer) GetLicense

func (UnimplementedLicenseServiceServer) ListLicenses

func (UnimplementedLicenseServiceServer) UpdateLicense

type UnsafeLicenseServiceServer added in v0.4.687

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

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

type UpdateLicenseRequest

type UpdateLicenseRequest struct {
	License   *v1alpha1.License     `protobuf:"bytes,1,opt,name=license,proto3" json:"license,omitempty"`
	FieldMask *field_mask.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateLicenseRequest) Descriptor deprecated

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

Deprecated: Use UpdateLicenseRequest.ProtoReflect.Descriptor instead.

func (*UpdateLicenseRequest) GetFieldMask added in v0.4.422

func (x *UpdateLicenseRequest) GetFieldMask() *field_mask.FieldMask

func (*UpdateLicenseRequest) GetLicense added in v0.4.475

func (x *UpdateLicenseRequest) GetLicense() *v1alpha1.License

func (*UpdateLicenseRequest) ProtoMessage

func (*UpdateLicenseRequest) ProtoMessage()

func (*UpdateLicenseRequest) ProtoReflect

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

func (*UpdateLicenseRequest) Reset

func (x *UpdateLicenseRequest) Reset()

func (*UpdateLicenseRequest) String

func (x *UpdateLicenseRequest) String() string

type UpdateLicenseResponse

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

func (*UpdateLicenseResponse) Descriptor deprecated

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

Deprecated: Use UpdateLicenseResponse.ProtoReflect.Descriptor instead.

func (*UpdateLicenseResponse) ProtoMessage

func (*UpdateLicenseResponse) ProtoMessage()

func (*UpdateLicenseResponse) ProtoReflect

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

func (*UpdateLicenseResponse) Reset

func (x *UpdateLicenseResponse) Reset()

func (*UpdateLicenseResponse) String

func (x *UpdateLicenseResponse) String() string

Jump to

Keyboard shortcuts

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