downloadv1

package
v0.0.0-...-94cd6a6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DownloadService_ListTemplateDirectDownloadCertificates_FullMethodName     = "/cloudstack.management.direct.download.v1.DownloadService/ListTemplateDirectDownloadCertificates"
	DownloadService_ProvisionTemplateDirectDownloadCertificate_FullMethodName = "/cloudstack.management.direct.download.v1.DownloadService/ProvisionTemplateDirectDownloadCertificate"
	DownloadService_RevokeTemplateDirectDownloadCertificate_FullMethodName    = "/cloudstack.management.direct.download.v1.DownloadService/RevokeTemplateDirectDownloadCertificate"
	DownloadService_UploadTemplateDirectDownloadCertificate_FullMethodName    = "/cloudstack.management.direct.download.v1.DownloadService/UploadTemplateDirectDownloadCertificate"
)

Variables

View Source
var DownloadService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudstack.management.direct.download.v1.DownloadService",
	HandlerType: (*DownloadServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListTemplateDirectDownloadCertificates",
			Handler:    _DownloadService_ListTemplateDirectDownloadCertificates_Handler,
		},
		{
			MethodName: "ProvisionTemplateDirectDownloadCertificate",
			Handler:    _DownloadService_ProvisionTemplateDirectDownloadCertificate_Handler,
		},
		{
			MethodName: "RevokeTemplateDirectDownloadCertificate",
			Handler:    _DownloadService_RevokeTemplateDirectDownloadCertificate_Handler,
		},
		{
			MethodName: "UploadTemplateDirectDownloadCertificate",
			Handler:    _DownloadService_UploadTemplateDirectDownloadCertificate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cloudstack/management/direct/download/v1/download.gen.proto",
}

DownloadService_ServiceDesc is the grpc.ServiceDesc for DownloadService 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 File_cloudstack_management_direct_download_v1_download_gen_proto protoreflect.FileDescriptor

Functions

func RegisterDownloadServiceServer

func RegisterDownloadServiceServer(s grpc.ServiceRegistrar, srv DownloadServiceServer)

Types

type DirectDownloadCertificate

type DirectDownloadCertificate struct {

	// The ID of the DirectDownloadCertificate
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The name of the DirectDownloadCertificate
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The display name of the DirectDownloadCertificate
	DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// The description of the DirectDownloadCertificate
	Description *string `protobuf:"bytes,4,opt,name=description" json:"description,omitempty"`
	// The date this entity was created
	Created *string `protobuf:"bytes,5,opt,name=created" json:"created,omitempty"`
	// contains filtered or unexported fields
}

DirectDownloadCertificate represents a DirectDownloadCertificate Item

func (*DirectDownloadCertificate) Descriptor deprecated

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

Deprecated: Use DirectDownloadCertificate.ProtoReflect.Descriptor instead.

func (*DirectDownloadCertificate) GetCreated

func (x *DirectDownloadCertificate) GetCreated() string

func (*DirectDownloadCertificate) GetDescription

func (x *DirectDownloadCertificate) GetDescription() string

func (*DirectDownloadCertificate) GetDisplayName

func (x *DirectDownloadCertificate) GetDisplayName() string

func (*DirectDownloadCertificate) GetId

func (x *DirectDownloadCertificate) GetId() string

func (*DirectDownloadCertificate) GetName

func (x *DirectDownloadCertificate) GetName() string

func (*DirectDownloadCertificate) ProtoMessage

func (*DirectDownloadCertificate) ProtoMessage()

func (*DirectDownloadCertificate) ProtoReflect

func (*DirectDownloadCertificate) Reset

func (x *DirectDownloadCertificate) Reset()

func (*DirectDownloadCertificate) String

func (x *DirectDownloadCertificate) String() string

type DownloadServiceClient

