natv1

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 (
	NatService_CreateIpForwardingRule_FullMethodName = "/cloudstack.management.nat.v1.NatService/CreateIpForwardingRule"
	NatService_DeleteIpForwardingRule_FullMethodName = "/cloudstack.management.nat.v1.NatService/DeleteIpForwardingRule"
	NatService_DisableStaticNat_FullMethodName       = "/cloudstack.management.nat.v1.NatService/DisableStaticNat"
	NatService_EnableStaticNat_FullMethodName        = "/cloudstack.management.nat.v1.NatService/EnableStaticNat"
	NatService_ListIpForwardingRules_FullMethodName  = "/cloudstack.management.nat.v1.NatService/ListIpForwardingRules"
)

Variables

View Source
var (
	ProtocolType_name = map[int32]string{
		0: "PROTOCOL_TYPE_UNSPECIFIED",
		1: "PROTOCOL_TYPE_TCP",
		2: "PROTOCOL_TYPE_UDP",
	}
	ProtocolType_value = map[string]int32{
		"PROTOCOL_TYPE_UNSPECIFIED": 0,
		"PROTOCOL_TYPE_TCP":         1,
		"PROTOCOL_TYPE_UDP":         2,
	}
)

Enum value maps for ProtocolType.

View Source
var File_cloudstack_management_nat_v1_nat_gen_proto protoreflect.FileDescriptor
View Source
var NatService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cloudstack.management.nat.v1.NatService",
	HandlerType: (*NatServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateIpForwardingRule",
			Handler:    _NatService_CreateIpForwardingRule_Handler,
		},
		{
			MethodName: "DeleteIpForwardingRule",
			Handler:    _NatService_DeleteIpForwardingRule_Handler,
		},
		{
			MethodName: "DisableStaticNat",
			Handler:    _NatService_DisableStaticNat_Handler,
		},
		{
			MethodName: "EnableStaticNat",
			Handler:    _NatService_EnableStaticNat_Handler,
		},
		{
			MethodName: "ListIpForwardingRules",
			Handler:    _NatService_ListIpForwardingRules_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cloudstack/management/nat/v1/nat.gen.proto",
}

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

Functions

func RegisterNatServiceServer

func RegisterNatServiceServer(s grpc.ServiceRegistrar, srv NatServiceServer)

Types

type CreateIpForwardingRuleRequest

