proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package proto contains protos for monax.

Index

Constants

View Source
const Interface_Dhcp_case case_Interface_Type = 2
View Source
const Interface_Grpc_case case_Interface_Type = 3
View Source
const Interface_Http_case case_Interface_Type = 4
View Source
const Interface_Https_case case_Interface_Type = 5
View Source
const Interface_Type_not_set_case case_Interface_Type = 0

Variables

View Source
var File_monax_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AbstractSut

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

AbstractSut describes the top-level interface dependencies of a test. These are the interfaces that the test will exercise directly in order to perform its validation. Using the abstract SUT specification, Monax will create a SUT that consists of one or more components that satisfy the dependencies listed here. If any of those components have dependencies of their own, the SUT will include any additional components necessary to also satisfy those transitive dependencies. Only direct dependencies of the test should be listed here.

func (*AbstractSut) GetRequiredInterfaces

func (x *AbstractSut) GetRequiredInterfaces() []*Interface

func (*AbstractSut) ProtoMessage

func (*AbstractSut) ProtoMessage()

func (*AbstractSut) ProtoReflect

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

func (*AbstractSut) Reset

func (x *AbstractSut) Reset()

func (*AbstractSut) SetRequiredInterfaces

func (x *AbstractSut) SetRequiredInterfaces(v []*Interface)

func (*AbstractSut) String

func (x *AbstractSut) String() string

type AbstractSut_builder

type AbstractSut_builder struct {
	RequiredInterfaces []*Interface
	// contains filtered or unexported fields
}

func (AbstractSut_builder) Build

func (b0 AbstractSut_builder) Build() *AbstractSut

type Component

type Component struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

Component describes an element available for inclusion in the SUT in order to satisfy direct or transitive dependencies. A component may represent a single entity or an aggregation of entities.

func (*Component) ClearId

func (x *Component) ClearId()

func (*Component) ClearKind

func (x *Component) ClearKind()

func (*Component) ClearParameters

func (x *Component) ClearParameters()

func (*Component) GetId

func (x *Component) GetId() string

func (*Component) GetKind

func (x *Component) GetKind() string

func (*Component) GetParameters

func (x *Component) GetParameters() *anypb.Any

func (*Component) GetProvidedInterfaces

func (x *Component) GetProvidedInterfaces() []*Interface

func (*Component) GetRequiredInterfaces

func (x *Component) GetRequiredInterfaces() []*Interface

func (*Component) HasId

func (x *Component) HasId() bool

func (*Component) HasKind

func (x *Component) HasKind() bool

func (*Component) HasParameters

func (x *Component) HasParameters() bool

func (*Component) ProtoMessage

func (*Component) ProtoMessage()

func (*Component) ProtoReflect

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

func (*Component) Reset

func (x *Component) Reset()

func (*Component) SetId

func (x *Component) SetId(v string)

func (*Component) SetKind

func (x *Component) SetKind(v string)

func (*Component) SetParameters

func (x *Component) SetParameters(v *anypb.Any)

func (*Component) SetProvidedInterfaces

func (x *Component) SetProvidedInterfaces(v []*Interface)

func (*Component) SetRequiredInterfaces

func (x *Component) SetRequiredInterfaces(v []*Interface)

func (*Component) String

func (x *Component) String() string

type Component_builder

type Component_builder struct {
	Id                 *string
	Kind               *string
	ProvidedInterfaces []*Interface
	RequiredInterfaces []*Interface
	Parameters         *anypb.Any
	// contains filtered or unexported fields
}

func (Component_builder) Build

func (b0 Component_builder) Build() *Component

type Dhcp

type Dhcp struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

Dhcp describes a DHCP interface.

func (*Dhcp) ClearServiceName

func (x *Dhcp) ClearServiceName()

func (*Dhcp) GetServiceName

func (x *Dhcp) GetServiceName() string

func (*Dhcp) HasServiceName