type DownloadServiceClient interface {
	// ListTemplateDirectDownloadCertificates List the uploaded certificates for direct download templates
	ListTemplateDirectDownloadCertificates(ctx context.Context, in *ListTemplateDirectDownloadCertificatesRequest, opts ...grpc.CallOption) (*ListTemplateDirectDownloadCertificatesResponse, error)
	// ProvisionTemplateDirectDownloadCertificate Provisions a host with a direct download certificate
	ProvisionTemplateDirectDownloadCertificate(ctx context.Context, in *ProvisionTemplateDirectDownloadCertificateRequest, opts ...grpc.CallOption) (*ProvisionTemplateDirectDownloadCertificateResponse, error)
	// RevokeTemplateDirectDownloadCertificate Revoke a direct download certificate from hosts in a zone
	RevokeTemplateDirectDownloadCertificate(ctx context.Context, in *RevokeTemplateDirectDownloadCertificateRequest, opts ...grpc.CallOption) (*RevokeTemplateDirectDownloadCertificateResponse, error)
	// UploadTemplateDirectDownloadCertificate Upload a certificate for HTTPS direct template download on KVM hosts
	UploadTemplateDirectDownloadCertificate(ctx context.Context, in *UploadTemplateDirectDownloadCertificateRequest, opts ...grpc.CallOption) (*UploadTemplateDirectDownloadCertificateResponse, error)
}

DownloadServiceClient is the client API for DownloadService 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.

DownloadService provides operations for managing Direct.Downloads

type DownloadServiceServer

type DownloadServiceServer interface {
	// ListTemplateDirectDownloadCertificates List the uploaded certificates for direct download templates
	ListTemplateDirectDownloadCertificates(context.Context, *ListTemplateDirectDownloadCertificatesRequest) (*ListTemplateDirectDownloadCertificatesResponse, error)
	// ProvisionTemplateDirectDownloadCertificate Provisions a host with a direct download certificate
	ProvisionTemplateDirectDownloadCertificate(context.Context, *ProvisionTemplateDirectDownloadCertificateRequest) (*ProvisionTemplateDirectDownloadCertificateResponse, error)
	// RevokeTemplateDirectDownloadCertificate Revoke a direct download certificate from hosts in a zone
	RevokeTemplateDirectDownloadCertificate(context.Context, *RevokeTemplateDirectDownloadCertificateRequest) (*RevokeTemplateDirectDownloadCertificateResponse, error)
	// UploadTemplateDirectDownloadCertificate Upload a certificate for HTTPS direct template download on KVM hosts
	UploadTemplateDirectDownloadCertificate(context.Context, *UploadTemplateDirectDownloadCertificateRequest) (*UploadTemplateDirectDownloadCertificateResponse, error)
	// contains filtered or unexported methods
}

DownloadServiceServer is the server API for DownloadService service. All implementations must embed UnimplementedDownloadServiceServer for forward compatibility.

DownloadService provides operations for managing Direct.Downloads

type ListTemplateDirectDownloadCertificatesRequest

