reservation

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_reservation_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type GRPCEndpoint

type GRPCEndpoint struct {

	// Address is the form <ip / dns>:<port>.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*GRPCEndpoint) Descriptor deprecated

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

Deprecated: Use GRPCEndpoint.ProtoReflect.Descriptor instead.

func (*GRPCEndpoint) GetAddress

func (x *GRPCEndpoint) GetAddress() string

func (*GRPCEndpoint) ProtoMessage

func (*GRPCEndpoint) ProtoMessage()

func (*GRPCEndpoint) ProtoReflect

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

func (*GRPCEndpoint) Reset

func (x *GRPCEndpoint) Reset()

func (*GRPCEndpoint) String

func (x *GRPCEndpoint) String() string

type HTTPEndpoint

type HTTPEndpoint struct {

	// Address is the form <ip / dns>:<port>.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

HTTPEndpoint is a standard HTTP endpoint.

func (*HTTPEndpoint) Descriptor deprecated

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

Deprecated: Use HTTPEndpoint.ProtoReflect.Descriptor instead.

func (*HTTPEndpoint) GetAddress

func (x *HTTPEndpoint) GetAddress() string

func (*HTTPEndpoint) ProtoMessage

func (*HTTPEndpoint) ProtoMessage()

func (*HTTPEndpoint) ProtoReflect

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

func (*HTTPEndpoint) Reset

func (x *HTTPEndpoint) Reset()

func (*HTTPEndpoint) String

func (x *HTTPEndpoint) String() string

type HTTPOverGRPCEndpoint

type HTTPOverGRPCEndpoint struct {

	// Address is the form <ip / dns>:<port>.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

HTTPOverGRPCEndpoint is a GRPC transport for HTTP proxied connections.

func (*HTTPOverGRPCEndpoint) Descriptor deprecated

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

Deprecated: Use HTTPOverGRPCEndpoint.ProtoReflect.Descriptor instead.

func (*HTTPOverGRPCEndpoint) GetAddress

func (x *HTTPOverGRPCEndpoint) GetAddress() string

func (*HTTPOverGRPCEndpoint) ProtoMessage

func (*HTTPOverGRPCEndpoint) ProtoMessage()

func (*HTTPOverGRPCEndpoint) ProtoReflect

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

func (*HTTPOverGRPCEndpoint) Reset

func (x *HTTPOverGRPCEndpoint) Reset()

func (*HTTPOverGRPCEndpoint) String

func (x *HTTPOverGRPCEndpoint) String() string

type ProxiedGRPCEndpoint

type ProxiedGRPCEndpoint struct {

	// Address is the form <ip / dns>:<port>.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Proxy is the form <ip / dns>:<port>. Repeated for each proxy in the chain.
	Proxy []string `protobuf:"bytes,2,rep,name=proxy,proto3" json:"proxy,omitempty"`
	// contains filtered or unexported fields
}

ProxiedGRPCEndpoint is an endpoint which will pass through a list of proxies.

func (*ProxiedGRPCEndpoint) Descriptor deprecated

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

Deprecated: Use ProxiedGRPCEndpoint.ProtoReflect.Descriptor instead.

func (*ProxiedGRPCEndpoint) GetAddress

func (x *ProxiedGRPCEndpoint) GetAddress() string

func (*ProxiedGRPCEndpoint) GetProxy

func (x *ProxiedGRPCEndpoint) GetProxy() []string

func (*ProxiedGRPCEndpoint) ProtoMessage

func (*ProxiedGRPCEndpoint) ProtoMessage()

func (*ProxiedGRPCEndpoint) ProtoReflect

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

func (*ProxiedGRPCEndpoint) Reset

func (x *ProxiedGRPCEndpoint) Reset()

func (*ProxiedGRPCEndpoint) String

func (x *ProxiedGRPCEndpoint) String() string

type Reservation

type Reservation struct {
	Id      string                     `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Devices map[string]*ResolvedDevice `` /* 155-byte string literal not displayed */
	Ates    map[string]*ResolvedDevice `` /* 149-byte string literal not displayed */
	Links   []*ResolvedLink            `protobuf:"bytes,4,rep,name=links,proto3" json:"links,omitempty"`
	// contains filtered or unexported fields
}

func (*Reservation) Descriptor deprecated

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

Deprecated: Use Reservation.ProtoReflect.Descriptor instead.

func (*Reservation) GetAtes

func (x *Reservation) GetAtes() map[string]*ResolvedDevice

func (*Reservation) GetDevices

func (x *Reservation) GetDevices() map[string]*ResolvedDevice

func (*Reservation) GetId

func (x *Reservation) GetId() string
func (x *Reservation) GetLinks() []*ResolvedLink

func (*Reservation) ProtoMessage

func (*Reservation) ProtoMessage()

func (*Reservation) ProtoReflect

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

func (*Reservation) Reset

func (x *Reservation) Reset()

func (*Reservation) String

func (x *Reservation) String() string

type ResolvedDevice

type ResolvedDevice struct {

	// Key of the device.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Resolvable name of the device.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Vendor of the device.
	Vendor proto.Device_Vendor `protobuf:"varint,3,opt,name=vendor,proto3,enum=ondatra.Device_Vendor" json:"vendor,omitempty"`
	// Hardware model of the device.
	HardwareModel string `protobuf:"bytes,4,opt,name=hardware_model,json=hardwareModel,proto3" json:"hardware_model,omitempty"`
	// Software version of the device.
	SoftwareVersion string                   `protobuf:"bytes,5,opt,name=software_version,json=softwareVersion,proto3" json:"software_version,omitempty"`
	Ports           map[string]*ResolvedPort `` /* 151-byte string literal not displayed */
	// Services provides a map for the service locations provided by the device.
	Services map[string]*Service `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

ResolvedDevice is a device after it has been reserved.

func (*ResolvedDevice) Descriptor deprecated

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

Deprecated: Use ResolvedDevice.ProtoReflect.Descriptor instead.

func (*ResolvedDevice) GetHardwareModel

func (x *ResolvedDevice) GetHardwareModel() string

func (*ResolvedDevice) GetId

func (x *ResolvedDevice) GetId() string

func (*ResolvedDevice) GetName

func (x *ResolvedDevice) GetName() string

func (*ResolvedDevice) GetPorts

func (x *ResolvedDevice) GetPorts() map[string]*ResolvedPort

func (*ResolvedDevice) GetServices

func (x *ResolvedDevice) GetServices() map[string]*Service

func (*ResolvedDevice) GetSoftwareVersion

func (x *ResolvedDevice) GetSoftwareVersion() string

func (*ResolvedDevice) GetVendor

func (x *ResolvedDevice) GetVendor() proto.Device_Vendor

func (*ResolvedDevice) ProtoMessage

func (*ResolvedDevice) ProtoMessage()

func (*ResolvedDevice) ProtoReflect

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

func (*ResolvedDevice) Reset

func (x *ResolvedDevice) Reset()

func (*ResolvedDevice) String

func (x *ResolvedDevice) String() string
type ResolvedLink struct {
	A string `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"` // First port in the format "<device-id>:<port-id>".
	B string `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"` // Second port in the format "<device-id>:<port-id>".
	// contains filtered or unexported fields
}

A physical link between ports on DUTs or ATEs. The order does not matter: links are symmetrical. A given port may be specified in at most one link. If the port is not connected but defined in the Device. There will be no corresponding link.

func (*ResolvedLink) Descriptor deprecated

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

Deprecated: Use ResolvedLink.ProtoReflect.Descriptor instead.

func (*ResolvedLink) GetA

func (x *ResolvedLink) GetA() string

func (*ResolvedLink) GetB

func (x *ResolvedLink) GetB() string

func (*ResolvedLink) ProtoMessage

func (*ResolvedLink) ProtoMessage()

func (*ResolvedLink) ProtoReflect

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

func (*ResolvedLink) Reset

func (x *ResolvedLink) Reset()

func (*ResolvedLink) String

func (x *ResolvedLink) String() string

type ResolvedPort

type ResolvedPort struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Speed enum values are the port speed in Gbps.
	Speed proto.Port_Speed `protobuf:"varint,2,opt,name=speed,proto3,enum=ondatra.Port_Speed" json:"speed,omitempty"`
	// Name is the resolved port name.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

ResolvedPort is a port with a concrete assignment.

func (*ResolvedPort) Descriptor deprecated

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

Deprecated: Use ResolvedPort.ProtoReflect.Descriptor instead.

func (*ResolvedPort) GetId

func (x *ResolvedPort) GetId() string

func (*ResolvedPort) GetName

func (x *ResolvedPort) GetName() string

func (*ResolvedPort) GetSpeed

func (x *ResolvedPort) GetSpeed() proto.Port_Speed

func (*ResolvedPort) ProtoMessage

func (*ResolvedPort) ProtoMessage()

func (*ResolvedPort) ProtoReflect

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

func (*ResolvedPort) Reset

func (x *ResolvedPort) Reset()

func (*ResolvedPort) String

func (x *ResolvedPort) String() string

type Service

type Service struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Endpoint is the endpoint type of the service.
	//
	// Types that are assignable to Endpoint:
	//	*Service_Grpc
	//	*Service_ProxiedGrpc
	//	*Service_Http
	//	*Service_HttpOverGrpc
	Endpoint isService_Endpoint `protobuf_oneof:"endpoint"`
	// contains filtered or unexported fields
}

Service provides a map of services provided by the DUT which can be mapped for use by ondatra to provide access to those endpoints.

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetEndpoint

func (m *Service) GetEndpoint() isService_Endpoint

func (*Service) GetGrpc

func (x *Service) GetGrpc() *GRPCEndpoint

func (*Service) GetHttp

func (x *Service) GetHttp() *HTTPEndpoint

func (*Service) GetHttpOverGrpc

func (x *Service) GetHttpOverGrpc() *HTTPOverGRPCEndpoint

func (*Service) GetId

func (x *Service) GetId() string

func (*Service) GetProxiedGrpc

func (x *Service) GetProxiedGrpc() *ProxiedGRPCEndpoint

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type Service_Grpc

type Service_Grpc struct {
	Grpc *GRPCEndpoint `protobuf:"bytes,100,opt,name=grpc,proto3,oneof"`
}

type Service_Http

type Service_Http struct {
	Http *HTTPEndpoint `protobuf:"bytes,102,opt,name=http,proto3,oneof"`
}

type Service_HttpOverGrpc

type Service_HttpOverGrpc struct {
	HttpOverGrpc *HTTPOverGRPCEndpoint `protobuf:"bytes,103,opt,name=http_over_grpc,json=httpOverGrpc,proto3,oneof"`
}

type Service_ProxiedGrpc

type Service_ProxiedGrpc struct {
	ProxiedGrpc *ProxiedGRPCEndpoint `protobuf:"bytes,101,opt,name=proxied_grpc,json=proxiedGrpc,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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