func (x *Dhcp) HasServiceName() bool

func (*Dhcp) ProtoMessage

func (*Dhcp) ProtoMessage()

func (*Dhcp) ProtoReflect

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

func (*Dhcp) Reset

func (x *Dhcp) Reset()

func (*Dhcp) SetServiceName

func (x *Dhcp) SetServiceName(v string)

func (*Dhcp) String

func (x *Dhcp) String() string

type Dhcp_builder

type Dhcp_builder struct {
	ServiceName *string
	// contains filtered or unexported fields
}

func (Dhcp_builder) Build

func (b0 Dhcp_builder) Build() *Dhcp

type Grpc

type Grpc struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

Grpc describes a gRPC interface.

func (*Grpc) ClearServiceName

func (x *Grpc) ClearServiceName()

func (*Grpc) GetServiceName

func (x *Grpc) GetServiceName() string

func (*Grpc) HasServiceName

func (x *Grpc) HasServiceName() bool

func (*Grpc) ProtoMessage

func (*Grpc) ProtoMessage()

func (*Grpc) ProtoReflect

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

func (*Grpc) Reset

func (x *Grpc) Reset()

func (*Grpc) SetServiceName

func (x *Grpc) SetServiceName(v string)

func (*Grpc) String

func (x *Grpc) String() string

type Grpc_builder

type Grpc_builder struct {
	ServiceName *string
	// contains filtered or unexported fields
}

func (Grpc_builder) Build

func (b0 Grpc_builder) Build() *Grpc

type Http

type Http struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

Http describes an HTTP interface.

func (*Http) ClearServiceName

func (x *Http) ClearServiceName()

func (*Http) GetServiceName

func (x *Http) GetServiceName() string

func (*Http) HasServiceName

func (x *Http) HasServiceName() bool

func (*Http) ProtoMessage

func (*Http) ProtoMessage()

func (*Http) ProtoReflect

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

func (*Http) Reset

func (x *Http) Reset()

func (*Http) SetServiceName

func (x *Http) SetServiceName(v string)

func (*Http) String

func (x *Http) String() string

type Http_builder

type Http_builder struct {
	ServiceName *string
	// contains filtered or unexported fields
}

func (Http_builder) Build

func (b0 Http_builder) Build() *Http

type Https

type Https struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

Https describes an HTTPS interface.

func (*Https) ClearServiceName

func (x *Https) ClearServiceName()

func (*Https) GetServiceName

func (x *Https) GetServiceName() string

func (*Https) HasServiceName

func (x *Https) HasServiceName() bool

func (*Https) ProtoMessage

func (*Https) ProtoMessage()

func (*Https) ProtoReflect

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

func (*Https) Reset

func (x *Https) Reset()

func (*Https) SetServiceName

func (x *Https) SetServiceName(v string)

func (*Https) String

func (x *Https) String() string

type Https_builder

type Https_builder struct {
	ServiceName *string
	// contains filtered or unexported fields
}

func (Https_builder) Build

func (b0 Https_builder) Build() *Https

type Interface

type Interface struct {
	XXX_raceDetectHookData protoimpl.RaceDetectHookData
	XXX_presence           [1]uint32
	// contains filtered or unexported fields
}

Interface describes a typed communication boundary between components.

func (*Interface) ClearDhcp

func (x *Interface) ClearDhcp()

func (*Interface) ClearGrpc

func (x *Interface) ClearGrpc()

func (*Interface) ClearHttp

func (x *Interface) ClearHttp()

func (*Interface) ClearHttps

func (x *Interface) ClearHttps()

func (*Interface) ClearName

func (x *Interface) ClearName()

func (*Interface) ClearType

func (x *Interface) ClearType()

func (*Interface) GetDhcp

func (x *Interface) GetDhcp() *Dhcp

func (*Interface) GetGrpc

func (x *Interface) GetGrpc() *Grpc

