Documentation
¶
Index ¶
- type API
- type Args
- type Entry
- type Info
- func (z *Info) DecodeMsg(dc *msgp.Reader) (err error)
- func (z *Info) EncodeMsg(en *msgp.Writer) (err error)
- func (z *Info) MarshalMsg(b []byte) (o []byte, err error)
- func (l Info) Mask() uint64
- func (z *Info) Msgsize() (s int)
- func (l Info) SendLog(node string, logKind madmin.LogMask) bool
- func (z *Info) UnmarshalMsg(bts []byte) (o []byte, err error)
- type ObjectVersion
- func (z *ObjectVersion) DecodeMsg(dc *msgp.Reader) (err error)
- func (z ObjectVersion) EncodeMsg(en *msgp.Writer) (err error)
- func (z ObjectVersion) MarshalMsg(b []byte) (o []byte, err error)
- func (z ObjectVersion) Msgsize() (s int)
- func (z *ObjectVersion) UnmarshalMsg(bts []byte) (o []byte, err error)
- type Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
API - defines the api type and its args.
func (*API) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Args ¶
type Args struct {
Bucket string `json:"bucket,omitempty"`
Object string `json:"object,omitempty"`
VersionID string `json:"versionId,omitempty"`
Objects []ObjectVersion `json:"objects,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
}
Args - defines the arguments for the API.
func (*Args) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Entry ¶
type Entry struct {
Site string `json:"site,omitempty"`
DeploymentID string `json:"deploymentid,omitempty"`
Level madmin.LogKind `json:"level"`
LogKind madmin.LogKind `json:"errKind,omitempty"` // Deprecated Jan 2024
Time time.Time `json:"time"`
API *API `json:"api,omitempty"`
RemoteHost string `json:"remotehost,omitempty"`
Host string `json:"host,omitempty"` // Deprecated Apr 2025
RequestHost string `json:"requestHost,omitempty"`
RequestNode string `json:"requestNode,omitempty"`
RequestID string `json:"requestID,omitempty"`
UserAgent string `json:"userAgent,omitempty"`
Message string `json:"message,omitempty"`
Trace *Trace `json:"error,omitempty"`
}
Entry - defines fields and values of each log entry.
func (*Entry) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Info ¶
Info holds console log messages
func (*Info) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (*Info) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
type ObjectVersion ¶
type ObjectVersion struct {
ObjectName string `json:"objectName"`
VersionID string `json:"versionId,omitempty"`
}
ObjectVersion object version key/versionId
func (*ObjectVersion) DecodeMsg ¶
func (z *ObjectVersion) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (ObjectVersion) EncodeMsg ¶
func (z ObjectVersion) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (ObjectVersion) MarshalMsg ¶
func (z ObjectVersion) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (ObjectVersion) Msgsize ¶
func (z ObjectVersion) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*ObjectVersion) UnmarshalMsg ¶
func (z *ObjectVersion) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type Trace ¶
type Trace struct {
Message string `json:"message,omitempty"`
Source []string `json:"source,omitempty"`
Variables map[string]interface{} `json:"variables,omitempty"`
}
Trace - defines the trace.
func (*Trace) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler