Documentation ¶
Index ¶
- func Name() string
- func Set(v *Meta) error
- func Yaml() (string, error)
- func ZerologObject() zerolog.LogObjectMarshaler
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)
- func (m Meta) Flatten() map[string]interface{}
- func (m *Meta) GetBuild() time.Time
- func (m *Meta) GetChannel() string
- func (m *Meta) GetName() string
- func (m *Meta) GetRuntime() *Runtime
- func (m *Meta) GetSemver() string
- func (m *Meta) GetSerial() string
- func (m *Meta) GetVcs() *Vcs
- func (m Meta) JSON() []byte
- func (m Meta) MarshalZerologObject(e *zerolog.Event)
- func (*Meta) ProtoMessage()
- func (m *Meta) Reset()
- func (m *Meta) String() string
- func (m *Meta) Validate() error
- func (m *Meta) XXX_DiscardUnknown()
- func (m *Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Meta) XXX_Merge(src proto.Message)
- func (m *Meta) XXX_Size() int
- func (m *Meta) XXX_Unmarshal(b []byte) error
- type MetaValidationError
- type Metaer
- type Runtime
- func (*Runtime) Descriptor() ([]byte, []int)
- func (m *Runtime) GetArch() string
- func (m *Runtime) GetOs() string
- func (m *Runtime) GetVersion() string
- func (*Runtime) ProtoMessage()
- func (m *Runtime) Reset()
- func (m *Runtime) String() string
- func (m *Runtime) Validate() error
- func (m *Runtime) XXX_DiscardUnknown()
- func (m *Runtime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Runtime) XXX_Merge(src proto.Message)
- func (m *Runtime) XXX_Size() int
- func (m *Runtime) XXX_Unmarshal(b []byte) error
- type RuntimeValidationError
- type Vcs
- func (*Vcs) Descriptor() ([]byte, []int)
- func (m *Vcs) GetBranch() string
- func (m *Vcs) GetHash() string
- func (m *Vcs) GetTag() string
- func (*Vcs) ProtoMessage()
- func (m *Vcs) Reset()
- func (m *Vcs) String() string
- func (m *Vcs) Validate() error
- func (m *Vcs) XXX_DiscardUnknown()
- func (m *Vcs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vcs) XXX_Merge(src proto.Message)
- func (m *Vcs) XXX_Size() int
- func (m *Vcs) XXX_Unmarshal(b []byte) error
- type VcsValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ZerologObject ¶
func ZerologObject() zerolog.LogObjectMarshaler
ZerologObject returns a MarshalZerologObject.
Types ¶
type Meta ¶
type Meta struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Semver string `protobuf:"bytes,2,opt,name=semver,proto3" json:"semver,omitempty"` Channel string `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"` Runtime *Runtime `protobuf:"bytes,4,opt,name=runtime,proto3" json:"runtime,omitempty"` Serial string `protobuf:"bytes,5,opt,name=serial,proto3" json:"serial,omitempty"` Build time.Time `protobuf:"bytes,6,opt,name=build,proto3" json:"build,omitempty"` Vcs *Vcs `protobuf:"bytes,7,opt,name=vcs,proto3" json:"vcs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-"` XXX_unrecognized []byte `json:"-" yaml:"-"` XXX_sizecache int32 `json:"-" yaml:"-"` }
Meta is ValueObject of meta infomation
func (*Meta) Descriptor ¶
func (*Meta) GetChannel ¶
func (*Meta) GetRuntime ¶
func (Meta) MarshalZerologObject ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) Validate ¶
Validate checks the field values on Meta with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Meta) XXX_DiscardUnknown ¶
func (m *Meta) XXX_DiscardUnknown()
func (*Meta) XXX_Unmarshal ¶
type MetaValidationError ¶
type MetaValidationError struct {
// contains filtered or unexported fields
}
MetaValidationError is the validation error returned by Meta.Validate if the designated constraints aren't met.
func (MetaValidationError) Cause ¶
func (e MetaValidationError) Cause() error
Cause function returns cause value.
func (MetaValidationError) Error ¶
func (e MetaValidationError) Error() string
Error satisfies the builtin error interface
func (MetaValidationError) ErrorName ¶
func (e MetaValidationError) ErrorName() string
ErrorName returns error name.
func (MetaValidationError) Field ¶
func (e MetaValidationError) Field() string
Field function returns field value.
func (MetaValidationError) Key ¶
func (e MetaValidationError) Key() bool
Key function returns key value.
func (MetaValidationError) Reason ¶
func (e MetaValidationError) Reason() string
Reason function returns reason value.
type Metaer ¶
type Metaer interface { Descriptor() ([]byte, []int) Flatten() map[string]interface{} GetBuild() time.Time GetChannel() string GetName() string GetRuntime() *Runtime GetSemver() string GetSerial() string GetVcs() *Vcs JSON() []byte MarshalZerologObject(*zerolog.Event) ProtoMessage() Reset() String() string Validate() error XXX_DiscardUnknown() XXX_Marshal([]byte, bool) ([]byte, error) XXX_Merge(protoiface.MessageV1) XXX_Size() int XXX_Unmarshal([]byte) error }
Metaer is an interface generated for "github.com/michilu/boilerplate/service/meta.Meta".
type Runtime ¶
type Runtime struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Arch string `protobuf:"bytes,2,opt,name=arch,proto3" json:"arch,omitempty"` Os string `protobuf:"bytes,3,opt,name=os,proto3" json:"os,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-"` XXX_unrecognized []byte `json:"-" yaml:"-"` XXX_sizecache int32 `json:"-" yaml:"-"` }
Runtime is ValueObject of Runtime
func (*Runtime) Descriptor ¶
func (*Runtime) GetVersion ¶
func (*Runtime) ProtoMessage ¶
func (*Runtime) ProtoMessage()
func (*Runtime) Validate ¶
Validate checks the field values on Runtime with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Runtime) XXX_DiscardUnknown ¶
func (m *Runtime) XXX_DiscardUnknown()
func (*Runtime) XXX_Marshal ¶
func (*Runtime) XXX_Unmarshal ¶
type RuntimeValidationError ¶
type RuntimeValidationError struct {
// contains filtered or unexported fields
}
RuntimeValidationError is the validation error returned by Runtime.Validate if the designated constraints aren't met.
func (RuntimeValidationError) Cause ¶
func (e RuntimeValidationError) Cause() error
Cause function returns cause value.
func (RuntimeValidationError) Error ¶
func (e RuntimeValidationError) Error() string
Error satisfies the builtin error interface
func (RuntimeValidationError) ErrorName ¶
func (e RuntimeValidationError) ErrorName() string
ErrorName returns error name.
func (RuntimeValidationError) Field ¶
func (e RuntimeValidationError) Field() string
Field function returns field value.
func (RuntimeValidationError) Key ¶
func (e RuntimeValidationError) Key() bool
Key function returns key value.
func (RuntimeValidationError) Reason ¶
func (e RuntimeValidationError) Reason() string
Reason function returns reason value.
type Vcs ¶
type Vcs struct { Hash string `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Branch string `protobuf:"bytes,2,opt,name=branch,proto3" json:"branch,omitempty"` Tag string `protobuf:"bytes,3,opt,name=tag,proto3" json:"tag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" yaml:"-"` XXX_unrecognized []byte `json:"-" yaml:"-"` XXX_sizecache int32 `json:"-" yaml:"-"` }
Vcs is ValueObject of VCS
func (*Vcs) Descriptor ¶
func (*Vcs) ProtoMessage ¶
func (*Vcs) ProtoMessage()
func (*Vcs) Validate ¶
Validate checks the field values on Vcs with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Vcs) XXX_DiscardUnknown ¶
func (m *Vcs) XXX_DiscardUnknown()
func (*Vcs) XXX_Unmarshal ¶
type VcsValidationError ¶
type VcsValidationError struct {
// contains filtered or unexported fields
}
VcsValidationError is the validation error returned by Vcs.Validate if the designated constraints aren't met.
func (VcsValidationError) Cause ¶
func (e VcsValidationError) Cause() error
Cause function returns cause value.
func (VcsValidationError) Error ¶
func (e VcsValidationError) Error() string
Error satisfies the builtin error interface
func (VcsValidationError) ErrorName ¶
func (e VcsValidationError) ErrorName() string
ErrorName returns error name.
func (VcsValidationError) Field ¶
func (e VcsValidationError) Field() string
Field function returns field value.
func (VcsValidationError) Key ¶
func (e VcsValidationError) Key() bool
Key function returns key value.
func (VcsValidationError) Reason ¶
func (e VcsValidationError) Reason() string
Reason function returns reason value.