api

package
v0.1.55 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(ctx context.Context, port int)

Types

type Server

type Server struct {
	proto.UnimplementedMultyResourceServiceServer
	*service_context.ResourceServiceContext
	VnService                                       services.Service[*resourcespb.VirtualNetworkArgs, *resourcespb.VirtualNetworkResource]
	SubnetService                                   services.Service[*resourcespb.SubnetArgs, *resourcespb.SubnetResource]
	NetworkInterfaceService                         services.Service[*resourcespb.NetworkInterfaceArgs, *resourcespb.NetworkInterfaceResource]
	NetworkInterfaceSecurityGroupAssociationService services.Service[*resourcespb.NetworkInterfaceSecurityGroupAssociationArgs, *resourcespb.NetworkInterfaceSecurityGroupAssociationResource]
	RouteTableService                               services.Service[*resourcespb.RouteTableArgs, *resourcespb.RouteTableResource]
	RouteTableAssociationService                    services.Service[*resourcespb.RouteTableAssociationArgs, *resourcespb.RouteTableAssociationResource]
	NetworkSecurityGroupService                     services.Service[*resourcespb.NetworkSecurityGroupArgs, *resourcespb.NetworkSecurityGroupResource]
	DatabaseService                                 services.Service[*resourcespb.DatabaseArgs, *resourcespb.DatabaseResource]
	ObjectStorageService                            services.Service[*resourcespb.ObjectStorageArgs, *resourcespb.ObjectStorageResource]
	ObjectStorageObjectService                      services.Service[*resourcespb.ObjectStorageObjectArgs, *resourcespb.ObjectStorageObjectResource]
	PublicIpService                                 services.Service[*resourcespb.PublicIpArgs, *resourcespb.PublicIpResource]
	KubernetesClusterService                        services.Service[*resourcespb.KubernetesClusterArgs, *resourcespb.KubernetesClusterResource]
	KubernetesNodePoolService                       services.Service[*resourcespb.KubernetesNodePoolArgs, *resourcespb.KubernetesNodePoolResource]
	VaultService                                    services.Service[*resourcespb.VaultArgs, *resourcespb.VaultResource]
	VaultAccessPolicyService                        services.Service[*resourcespb.VaultAccessPolicyArgs, *resourcespb.VaultAccessPolicyResource]
	VaultSecretService                              services.Service[*resourcespb.VaultSecretArgs, *resourcespb.VaultSecretResource]
	VirtualMachineService                           services.Service[*resourcespb.VirtualMachineArgs, *resourcespb.VirtualMachineResource]
}

func CreateServer added in v0.1.38

func CreateServer(serviceContext *service_context.ResourceServiceContext) Server

func (*Server) CreateSubnet

func (*Server) CreateVault

func (*Server) DeleteDatabase

func (s *Server) DeleteDatabase(ctx context.Context, in *resourcespb.DeleteDatabaseRequest) (*commonpb.Empty, error)

func (*Server) DeleteKubernetesCluster

func (s *Server) DeleteKubernetesCluster(ctx context.Context, in *resourcespb.DeleteKubernetesClusterRequest) (*commonpb.Empty, error)

func (*Server) DeleteKubernetesNodePool

func (s *Server) DeleteKubernetesNodePool(ctx context.Context, in *resourcespb.DeleteKubernetesNodePoolRequest) (*commonpb.Empty, error)

func (*Server) DeleteNetworkInterface

func (s *Server) DeleteNetworkInterface(ctx context.Context, in *resourcespb.DeleteNetworkInterfaceRequest) (*commonpb.Empty, error)

func (*Server) DeleteNetworkInterfaceSecurityGroupAssociation added in v0.1.44

func (s *Server) DeleteNetworkInterfaceSecurityGroupAssociation(ctx context.Context, in *resourcespb.DeleteNetworkInterfaceSecurityGroupAssociationRequest) (*commonpb.Empty, error)

func (*Server) DeleteNetworkSecurityGroup

func (s *Server) DeleteNetworkSecurityGroup(ctx context.Context, in *resourcespb.DeleteNetworkSecurityGroupRequest) (*commonpb.Empty, error)

func (*Server) DeleteObjectStorage

func (s *Server) DeleteObjectStorage(ctx context.Context, in *resourcespb.DeleteObjectStorageRequest) (*commonpb.Empty, error)

func (*Server) DeleteObjectStorageObject

func (s *Server) DeleteObjectStorageObject(ctx context.Context, in *resourcespb.DeleteObjectStorageObjectRequest) (*commonpb.Empty, error)

func (*Server) DeletePublicIp

func (s *Server) DeletePublicIp(ctx context.Context, in *resourcespb.DeletePublicIpRequest) (*commonpb.Empty, error)

func (*Server) DeleteResource added in v0.1.30

func (s *Server) DeleteResource(ctx context.Context, req *proto.DeleteResourceRequest) (_ *commonpb.Empty, err error)

func (*Server) DeleteRouteTable

func (s *Server) DeleteRouteTable(ctx context.Context, in *resourcespb.DeleteRouteTableRequest) (*commonpb.Empty, error)

func (*Server) DeleteRouteTableAssociation

func (s *Server) DeleteRouteTableAssociation(ctx context.Context, in *resourcespb.DeleteRouteTableAssociationRequest) (*commonpb.Empty, error)

func (*Server) DeleteSubnet

func (s *Server) DeleteSubnet(ctx context.Context, in *resourcespb.DeleteSubnetRequest) (*commonpb.Empty, error)

func (*Server) DeleteVault

func (s *Server) DeleteVault(ctx context.Context, in *resourcespb.DeleteVaultRequest) (*commonpb.Empty, error)

func (*Server) DeleteVaultAccessPolicy

func (s *Server) DeleteVaultAccessPolicy(ctx context.Context, in *resourcespb.DeleteVaultAccessPolicyRequest) (*commonpb.Empty, error)

func (*Server) DeleteVaultSecret

func (s *Server) DeleteVaultSecret(ctx context.Context, in *resourcespb.DeleteVaultSecretRequest) (*commonpb.Empty, error)

func (*Server) DeleteVirtualMachine

func (s *Server) DeleteVirtualMachine(ctx context.Context, in *resourcespb.DeleteVirtualMachineRequest) (*commonpb.Empty, error)

func (*Server) DeleteVirtualNetwork

func (s *Server) DeleteVirtualNetwork(ctx context.Context, in *resourcespb.DeleteVirtualNetworkRequest) (*commonpb.Empty, error)

func (*Server) ListResources added in v0.1.30

func (s *Server) ListResources(ctx context.Context, _ *commonpb.Empty) (resp *commonpb.ListResourcesResponse, err error)

func (*Server) ReadSubnet

func (*Server) ReadVault

func (*Server) RefreshState added in v0.1.16

func (s *Server) RefreshState(ctx context.Context, _ *commonpb.Empty) (_ *commonpb.Empty, err error)

func (*Server) UpdateSubnet

func (*Server) UpdateVault

type UserService added in v0.1.38

func CreateUserServer added in v0.1.38

func CreateUserServer(serviceContext *service_context.UserServiceContext) UserService

func (*UserService) RegisterUser added in v0.1.38

func (s *UserService) RegisterUser(ctx context.Context, req *userpb.RegisterUserRequest) (*userpb.User, error)

Jump to

Keyboard shortcuts

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