func (*Interface) GetHttp

func (x *Interface) GetHttp() *Http

func (*Interface) GetHttps

func (x *Interface) GetHttps() *Https

func (*Interface) GetName

func (x *Interface) GetName() string

func (*Interface) HasDhcp

func (x *Interface) HasDhcp() bool

func (*Interface) HasGrpc

func (x *Interface) HasGrpc() bool

func (*Interface) HasHttp

func (x *Interface) HasHttp() bool

func (*Interface) HasHttps

func (x *Interface) HasHttps() bool

func (*Interface) HasName

func (x *Interface) HasName() bool

func (*Interface) HasType

func (x *Interface) HasType() bool

func (*Interface) ProtoMessage

func (*Interface) ProtoMessage()

func (*Interface) ProtoReflect

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

func (*Interface) Reset

func (x *Interface) Reset()

func (*Interface) SetDhcp

func (x *Interface) SetDhcp(v *Dhcp)

func (*Interface) SetGrpc

func (x *Interface) SetGrpc(v *Grpc)

func (*Interface) SetHttp

func (x *Interface) SetHttp(v *Http)

func (*Interface) SetHttps

func (x *Interface) SetHttps(v *Https)

func (*Interface) SetName

func (x *Interface) SetName(v string)

func (*Interface) String

func (x *Interface) String() string

func (*Interface) WhichType

func (x *Interface) WhichType() case_Interface_Type

type Interface_builder

type Interface_builder struct {

	// name is a user supplied string to uniquely identify an interface within
	// a component.
	Name *string
	// Fields of oneof xxx_hidden_Type:
	Dhcp  *Dhcp
	Grpc  *Grpc
	Http  *Http
	Https *Https
	// contains filtered or unexported fields
}

func (Interface_builder) Build

func (b0 Interface_builder) Build() *Interface

type Library

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

Library describes the components available for inclusion in a SUT. Monax may include any of these components in the SUT in order to satisfy direct and transitive dependencies. The library must not contain duplicate implementations of interfaces, unsatisfied dependencies, or cyclic dependencies between components.

func (*Library) GetComponents

func (x *Library) GetComponents() []*Component

func (*Library) GetLibraries

func (x *Library) GetLibraries() []string

func (*Library) ProtoMessage

func (*Library) ProtoMessage()

func (*Library) ProtoReflect

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

func (*Library) Reset

func (x *Library) Reset()

func (*Library) SetComponents

func (x *Library) SetComponents(v []*Component)

func (*Library) SetLibraries

func (x *Library) SetLibraries(v []string)

func (*Library) String

func (x *Library) String() string

type Library_builder

type Library_builder struct {
	Components []*Component
	Libraries  []string
	// contains filtered or unexported fields
}

func (Library_builder) Build

func (b0 Library_builder) Build() *Library

type RuntimeParameters

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

RuntimeParameters describes the parameters used to configure the runtime.

func (*RuntimeParameters) ClearParameters

func (x *RuntimeParameters) ClearParameters()

func (*RuntimeParameters) GetParameters

func (x *RuntimeParameters) GetParameters() *anypb.Any

func (*RuntimeParameters) HasParameters

func (x *RuntimeParameters) HasParameters() bool

func (*RuntimeParameters) ProtoMessage

func (*RuntimeParameters) ProtoMessage()

func (*RuntimeParameters) ProtoReflect

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

func (*RuntimeParameters) Reset

func (x *RuntimeParameters) Reset()

func (*RuntimeParameters) SetParameters

func (x *RuntimeParameters) SetParameters(v *anypb.Any)

func (*RuntimeParameters) String

func (x *RuntimeParameters) String() string

type RuntimeParameters_builder

type RuntimeParameters_builder struct {
	Parameters *anypb.Any
	// contains filtered or unexported fields
}

func (RuntimeParameters_builder) Build

Jump to

Keyboard shortcuts

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