Documentation
¶
Overview ¶
Package proto contains protos for monax.
Index ¶
- Constants
- Variables
- type AbstractSut
- type AbstractSut_builder
- type Component
- func (x *Component) ClearId()
- func (x *Component) ClearKind()
- func (x *Component) ClearParameters()
- func (x *Component) GetId() string
- func (x *Component) GetKind() string
- func (x *Component) GetParameters() *anypb.Any
- func (x *Component) GetProvidedInterfaces() []*Interface
- func (x *Component) GetRequiredInterfaces() []*Interface
- func (x *Component) HasId() bool
- func (x *Component) HasKind() bool
- func (x *Component) HasParameters() bool
- func (*Component) ProtoMessage()
- func (x *Component) ProtoReflect() protoreflect.Message
- func (x *Component) Reset()
- func (x *Component) SetId(v string)
- func (x *Component) SetKind(v string)
- func (x *Component) SetParameters(v *anypb.Any)
- func (x *Component) SetProvidedInterfaces(v []*Interface)
- func (x *Component) SetRequiredInterfaces(v []*Interface)
- func (x *Component) String() string
- type Component_builder
- type Dhcp
- type Dhcp_builder
- type Grpc
- type Grpc_builder
- type Http
- type Http_builder
- type Https
- type Https_builder
- type Interface
- func (x *Interface) ClearDhcp()
- func (x *Interface) ClearGrpc()
- func (x *Interface) ClearHttp()
- func (x *Interface) ClearHttps()
- func (x *Interface) ClearName()
- func (x *Interface) ClearType()
- func (x *Interface) GetDhcp() *Dhcp
- func (x *Interface) GetGrpc() *Grpc
- func (x *Interface) GetHttp() *Http
- func (x *Interface) GetHttps() *Https
- func (x *Interface) GetName() string
- func (x *Interface) HasDhcp() bool
- func (x *Interface) HasGrpc() bool
- func (x *Interface) HasHttp() bool
- func (x *Interface) HasHttps() bool
- func (x *Interface) HasName() bool
- func (x *Interface) HasType() bool
- func (*Interface) ProtoMessage()
- func (x *Interface) ProtoReflect() protoreflect.Message
- func (x *Interface) Reset()
- func (x *Interface) SetDhcp(v *Dhcp)
- func (x *Interface) SetGrpc(v *Grpc)
- func (x *Interface) SetHttp(v *Http)
- func (x *Interface) SetHttps(v *Https)
- func (x *Interface) SetName(v string)
- func (x *Interface) String() string
- func (x *Interface) WhichType() case_Interface_Type
- type Interface_builder
- type Library
- func (x *Library) GetComponents() []*Component
- func (x *Library) GetLibraries() []string
- func (*Library) ProtoMessage()
- func (x *Library) ProtoReflect() protoreflect.Message
- func (x *Library) Reset()
- func (x *Library) SetComponents(v []*Component)
- func (x *Library) SetLibraries(v []string)
- func (x *Library) String() string
- type Library_builder
- type RuntimeParameters
- func (x *RuntimeParameters) ClearParameters()
- func (x *RuntimeParameters) GetParameters() *anypb.Any
- func (x *RuntimeParameters) HasParameters() bool
- func (*RuntimeParameters) ProtoMessage()
- func (x *RuntimeParameters) ProtoReflect() protoreflect.Message
- func (x *RuntimeParameters) Reset()
- func (x *RuntimeParameters) SetParameters(v *anypb.Any)
- func (x *RuntimeParameters) String() string
- type RuntimeParameters_builder
Constants ¶
const Interface_Dhcp_case case_Interface_Type = 2
const Interface_Grpc_case case_Interface_Type = 3
const Interface_Http_case case_Interface_Type = 4
const Interface_Https_case case_Interface_Type = 5
const Interface_Type_not_set_case case_Interface_Type = 0
Variables ¶
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) ClearParameters ¶
func (x *Component) ClearParameters()
func (*Component) GetParameters ¶
func (*Component) GetProvidedInterfaces ¶
func (*Component) GetRequiredInterfaces ¶
func (*Component) HasParameters ¶
func (*Component) ProtoMessage ¶
func (*Component) ProtoMessage()
func (*Component) ProtoReflect ¶
func (x *Component) ProtoReflect() protoreflect.Message
func (*Component) SetParameters ¶
func (*Component) SetProvidedInterfaces ¶
func (*Component) SetRequiredInterfaces ¶
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 (*Dhcp) HasServiceName ¶
func (*Dhcp) ProtoMessage ¶
func (*Dhcp) ProtoMessage()
func (*Dhcp) ProtoReflect ¶
func (x *Dhcp) ProtoReflect() protoreflect.Message
func (*Dhcp) SetServiceName ¶
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 (*Grpc) HasServiceName ¶
func (*Grpc) ProtoMessage ¶
func (*Grpc) ProtoMessage()
func (*Grpc) ProtoReflect ¶
func (x *Grpc) ProtoReflect() protoreflect.Message
func (*Grpc) SetServiceName ¶
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 (*Http) HasServiceName ¶
func (*Http) ProtoMessage ¶
func (*Http) ProtoMessage()
func (*Http) ProtoReflect ¶
func (x *Http) ProtoReflect() protoreflect.Message
func (*Http) SetServiceName ¶
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 (*Https) HasServiceName ¶
func (*Https) ProtoMessage ¶
func (*Https) ProtoMessage()
func (*Https) ProtoReflect ¶
func (x *Https) ProtoReflect() protoreflect.Message
func (*Https) SetServiceName ¶
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) ClearHttps ¶
func (x *Interface) ClearHttps()
func (*Interface) ProtoMessage ¶
func (*Interface) ProtoMessage()
func (*Interface) ProtoReflect ¶
func (x *Interface) ProtoReflect() protoreflect.Message
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 (*Library) GetLibraries ¶
func (*Library) ProtoMessage ¶
func (*Library) ProtoMessage()
func (*Library) ProtoReflect ¶
func (x *Library) ProtoReflect() protoreflect.Message
func (*Library) SetComponents ¶
func (*Library) SetLibraries ¶
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 ¶
func (b0 RuntimeParameters_builder) Build() *RuntimeParameters