Versions in this module Expand all Collapse all v1 v1.8.0 Mar 6, 2017 Changes in this version + const CacheSize + const Delimiter + const OffsetNewest + const OffsetOldest + var ErrIntOverflowLog = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthLog = fmt.Errorf("proto: negative length found during unmarshaling") + func NewAliLS() logs.Logger + type AliLSConfig struct + Endpoint string + FlushWhen int + KeyID string + KeySecret string + Level int + LogStore string + Project string + Source string + Topics []string + type InputDetail struct + FilePattern string + FilterKeys []string + FilterRegex []string + Keys []string + LocalStorage bool + LogBeginRegex string + LogPath string + LogType string + Regex string + TimeFormat string + TopicFormat string + type Log struct + Contents []*Log_Content + Time *uint32 + XXX_unrecognized []byte + func (*Log) ProtoMessage() + func (m *Log) GetContents() []*Log_Content + func (m *Log) GetTime() uint32 + func (m *Log) Marshal() (data []byte, err error) + func (m *Log) MarshalTo(data []byte) (int, error) + func (m *Log) Reset() + func (m *Log) Size() (n int) + func (m *Log) String() string + func (m *Log) Unmarshal(data []byte) error + type LogConfig struct + CreateTime uint32 + InputDetail InputDetail + InputType string + LastModifyTime uint32 + Name string + OutputDetail OutputDetail + OutputType string + func (c *LogConfig) GetAppliedMachineGroup(confName string) (groupNames []string, err error) + type LogGroup struct + Logs []*Log + Reserved *string + Source *string + Topic *string + XXX_unrecognized []byte + func (*LogGroup) ProtoMessage() + func (m *LogGroup) GetLogs() []*Log + func (m *LogGroup) GetReserved() string + func (m *LogGroup) GetSource() string + func (m *LogGroup) GetTopic() string + func (m *LogGroup) Marshal() (data []byte, err error) + func (m *LogGroup) MarshalTo(data []byte) (int, error) + func (m *LogGroup) Reset() + func (m *LogGroup) Size() (n int) + func (m *LogGroup) String() string + func (m *LogGroup) Unmarshal(data []byte) error + type LogGroupList struct + LogGroups []*LogGroup + XXX_unrecognized []byte + func LogsBytesDecode(data []byte) (gl *LogGroupList, err error) + func (*LogGroupList) ProtoMessage() + func (m *LogGroupList) GetLogGroups() []*LogGroup + func (m *LogGroupList) Marshal() (data []byte, err error) + func (m *LogGroupList) MarshalTo(data []byte) (int, error) + func (m *LogGroupList) Reset() + func (m *LogGroupList) Size() (n int) + func (m *LogGroupList) String() string + func (m *LogGroupList) Unmarshal(data []byte) error + type LogProject struct + AccessKeyId string + AccessKeySecret string + Endpoint string + Name string + func NewLogProject(name, endpoint, accessKeyId, accessKeySecret string) (p *LogProject, err error) + func (p *LogProject) ApplyConfigToMachineGroup(confName, groupName string) (err error) + func (p *LogProject) CreateConfig(c *LogConfig) (err error) + func (p *LogProject) CreateLogStore(name string, ttl, shardCnt int) (err error) + func (p *LogProject) CreateMachineGroup(m *MachineGroup) (err error) + func (p *LogProject) DeleteConfig(name string) (err error) + func (p *LogProject) DeleteLogStore(name string) (err error) + func (p *LogProject) DeleteMachineGroup(name string) (err error) + func (p *LogProject) GetAppliedConfigs(groupName string) (confNames []string, err error) + func (p *LogProject) GetAppliedMachineGroups(confName string) (groupNames []string, err error) + func (p *LogProject) GetConfig(name string) (c *LogConfig, err error) + func (p *LogProject) GetLogStore(name string) (s *LogStore, err error) + func (p *LogProject) GetMachineGroup(name string) (m *MachineGroup, err error) + func (p *LogProject) ListConfig(offset, size int) (cfgNames []string, total int, err error) + func (p *LogProject) ListLogStore() (storeNames []string, err error) + func (p *LogProject) ListMachineGroup(offset, size int) (m []string, total int, err error) + func (p *LogProject) RemoveConfigFromMachineGroup(confName, groupName string) (err error) + func (p *LogProject) UpdateConfig(c *LogConfig) (err error) + func (p *LogProject) UpdateLogStore(name string, ttl, shardCnt int) (err error) + func (p *LogProject) UpdateMachineGroup(m *MachineGroup) (err error) + type LogStore struct + CreateTime uint32 + LastModifyTime uint32 + Name string + ShardCount int + TTL int + func (s *LogStore) GetCursor(shardId int, from string) (cursor string, err error) + func (s *LogStore) GetLogs(shardId int, cursor string, logGroupMaxCount int) (gl *LogGroupList, nextCursor string, err error) + func (s *LogStore) GetLogsBytes(shardId int, cursor string, logGroupMaxCount int) (out []byte, nextCursor string, err error) + func (s *LogStore) ListShards() (shardIDs []int, err error) + func (s *LogStore) PutLogs(lg *LogGroup) (err error) + type Log_Content struct + Key *string + Value *string + XXX_unrecognized []byte + func (*Log_Content) ProtoMessage() + func (m *Log_Content) GetKey() string + func (m *Log_Content) GetValue() string + func (m *Log_Content) Marshal() (data []byte, err error) + func (m *Log_Content) MarshalTo(data []byte) (int, error) + func (m *Log_Content) Reset() + func (m *Log_Content) Size() (n int) + func (m *Log_Content) String() string + func (m *Log_Content) Unmarshal(data []byte) error + type MachinGroupAttribute struct + ExternalName string + TopicName string + type Machine struct + IP string + UniqueId string + UserdefinedId string + type MachineGroup struct + Attribute MachinGroupAttribute + CreateTime uint32 + LastModifyTime uint32 + MachineIdList []string + MachineIdType string + Name string + Type string + func (m *MachineGroup) GetAppliedConfigs() (confNames []string, err error) + func (m *MachineGroup) ListMachines() (ms []*Machine, total int, err error) + type MachineList struct + Machines []*Machine + Total int + type OutputDetail struct + Endpoint string + LogStoreName string + type Shard struct + ShardID int