type ListTemplateDirectDownloadCertificatesRequest struct {

	// list direct download certificate by ID
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// the zone where certificates are uploaded
	ZoneId *int64 `protobuf:"varint,2,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// if set to true: include the hosts where the certificate is uploaded to
	ListHosts *bool `protobuf:"varint,3,opt,name=list_hosts,json=listHosts" json:"list_hosts,omitempty"`
	// List by keyword
	Keyword      *string `protobuf:"bytes,4,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,5,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,6,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,7,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListTemplateDirectDownloadCertificatesRequest represents the parameters for list the uploaded certificates for direct download templates

func (*ListTemplateDirectDownloadCertificatesRequest) Descriptor deprecated

Deprecated: Use ListTemplateDirectDownloadCertificatesRequest.ProtoReflect.Descriptor instead.

func (*ListTemplateDirectDownloadCertificatesRequest) GetId

func (*ListTemplateDirectDownloadCertificatesRequest) GetKeyword

func (*ListTemplateDirectDownloadCertificatesRequest) GetListHosts

func (*ListTemplateDirectDownloadCertificatesRequest) GetPage

func (*ListTemplateDirectDownloadCertificatesRequest) GetPageSize

func (*ListTemplateDirectDownloadCertificatesRequest) GetResponseType

func (*ListTemplateDirectDownloadCertificatesRequest) GetZoneId

func (*ListTemplateDirectDownloadCertificatesRequest) ProtoMessage

func (*ListTemplateDirectDownloadCertificatesRequest) ProtoReflect

func (*ListTemplateDirectDownloadCertificatesRequest) Reset

func (*ListTemplateDirectDownloadCertificatesRequest) String

type ListTemplateDirectDownloadCertificatesResponse

type ListTemplateDirectDownloadCertificatesResponse struct {

	// The list of DirectDownloadCertificates
	Items []*DirectDownloadCertificate `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
	// The total count of DirectDownloadCertificates
	TotalCount *int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

ListTemplateDirectDownloadCertificatesResponse represents the response from list the uploaded certificates for direct download templates

func (*ListTemplateDirectDownloadCertificatesResponse) Descriptor deprecated

Deprecated: Use ListTemplateDirectDownloadCertificatesResponse.ProtoReflect.Descriptor instead.

func (*ListTemplateDirectDownloadCertificatesResponse) GetItems

func (*ListTemplateDirectDownloadCertificatesResponse) GetTotalCount

func (*ListTemplateDirectDownloadCertificatesResponse) ProtoMessage

func (*ListTemplateDirectDownloadCertificatesResponse) ProtoReflect

func (*ListTemplateDirectDownloadCertificatesResponse) Reset

func (*ListTemplateDirectDownloadCertificatesResponse) String

type ProvisionTemplateDirectDownloadCertificateRequest

type ProvisionTemplateDirectDownloadCertificateRequest struct {

	// the id of the direct download certificate to provision
	Id *int64 `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	// the host to provision the certificate
	HostId       *int64  `protobuf:"varint,2,opt,name=host_id,json=hostId" json:"host_id,omitempty"`
	ResponseType *string `protobuf:"bytes,3,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ProvisionTemplateDirectDownloadCertificateRequest represents the parameters for provisions a host with a direct download certificate

func (*ProvisionTemplateDirectDownloadCertificateRequest) Descriptor deprecated

Deprecated: Use ProvisionTemplateDirectDownloadCertificateRequest.ProtoReflect.Descriptor instead.

func (*ProvisionTemplateDirectDownloadCertificateRequest) GetHostId

func (*ProvisionTemplateDirectDownloadCertificateRequest) GetId

func (*ProvisionTemplateDirectDownloadCertificateRequest) GetResponseType

func (*ProvisionTemplateDirectDownloadCertificateRequest) ProtoMessage

func (*ProvisionTemplateDirectDownloadCertificateRequest) ProtoReflect

func (*ProvisionTemplateDirectDownloadCertificateRequest) Reset

func (*ProvisionTemplateDirectDownloadCertificateRequest) String

type ProvisionTemplateDirectDownloadCertificateResponse

type ProvisionTemplateDirectDownloadCertificateResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

ProvisionTemplateDirectDownloadCertificateResponse represents the response from provisions a host with a direct download certificate

func (*ProvisionTemplateDirectDownloadCertificateResponse) Descriptor deprecated

Deprecated: Use ProvisionTemplateDirectDownloadCertificateResponse.ProtoReflect.Descriptor instead.

func (*ProvisionTemplateDirectDownloadCertificateResponse) GetResult

func (*ProvisionTemplateDirectDownloadCertificateResponse) ProtoMessage

func (*ProvisionTemplateDirectDownloadCertificateResponse) ProtoReflect

func (*ProvisionTemplateDirectDownloadCertificateResponse) Reset

func (*ProvisionTemplateDirectDownloadCertificateResponse) String

type Result

type Result struct {

	// Whether the operation was successful
	Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	// Any text associated with the success or failure
	DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// The ID of the resource affected by the operation
	Id *string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
	// The job ID for an async operation
	JobId *string `protobuf:"bytes,4,opt,name=job_id,json=jobId" json:"job_id,omitempty"`
	// The status of the job
	JobStatus *string `protobuf:"bytes,5,opt,name=job_status,json=jobStatus" json:"job_status,omitempty"`
	// contains filtered or unexported fields
}

Result represents a generic operation result

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetDisplayText

func (x *Result) GetDisplayText() string

func (*Result) GetId

func (x *Result) GetId() string

func (*Result) GetJobId

func (x *Result) GetJobId() string

func (*Result) GetJobStatus

func (x *Result) GetJobStatus() string

func (*Result) GetSuccess

func (x *Result) GetSuccess() bool

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

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

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type RevokeTemplateDirectDownloadCertificateRequest

type RevokeTemplateDirectDownloadCertificateRequest struct {

	// id of the certificate
	CertificateId *int64 `protobuf:"varint,1,opt,name=certificate_id,json=certificateId" json:"certificate_id,omitempty"`
	// (optional) alias of the SSL certificate
	CertificateAlias *string `protobuf:"bytes,2,opt,name=certificate_alias,json=certificateAlias" json:"certificate_alias,omitempty"`
	// (optional) hypervisor type
	Hypervisor *string `protobuf:"bytes,3,opt,name=hypervisor" json:"hypervisor,omitempty"`
	// (optional) zone to revoke certificate
	ZoneId *int64 `protobuf:"varint,4,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// (optional) the host ID to revoke certificate
	HostId       *int64  `protobuf:"varint,5,opt,name=host_id,json=hostId" json:"host_id,omitempty"`
	ResponseType *string `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

RevokeTemplateDirectDownloadCertificateRequest represents the parameters for revoke a direct download certificate from hosts in a zone

func (*RevokeTemplateDirectDownloadCertificateRequest) Descriptor deprecated

Deprecated: Use RevokeTemplateDirectDownloadCertificateRequest.ProtoReflect.Descriptor instead.

func (*RevokeTemplateDirectDownloadCertificateRequest) GetCertificateAlias

func (x *RevokeTemplateDirectDownloadCertificateRequest) GetCertificateAlias() string

func (*RevokeTemplateDirectDownloadCertificateRequest) GetCertificateId

func (*RevokeTemplateDirectDownloadCertificateRequest) GetHostId

func (*RevokeTemplateDirectDownloadCertificateRequest) GetHypervisor

func (*RevokeTemplateDirectDownloadCertificateRequest) GetResponseType

func (*RevokeTemplateDirectDownloadCertificateRequest) GetZoneId

func (*RevokeTemplateDirectDownloadCertificateRequest) ProtoMessage

func (*RevokeTemplateDirectDownloadCertificateRequest) ProtoReflect

func (*RevokeTemplateDirectDownloadCertificateRequest) Reset

func (*RevokeTemplateDirectDownloadCertificateRequest) String

type RevokeTemplateDirectDownloadCertificateResponse

type RevokeTemplateDirectDownloadCertificateResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

RevokeTemplateDirectDownloadCertificateResponse represents the response from revoke a direct download certificate from hosts in a zone

func (*RevokeTemplateDirectDownloadCertificateResponse) Descriptor deprecated

Deprecated: Use RevokeTemplateDirectDownloadCertificateResponse.ProtoReflect.Descriptor instead.

func (*RevokeTemplateDirectDownloadCertificateResponse) GetResult

func (*RevokeTemplateDirectDownloadCertificateResponse) ProtoMessage

func (*RevokeTemplateDirectDownloadCertificateResponse) ProtoReflect

func (*RevokeTemplateDirectDownloadCertificateResponse) Reset

func (*RevokeTemplateDirectDownloadCertificateResponse) String

type Success

type Success struct {

	// true if operation is executed successfully
	Success *bool `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	// any text associated with the success or failure
	DisplayText *string `protobuf:"bytes,2,opt,name=display_text,json=displayText" json:"display_text,omitempty"`
	// contains filtered or unexported fields
}

Success represents a Success Operation Response

func (*Success) Descriptor deprecated

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

Deprecated: Use Success.ProtoReflect.Descriptor instead.

func (*Success) GetDisplayText

func (x *Success) GetDisplayText() string

func (*Success) GetSuccess

func (x *Success) GetSuccess() bool

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) ProtoReflect

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