type CreateIpForwardingRuleRequest struct {

	// the public IP address ID of the forwarding rule, already associated via associateIp
	IpAddressId *int64 `protobuf:"varint,1,opt,name=ip_address_id,json=ipAddressId" json:"ip_address_id,omitempty"`
	// the start port for the rule
	StartPort *int32 `protobuf:"varint,2,opt,name=start_port,json=startPort" json:"start_port,omitempty"`
	// the end port for the rule
	EndPort *int32 `protobuf:"varint,3,opt,name=end_port,json=endPort" json:"end_port,omitempty"`
	// the protocol for the rule. Valid values are TCP or UDP.
	Protocol *string `protobuf:"bytes,4,opt,name=protocol" json:"protocol,omitempty"`
	// if true, firewall rule for source/end public port is automatically created; if false - firewall rule has to be created explicitly. Has value true by default
	OpenFirewall *bool `protobuf:"varint,5,opt,name=open_firewall,json=openFirewall" json:"open_firewall,omitempty"`
	// the CIDR list to forward traffic from. Multiple entries must be separated by a single comma character (,). This parameter is deprecated. Do not use.
	Cidrlist      []string `protobuf:"bytes,6,rep,name=cidrlist" json:"cidrlist,omitempty"`
	StartEventId  *int64   `protobuf:"varint,7,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string  `protobuf:"bytes,8,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string  `protobuf:"bytes,9,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

CreateIpForwardingRuleRequest represents the parameters for creates an ip forwarding rule

func (*CreateIpForwardingRuleRequest) Descriptor deprecated

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

Deprecated: Use CreateIpForwardingRuleRequest.ProtoReflect.Descriptor instead.

func (*CreateIpForwardingRuleRequest) GetCidrlist

func (x *CreateIpForwardingRuleRequest) GetCidrlist() []string

func (*CreateIpForwardingRuleRequest) GetEndPort

func (x *CreateIpForwardingRuleRequest) GetEndPort() int32

func (*CreateIpForwardingRuleRequest) GetInjectedJobId

func (x *CreateIpForwardingRuleRequest) GetInjectedJobId() string

func (*CreateIpForwardingRuleRequest) GetIpAddressId

func (x *CreateIpForwardingRuleRequest) GetIpAddressId() int64

func (*CreateIpForwardingRuleRequest) GetOpenFirewall

func (x *CreateIpForwardingRuleRequest) GetOpenFirewall() bool

func (*CreateIpForwardingRuleRequest) GetProtocol

func (x *CreateIpForwardingRuleRequest) GetProtocol() string

func (*CreateIpForwardingRuleRequest) GetResponseType

func (x *CreateIpForwardingRuleRequest) GetResponseType() string

func (*CreateIpForwardingRuleRequest) GetStartEventId

func (x *CreateIpForwardingRuleRequest) GetStartEventId() int64

func (*CreateIpForwardingRuleRequest) GetStartPort

func (x *CreateIpForwardingRuleRequest) GetStartPort() int32

func (*CreateIpForwardingRuleRequest) ProtoMessage

func (*CreateIpForwardingRuleRequest) ProtoMessage()

func (*CreateIpForwardingRuleRequest) ProtoReflect

func (*CreateIpForwardingRuleRequest) Reset

func (x *CreateIpForwardingRuleRequest) Reset()

func (*CreateIpForwardingRuleRequest) String

type CreateIpForwardingRuleResponse

type CreateIpForwardingRuleResponse struct {

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

CreateIpForwardingRuleResponse represents the response from creates an ip forwarding rule

func (*CreateIpForwardingRuleResponse) Descriptor deprecated

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

Deprecated: Use CreateIpForwardingRuleResponse.ProtoReflect.Descriptor instead.

func (*CreateIpForwardingRuleResponse) GetResult

func (x *CreateIpForwardingRuleResponse) GetResult() *Result

func (*CreateIpForwardingRuleResponse) ProtoMessage

func (*CreateIpForwardingRuleResponse) ProtoMessage()

func (*CreateIpForwardingRuleResponse) ProtoReflect

func (*CreateIpForwardingRuleResponse) Reset

func (x *CreateIpForwardingRuleResponse) Reset()

func (*CreateIpForwardingRuleResponse) String

type DeleteIpForwardingRuleRequest

type DeleteIpForwardingRuleRequest struct {

	// the ID of the forwarding rule
	Id            *int64  `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	StartEventId  *int64  `protobuf:"varint,2,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string `protobuf:"bytes,3,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

DeleteIpForwardingRuleRequest represents the parameters for deletes an ip forwarding rule

func (*DeleteIpForwardingRuleRequest) Descriptor deprecated

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

Deprecated: Use DeleteIpForwardingRuleRequest.ProtoReflect.Descriptor instead.

func (*DeleteIpForwardingRuleRequest) GetId

func (*DeleteIpForwardingRuleRequest) GetInjectedJobId

func (x *DeleteIpForwardingRuleRequest) GetInjectedJobId() string

func (*DeleteIpForwardingRuleRequest) GetResponseType

func (x *DeleteIpForwardingRuleRequest) GetResponseType() string

func (*DeleteIpForwardingRuleRequest) GetStartEventId

func (x *DeleteIpForwardingRuleRequest) GetStartEventId() int64

func (*DeleteIpForwardingRuleRequest) ProtoMessage

func (*DeleteIpForwardingRuleRequest) ProtoMessage()

func (*DeleteIpForwardingRuleRequest) ProtoReflect

func (*DeleteIpForwardingRuleRequest) Reset

func (x *DeleteIpForwardingRuleRequest) Reset()

func (*DeleteIpForwardingRuleRequest) String

type DeleteIpForwardingRuleResponse

type DeleteIpForwardingRuleResponse struct {

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

DeleteIpForwardingRuleResponse represents the response from deletes an ip forwarding rule

func (*DeleteIpForwardingRuleResponse) Descriptor deprecated

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

Deprecated: Use DeleteIpForwardingRuleResponse.ProtoReflect.Descriptor instead.

func (*DeleteIpForwardingRuleResponse) GetResult

func (x *DeleteIpForwardingRuleResponse) GetResult() *Result

func (*DeleteIpForwardingRuleResponse) ProtoMessage

func (*DeleteIpForwardingRuleResponse) ProtoMessage()

func (*DeleteIpForwardingRuleResponse) ProtoReflect

func (*DeleteIpForwardingRuleResponse) Reset

func (x *DeleteIpForwardingRuleResponse) Reset()

func (*DeleteIpForwardingRuleResponse) String

type DisableStaticNatRequest

type DisableStaticNatRequest struct {

	// the public IP address ID for which static NAT feature is being disabled
	IpAddressId   *int64  `protobuf:"varint,1,opt,name=ip_address_id,json=ipAddressId" json:"ip_address_id,omitempty"`
	StartEventId  *int64  `protobuf:"varint,2,opt,name=start_event_id,json=startEventId" json:"start_event_id,omitempty"`
	InjectedJobId *string `protobuf:"bytes,3,opt,name=injected_job_id,json=injectedJobId" json:"injected_job_id,omitempty"`
	ResponseType  *string `protobuf:"bytes,4,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

DisableStaticNatRequest represents the parameters for disables static rule for given ip address

func (*DisableStaticNatRequest) Descriptor deprecated

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

Deprecated: Use DisableStaticNatRequest.ProtoReflect.Descriptor instead.

func (*DisableStaticNatRequest) GetInjectedJobId

func (x *DisableStaticNatRequest) GetInjectedJobId() string

func (*DisableStaticNatRequest) GetIpAddressId

func (x *DisableStaticNatRequest) GetIpAddressId() int64

func (*DisableStaticNatRequest) GetResponseType

func (x *DisableStaticNatRequest) GetResponseType() string

func (*DisableStaticNatRequest) GetStartEventId

func (x *DisableStaticNatRequest) GetStartEventId() int64

func (*DisableStaticNatRequest) ProtoMessage

func (*DisableStaticNatRequest) ProtoMessage()

func (*DisableStaticNatRequest) ProtoReflect

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

func (*DisableStaticNatRequest) Reset

func (x *DisableStaticNatRequest) Reset()

func (*DisableStaticNatRequest) String

func (x *DisableStaticNatRequest) String() string

type DisableStaticNatResponse

type DisableStaticNatResponse struct {

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

DisableStaticNatResponse represents the response from disables static rule for given ip address

func (*DisableStaticNatResponse) Descriptor deprecated

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

Deprecated: Use DisableStaticNatResponse.ProtoReflect.Descriptor instead.

func (*DisableStaticNatResponse) GetResult

func (x *DisableStaticNatResponse) GetResult() *Result

func (*DisableStaticNatResponse) ProtoMessage

func (*DisableStaticNatResponse) ProtoMessage()

func (*DisableStaticNatResponse) ProtoReflect

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

func (*DisableStaticNatResponse) Reset

func (x *DisableStaticNatResponse) Reset()

func (*DisableStaticNatResponse) String

func (x *DisableStaticNatResponse) String() string

type EnableStaticNatRequest

type EnableStaticNatRequest struct {

	// the public IP address ID for which static NAT feature is being enabled
	IpAddressId *int64 `protobuf:"varint,1,opt,name=ip_address_id,json=ipAddressId" json:"ip_address_id,omitempty"`
	// the ID of the virtual machine for enabling static NAT feature
	VirtualMachineId *int64 `protobuf:"varint,2,opt,name=virtual_machine_id,json=virtualMachineId" json:"virtual_machine_id,omitempty"`
	// The network of the VM the static NAT will be enabled for. Required when public IP address is not associated with any guest network yet (VPC case)
	NetworkId *int64 `protobuf:"varint,3,opt,name=network_id,json=networkId" json:"network_id,omitempty"`
	// VM guest NIC secondary IP address for the port forwarding rule
	VmSecondaryIp *string `protobuf:"bytes,4,opt,name=vm_secondary_ip,json=vmSecondaryIp" json:"vm_secondary_ip,omitempty"`
	ResponseType  *string `protobuf:"bytes,5,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

EnableStaticNatRequest represents the parameters for enables static nat for given ip address

func (*EnableStaticNatRequest) Descriptor deprecated

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

Deprecated: Use EnableStaticNatRequest.ProtoReflect.Descriptor instead.

func (*EnableStaticNatRequest) GetIpAddressId

func (x *EnableStaticNatRequest) GetIpAddressId() int64

func (*EnableStaticNatRequest) GetNetworkId

func (x *EnableStaticNatRequest) GetNetworkId() int64

func (*EnableStaticNatRequest) GetResponseType

func (x *EnableStaticNatRequest) GetResponseType() string

func (*EnableStaticNatRequest) GetVirtualMachineId

func (x *EnableStaticNatRequest) GetVirtualMachineId() int64

func (*EnableStaticNatRequest) GetVmSecondaryIp

func (x *EnableStaticNatRequest) GetVmSecondaryIp() string

func (*EnableStaticNatRequest) ProtoMessage

func (*EnableStaticNatRequest) ProtoMessage()

func (*EnableStaticNatRequest) ProtoReflect

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

func (*EnableStaticNatRequest) Reset

func (x *EnableStaticNatRequest) Reset()

func (*EnableStaticNatRequest) String

func (x *EnableStaticNatRequest) String() string

type EnableStaticNatResponse

type EnableStaticNatResponse struct {

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

EnableStaticNatResponse represents the response from enables static nat for given ip address

func (*EnableStaticNatResponse) Descriptor deprecated

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

Deprecated: Use EnableStaticNatResponse.ProtoReflect.Descriptor instead.

func (*EnableStaticNatResponse) GetResult

func (x *EnableStaticNatResponse) GetResult() *Result

func (*EnableStaticNatResponse) ProtoMessage

func (*EnableStaticNatResponse) ProtoMessage()

func (*EnableStaticNatResponse) ProtoReflect

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

func (*EnableStaticNatResponse) Reset

func (x *EnableStaticNatResponse) Reset()

func (*EnableStaticNatResponse) String

func (x *EnableStaticNatResponse) String() string

type FirewallRule

type FirewallRule struct {

	// The ID of the FirewallRule
	Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// The name of the FirewallRule
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The display name of the FirewallRule
	DisplayName *string `protobuf:"bytes,3,opt,name=display_name,json=displayName" json:"display_name,omitempty"`
	// The description of the FirewallRule
	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
}

FirewallRule represents a FirewallRule Item

func (*FirewallRule) Descriptor deprecated

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

Deprecated: Use FirewallRule.ProtoReflect.Descriptor instead.

func (*FirewallRule) GetCreated

func (x *FirewallRule) GetCreated() string

func (*FirewallRule) GetDescription

func (x *FirewallRule) GetDescription() string

func (*FirewallRule) GetDisplayName

func (x *FirewallRule) GetDisplayName() string

func (*FirewallRule) GetId

func (x *FirewallRule) GetId() string

func (*FirewallRule) GetName

func (x *FirewallRule) GetName() string

func (*FirewallRule) ProtoMessage

func (*FirewallRule) ProtoMessage()

func (*FirewallRule) ProtoReflect

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

func (*FirewallRule) Reset

func (x *FirewallRule) Reset()

func (*FirewallRule) String

func (x *FirewallRule) String() string

type ListIpForwardingRulesRequest

type ListIpForwardingRulesRequest struct {

	// list the rule belonging to this public IP address
	PublicIpAddressId *int64 `protobuf:"varint,1,opt,name=public_ip_address_id,json=publicIpAddressId" json:"public_ip_address_id,omitempty"`
	// Lists rule with the specified ID.
	Id *int64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
	// Lists all rules applied to the specified VM.
	VmId *int64 `protobuf:"varint,3,opt,name=vm_id,json=vmId" json:"vm_id,omitempty"`
	// list objects by project; if projectid=-1 lists All VMs
	ProjectId *int64 `protobuf:"varint,4,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// list resources by account. Must be used with the domainId parameter.
	AccountName *string `protobuf:"bytes,5,opt,name=account_name,json=accountName" json:"account_name,omitempty"`
	// If set to false, list only resources belonging to the command's caller; if set to true - list resources that the caller is authorized to see. Default value is false. Resources dedicated to a project are listed only if using the projectid parameter.
	ListAll *bool `protobuf:"varint,6,opt,name=list_all,json=listAll" json:"list_all,omitempty"`
	// list only resources belonging to the domain specified
	DomainId *int64 `protobuf:"varint,7,opt,name=domain_id,json=domainId" json:"domain_id,omitempty"`
	// defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves.
	Recursive *bool `protobuf:"varint,8,opt,name=recursive" json:"recursive,omitempty"`
	// List by keyword
	Keyword      *string `protobuf:"bytes,9,opt,name=keyword" json:"keyword,omitempty"`
	Page         *int32  `protobuf:"varint,10,opt,name=page" json:"page,omitempty"`
	PageSize     *int32  `protobuf:"varint,11,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
	ResponseType *string `protobuf:"bytes,12,opt,name=response_type,json=responseType" json:"response_type,omitempty"`
	// contains filtered or unexported fields
}

ListIpForwardingRulesRequest represents the parameters for list the ip forwarding rules

func (*ListIpForwardingRulesRequest) Descriptor deprecated

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

Deprecated: Use ListIpForwardingRulesRequest.ProtoReflect.Descriptor instead.

func (*ListIpForwardingRulesRequest) GetAccountName

func (x *ListIpForwardingRulesRequest) GetAccountName() string

func (*ListIpForwardingRulesRequest) GetDomainId

func (x *ListIpForwardingRulesRequest) GetDomainId() int64

func (*ListIpForwardingRulesRequest) GetId

func (*ListIpForwardingRulesRequest) GetKeyword

func (x *ListIpForwardingRulesRequest) GetKeyword() string

func (*ListIpForwardingRulesRequest) GetListAll

func (x *ListIpForwardingRulesRequest) GetListAll() bool

func (*ListIpForwardingRulesRequest) GetPage

func (x *ListIpForwardingRulesRequest) GetPage() int32

func (*ListIpForwardingRulesRequest) GetPageSize

func (x *ListIpForwardingRulesRequest) GetPageSize() int32

func (*ListIpForwardingRulesRequest) GetProjectId

func (x *ListIpForwardingRulesRequest) GetProjectId() int64

func (*ListIpForwardingRulesRequest) GetPublicIpAddressId

func (x *ListIpForwardingRulesRequest) GetPublicIpAddressId() int64

func (*ListIpForwardingRulesRequest) GetRecursive

func (x *ListIpForwardingRulesRequest) GetRecursive() bool

func (*ListIpForwardingRulesRequest) GetResponseType

func (x *ListIpForwardingRulesRequest) GetResponseType() string

func (*ListIpForwardingRulesRequest) GetVmId

func (x *ListIpForwardingRulesRequest) GetVmId() int64

func (*ListIpForwardingRulesRequest) ProtoMessage

func (*ListIpForwardingRulesRequest) ProtoMessage()

func (*ListIpForwardingRulesRequest) ProtoReflect

func (*ListIpForwardingRulesRequest) Reset

func (x *ListIpForwardingRulesRequest) Reset()

func (*ListIpForwardingRulesRequest) String

type ListIpForwardingRulesResponse

type ListIpForwardingRulesResponse struct {

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

ListIpForwardingRulesResponse represents the response from list the ip forwarding rules

func (*ListIpForwardingRulesResponse) Descriptor deprecated

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

Deprecated: Use ListIpForwardingRulesResponse.ProtoReflect.Descriptor instead.

func (*ListIpForwardingRulesResponse) GetItems

func (*ListIpForwardingRulesResponse) GetTotalCount

func (x *ListIpForwardingRulesResponse) GetTotalCount() int32

func (*ListIpForwardingRulesResponse) ProtoMessage

func (*ListIpForwardingRulesResponse) ProtoMessage()

func (*ListIpForwardingRulesResponse) ProtoReflect

func (*ListIpForwardingRulesResponse) Reset

func (x *ListIpForwardingRulesResponse) Reset()

func (*ListIpForwardingRulesResponse) String

type NatServiceClient

type NatServiceClient interface {
	// CreateIpForwardingRule Creates an IP forwarding rule
	CreateIpForwardingRule(ctx context.Context, in *CreateIpForwardingRuleRequest, opts ...grpc.CallOption) (*CreateIpForwardingRuleResponse, error)
	// DeleteIpForwardingRule Deletes an IP forwarding rule
	DeleteIpForwardingRule(ctx context.Context, in *DeleteIpForwardingRuleRequest, opts ...grpc.CallOption) (*DeleteIpForwardingRuleResponse, error)
	// DisableStaticNat Disables static rule for given IP address
	DisableStaticNat(ctx context.Context, in *DisableStaticNatRequest, opts ...grpc.CallOption) (*DisableStaticNatResponse, error)
	// EnableStaticNat Enables static NAT for given IP address
	EnableStaticNat(ctx context.Context, in *EnableStaticNatRequest, opts ...grpc.CallOption) (*EnableStaticNatResponse, error)
	// ListIpForwardingRules List the IP forwarding rules
	ListIpForwardingRules(ctx context.Context, in *ListIpForwardingRulesRequest, opts ...grpc.CallOption) (*ListIpForwardingRulesResponse, error)
}

NatServiceClient is the client API for NatService 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.

NatService provides operations for managing Nats

func NewNatServiceClient

func NewNatServiceClient(cc grpc.ClientConnInterface) NatServiceClient

type NatServiceServer

type NatServiceServer interface {
	// CreateIpForwardingRule Creates an IP forwarding rule
	CreateIpForwardingRule(context.Context, *CreateIpForwardingRuleRequest) (*CreateIpForwardingRuleResponse, error)
	// DeleteIpForwardingRule Deletes an IP forwarding rule
	DeleteIpForwardingRule(context.Context, *DeleteIpForwardingRuleRequest) (*DeleteIpForwardingRuleResponse, error)
	// DisableStaticNat Disables static rule for given IP address
	DisableStaticNat(context.Context, *DisableStaticNatRequest) (*DisableStaticNatResponse, error)
	// EnableStaticNat Enables static NAT for given IP address
	EnableStaticNat(context.Context, *EnableStaticNatRequest) (*EnableStaticNatResponse, error)
	// ListIpForwardingRules List the IP forwarding rules
	ListIpForwardingRules(context.Context, *ListIpForwardingRulesRequest) (*ListIpForwardingRulesResponse, error)
	// contains filtered or unexported methods
}

NatServiceServer is the server API for NatService service. All implementations must embed UnimplementedNatServiceServer for forward compatibility.

NatService provides operations for managing Nats

type ProtocolType

type ProtocolType int32

ProtocolType represents the possible values for the protocol for the rule. Valid values are TCP or UDP.

const (
	// Default unspecified value
	ProtocolType_PROTOCOL_TYPE_UNSPECIFIED ProtocolType = 0
	// TCP value
	ProtocolType_PROTOCOL_TYPE_TCP ProtocolType = 1
	// UDP value
	ProtocolType_PROTOCOL_TYPE_UDP ProtocolType = 2
)

func (ProtocolType) Descriptor

func (ProtocolType) Enum

func (x ProtocolType) Enum() *ProtocolType

func (ProtocolType) EnumDescriptor deprecated

func (ProtocolType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProtocolType.Descriptor instead.

func (ProtocolType) Number

func (ProtocolType) String

func (x ProtocolType) String() string

func (ProtocolType) Type

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 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 UnimplementedNatServiceServer

type UnimplementedNatServiceServer struct{}

UnimplementedNatServiceServer 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.

func (UnimplementedNatServiceServer) DisableStaticNat

func (UnimplementedNatServiceServer) EnableStaticNat

type UnsafeNatServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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