Documentation
¶
Index ¶
- Variables
- type Component
- func (*Component) Descriptor() ([]byte, []int)deprecated
- func (x *Component) GetBuildCfg() *v1.Config
- func (x *Component) GetConnections() *v12.Connections
- func (x *Component) GetContext() *v14.Context
- func (x *Component) GetDeployCfg() *v11.Config
- func (x *Component) GetId() string
- func (x *Component) GetInstallInputs() *v13.InstallInputs
- func (*Component) ProtoMessage()
- func (x *Component) ProtoReflect() protoreflect.Message
- func (x *Component) Reset()
- func (x *Component) String() string
- func (m *Component) Validate() error
- func (m *Component) ValidateAll() error
- type ComponentMultiError
- type ComponentValidationError
Constants ¶
This section is empty.
Variables ¶
var File_component_v1_component_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" faker:"shortID"`
BuildCfg *v1.Config `protobuf:"bytes,2,opt,name=build_cfg,json=buildCfg,proto3" json:"build_cfg,omitempty" faker:"buildConfig"`
DeployCfg *v11.Config `protobuf:"bytes,3,opt,name=deploy_cfg,json=deployCfg,proto3" json:"deploy_cfg,omitempty" faker:"deployConfig"`
// TODO(jm): both the connections and inputs should be in the context object, for consistency.
Connections *v12.Connections `protobuf:"bytes,4,opt,name=connections,proto3" json:"connections,omitempty"`
InstallInputs *v13.InstallInputs `protobuf:"bytes,5,opt,name=install_inputs,json=installInputs,proto3" json:"install_inputs,omitempty"`
Context *v14.Context `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"`
// contains filtered or unexported fields
}
Docker config uses the waypoint build
func (*Component) Descriptor
deprecated
func (*Component) GetBuildCfg ¶
func (*Component) GetConnections ¶
func (x *Component) GetConnections() *v12.Connections
func (*Component) GetContext ¶
func (*Component) GetDeployCfg ¶
func (*Component) GetInstallInputs ¶
func (x *Component) GetInstallInputs() *v13.InstallInputs
func (*Component) ProtoMessage ¶
func (*Component) ProtoMessage()
func (*Component) ProtoReflect ¶
func (x *Component) ProtoReflect() protoreflect.Message
func (*Component) Validate ¶
Validate checks the field values on Component with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Component) ValidateAll ¶
ValidateAll checks the field values on Component with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ComponentMultiError, or nil if none found.
type ComponentMultiError ¶
type ComponentMultiError []error
ComponentMultiError is an error wrapping multiple validation errors returned by Component.ValidateAll() if the designated constraints aren't met.
func (ComponentMultiError) AllErrors ¶
func (m ComponentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ComponentMultiError) Error ¶
func (m ComponentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ComponentValidationError ¶
type ComponentValidationError struct {
// contains filtered or unexported fields
}
ComponentValidationError is the validation error returned by Component.Validate if the designated constraints aren't met.
func (ComponentValidationError) Cause ¶
func (e ComponentValidationError) Cause() error
Cause function returns cause value.
func (ComponentValidationError) Error ¶
func (e ComponentValidationError) Error() string
Error satisfies the builtin error interface
func (ComponentValidationError) ErrorName ¶
func (e ComponentValidationError) ErrorName() string
ErrorName returns error name.
func (ComponentValidationError) Field ¶
func (e ComponentValidationError) Field() string
Field function returns field value.
func (ComponentValidationError) Key ¶
func (e ComponentValidationError) Key() bool
Key function returns key value.
func (ComponentValidationError) Reason ¶
func (e ComponentValidationError) Reason() string
Reason function returns reason value.