func (*Success) Reset

func (x *Success) Reset()

func (*Success) String

func (x *Success) String() string

type UnimplementedDownloadServiceServer

type UnimplementedDownloadServiceServer struct{}

UnimplementedDownloadServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnsafeDownloadServiceServer

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

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

type UploadTemplateDirectDownloadCertificateRequest

type UploadTemplateDirectDownloadCertificateRequest struct {

	// SSL certificate
	Certificate *string `protobuf:"bytes,1,opt,name=certificate" json:"certificate,omitempty"`
	// Name for the uploaded certificate
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// Hypervisor type
	Hypervisor *string `protobuf:"bytes,3,opt,name=hypervisor" json:"hypervisor,omitempty"`
	// Zone to upload certificate
	ZoneId *int64 `protobuf:"varint,4,opt,name=zone_id,json=zoneId" json:"zone_id,omitempty"`
	// (optional) the host ID to upload certificate
	HostId       *int64  `protobuf:"varint,5,opt,name=host_id,json=hostId" json:"host_id,omitempty"`
	ResponseType *string `protobuf:"bytes,6,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

UploadTemplateDirectDownloadCertificateRequest represents the parameters for upload a certificate for https direct template download on kvm hosts

func (*UploadTemplateDirectDownloadCertificateRequest) Descriptor deprecated

Deprecated: Use UploadTemplateDirectDownloadCertificateRequest.ProtoReflect.Descriptor instead.

func (*UploadTemplateDirectDownloadCertificateRequest) GetCertificate

func (*UploadTemplateDirectDownloadCertificateRequest) GetHostId

func (*UploadTemplateDirectDownloadCertificateRequest) GetHypervisor

func (*UploadTemplateDirectDownloadCertificateRequest) GetName

func (*UploadTemplateDirectDownloadCertificateRequest) GetResponseType

func (*UploadTemplateDirectDownloadCertificateRequest) GetZoneId

func (*UploadTemplateDirectDownloadCertificateRequest) ProtoMessage

func (*UploadTemplateDirectDownloadCertificateRequest) ProtoReflect

func (*UploadTemplateDirectDownloadCertificateRequest) Reset

func (*UploadTemplateDirectDownloadCertificateRequest) String

type UploadTemplateDirectDownloadCertificateResponse

type UploadTemplateDirectDownloadCertificateResponse struct {

	// The Result
	Result *Result `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
	// contains filtered or unexported fields
}

UploadTemplateDirectDownloadCertificateResponse represents the response from upload a certificate for https direct template download on kvm hosts

func (*UploadTemplateDirectDownloadCertificateResponse) Descriptor deprecated

Deprecated: Use UploadTemplateDirectDownloadCertificateResponse.ProtoReflect.Descriptor instead.

func (*UploadTemplateDirectDownloadCertificateResponse) GetResult

func (*UploadTemplateDirectDownloadCertificateResponse) ProtoMessage

func (*UploadTemplateDirectDownloadCertificateResponse) ProtoReflect

func (*UploadTemplateDirectDownloadCertificateResponse) Reset

func (*UploadTemplateDirectDownloadCertificateResponse) String

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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