aliyungo: github.com/denverdino/aliyungo/sls Index | Files

package sls

import "github.com/denverdino/aliyungo/sls"

Package sls is a generated protocol buffer package.

It is generated from these files:

sls.proto

It has these top-level messages:

Log
LogGroup
LogGroupList

Index

Package Files

client.go index.go logstore.go logtail.go machine_group.go request.go signature.go sls.pb.go

Constants

const (
    SLSDefaultEndpoint = "log.aliyuncs.com"
    SLSAPIVersion      = "0.6.0"
    METHOD_GET         = "GET"
    METHOD_POST        = "POST"
    METHOD_PUT         = "PUT"
    METHOD_DELETE      = "DELETE"
)
const HeaderSLSPrefix1 = "x-log-"
const HeaderSLSPrefix2 = "x-acs-"

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

func NewClient Uses

func NewClient(region common.Region, internal bool, accessKeyId, accessKeySecret string) *Client

NewClient creates a new instance of ECS client

func NewClientForAssumeRole Uses

func NewClientForAssumeRole(region common.Region, internal bool, accessKeyId, accessKeySecret, securityToken string) *Client

func NewClientWithEndpoint Uses

func NewClientWithEndpoint(endpoint string, region common.Region, internal bool, accessKeyId, accessKeySecret string) *Client

func (*Client) CreateProject Uses

func (client *Client) CreateProject(name string, description string) error

func (*Client) DeleteProject Uses

func (client *Client) DeleteProject(name string) error

func (*Client) Project Uses

func (client *Client) Project(name string) (*Project, error)

func (*Client) PutLogs Uses

func (client *Client) PutLogs(putLogRequest *PutLogsRequest) error

func (*Client) SetDebug Uses

func (client *Client) SetDebug(debug bool)

func (*Client) SetTransport Uses

func (client *Client) SetTransport(transport http.RoundTripper)

SetTransport sets transport to the http client

type Error Uses

type Error struct {
    StatusCode int
    Code       string `json:"errorCode,omitempty"`
    Message    string `json:"errorMessage,omitempty"`
}

func (*Error) Error Uses

func (err *Error) Error() string

type GroupAttribute Uses

type GroupAttribute struct {
    Topic        string `json:"groupTopic,omitempty"`
    ExternalName string `json:"externalName,omitempty"`
}

type IndexConfig Uses

type IndexConfig struct {
    TTL           int                       `json:"ttl,omitempty"`
    LineConfig    IndexLineConfig           `json:"line,omitempty"`
    KeyConfigList map[string]IndexKeyConfig `json:"keys,omitempty"`
}

type IndexKeyConfig Uses

type IndexKeyConfig struct {
    TokenList     []string `json:"token,omitempty"`
    CaseSensitive bool     `json:"caseSensitive,omitempty"`
}

type IndexLineConfig Uses

type IndexLineConfig struct {
    TokenList     []string `json:"token,omitempty"`
    CaseSensitive bool     `json:"caseSensitive"`
    IncludeKeys   []string `json:"include_keys,omitempty"`
    Exclude_keys  []string `json:"exclude_keys,omitempty"`
}

type Log Uses

type Log struct {
    Time             *uint32        `protobuf:"varint,1,req,name=time" json:"time,omitempty"`
    Contents         []*Log_Content `protobuf:"bytes,2,rep,name=contents" json:"contents,omitempty"`
    XXX_unrecognized []byte         `json:"-"`
}

func (*Log) Descriptor Uses

func (*Log) Descriptor() ([]byte, []int)

func (*Log) GetContents Uses

func (m *Log) GetContents() []*Log_Content

func (*Log) GetTime Uses

func (m *Log) GetTime() uint32

func (*Log) ProtoMessage Uses

func (*Log) ProtoMessage()

func (*Log) Reset Uses

func (m *Log) Reset()

func (*Log) String Uses

func (m *Log) String() string

type LogGroup Uses

type LogGroup struct {
    Logs             []*Log  `protobuf:"bytes,1,rep,name=logs" json:"logs,omitempty"`
    Reserved         *string `protobuf:"bytes,2,opt,name=reserved" json:"reserved,omitempty"`
    Topic            *string `protobuf:"bytes,3,opt,name=topic" json:"topic,omitempty"`
    Source           *string `protobuf:"bytes,4,opt,name=source" json:"source,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*LogGroup) Descriptor Uses

func (*LogGroup) Descriptor() ([]byte, []int)

func (*LogGroup) GetLogs Uses

func (m *LogGroup) GetLogs() []*Log

func (*LogGroup) GetReserved Uses

func (m *LogGroup) GetReserved() string

func (*LogGroup) GetSource Uses

func (m *LogGroup) GetSource() string

func (*LogGroup) GetTopic Uses

func (m *LogGroup) GetTopic() string

func (*LogGroup) ProtoMessage Uses

func (*LogGroup) ProtoMessage()

func (*LogGroup) Reset Uses

func (m *LogGroup) Reset()

func (*LogGroup) String Uses

func (m *LogGroup) String() string

type LogGroupList Uses

type LogGroupList struct {
    LogGroupList     []*LogGroup `protobuf:"bytes,1,rep,name=logGroupList" json:"logGroupList,omitempty"`
    XXX_unrecognized []byte      `json:"-"`
}

func (*LogGroupList) Descriptor Uses

func (*LogGroupList) Descriptor() ([]byte, []int)

func (*LogGroupList) GetLogGroupList Uses

func (m *LogGroupList) GetLogGroupList() []*LogGroup

func (*LogGroupList) ProtoMessage Uses

func (*LogGroupList) ProtoMessage()

func (*LogGroupList) Reset Uses

func (m *LogGroupList) Reset()

func (*LogGroupList) String Uses

func (m *LogGroupList) String() string

type Log_Content Uses

type Log_Content struct {
    Key              *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
    Value            *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
    XXX_unrecognized []byte  `json:"-"`
}

func (*Log_Content) Descriptor Uses

func (*Log_Content) Descriptor() ([]byte, []int)

func (*Log_Content) GetKey Uses

func (m *Log_Content) GetKey() string

func (*Log_Content) GetValue Uses

func (m *Log_Content) GetValue() string

func (*Log_Content) ProtoMessage Uses

func (*Log_Content) ProtoMessage()

func (*Log_Content) Reset Uses

func (m *Log_Content) Reset()

func (*Log_Content) String Uses

func (m *Log_Content) String() string

type Logstore Uses

type Logstore struct {
    TTL   int    `json:"ttl,omitempty"`
    Shard int    `json:"shardCount,omitempty"`
    Name  string `json:"logstoreName,omitempty"`
}

type LogstoreList Uses

type LogstoreList struct {
    Count     int      `json:"count,omitempty"`
    Total     int      `json:"total,omitempty"`
    Logstores []string `json:"logstores,omitempty"`
}

type LogtailConfig Uses

type LogtailConfig struct {
    Name         string        `json:"configName,omitempty"`
    InputType    string        `json:"inputType,omitempty"`
    InputDetail  LogtailInput  `json:"inputDetail,omitempty"`
    OutputType   string        `json:"outputType,omitempty"`
    Sample       string        `json:"logSample,omitempty"`
    OutputDetail LogtailOutput `json:"outputDetail,omitempty"`
}

type LogtailConfigList Uses

type LogtailConfigList struct {
    Count   int      `json:"count,omitempty"`
    Total   int      `json:"total,omitempty"`
    Configs []string `json:"configs,omitempty"`
}

type LogtailInput Uses

type LogtailInput struct {
    LogType       string   `json:"logType,omitempty"`
    LogPath       string   `json:"logPath,omitempty"`
    FilePattern   string   `json:"filePattern,omitempty"`
    LocalStorage  bool     `json:"localStorage"`
    TimeFormat    string   `json:"timeFormat"`
    EnableTag     bool     `json:"enable_tag,omitempty"`
    TimeKey       string   `json:"timeKey"`
    LogBeginRegex string   `json:"logBeginRegex,omitempty"`
    Regex         string   `json:"regex,omitempty"`
    Key           []string `json:"key,omitempty"`
    FilterKey     []string `json:"filterKey,omitempty"`
    FilterRegex   []string `json:"filterRegex,omitempty"`
    TopicFormat   string   `json:"topicFormat,omitempty"`
    Separator     string   `json:"separator,omitempty"`
    Quote         string   `json:"quote,omitempty"`
    AutoExtend    bool     `json:"autoExtend,omitempty"`
}

type LogtailOutput Uses

type LogtailOutput struct {
    LogstoreName string `json:"logstoreName,omitempty"`
}

type Machine Uses

type Machine struct {
    Ip            string `json:"ip,omitempty"`
    Uniqueid      string `json:"machine-uniqueid,omitempty"`
    UserdefinedId string `json:"userdefined-id,omitempty"`
}

type MachineGroup Uses

type MachineGroup struct {
    Name                string          `json:"groupName,omitempty"`
    Type                string          `json:"groupType,omitempty"`
    MachineIdentifyType string          `json:"machineIdentifyType,omitempty"`
    Attribute           *GroupAttribute `json:"attribute,omitempty"`
    MachineList         []string        `json:"machineList,omitempty"`
    CreateTime          uint32          `json:"createTime,omitempty"`
    LastModifyTime      uint32          `json:"lastModifyTime,omitempty"`
}

type MachineGroupList Uses

type MachineGroupList struct {
    Groups []string `json:"machinegroups"`
    Count  int      `json:"count"`
    Total  int      `json:"total"`
}

type MachineList Uses

type MachineList struct {
    Count    int       `json:"count,omitempty"`
    Total    int       `json:"total,omitempty"`
    Machines []Machine `json:"machines,omitempty"`
}

type Project Uses

type Project struct {
    Name        string `json:"projectName,omitempty"`
    Description string `json:"description,omitempty"`
    // contains filtered or unexported fields
}

func (*Project) ApplyConfigToMachineGroup Uses

func (proj *Project) ApplyConfigToMachineGroup(machineGroup string, config string) error

func (*Project) CreateConfig Uses

func (proj *Project) CreateConfig(config *LogtailConfig) error

func (*Project) CreateIndex Uses

func (proj *Project) CreateIndex(logstore string, indexConfig *IndexConfig) error

func (*Project) CreateLogstore Uses

func (proj *Project) CreateLogstore(logstore *Logstore) error

func (*Project) CreateMachineGroup Uses

func (proj *Project) CreateMachineGroup(machineGroup *MachineGroup) error

func (*Project) DeleteConfig Uses

func (proj *Project) DeleteConfig(configName string) error

func (*Project) DeleteIndex Uses

func (proj *Project) DeleteIndex(logstore string) error

func (*Project) DeleteLogstore Uses

func (proj *Project) DeleteLogstore(name string) error

func (*Project) DeleteMachineGroup Uses

func (proj *Project) DeleteMachineGroup(name string) error

func (*Project) GetAppliedConfigs Uses

func (proj *Project) GetAppliedConfigs(machineGroup string) ([]string, error)

func (*Project) GetAppliedMachineGroups Uses

func (proj *Project) GetAppliedMachineGroups(configName string) ([]string, error)

func (*Project) GetConfig Uses

func (proj *Project) GetConfig(name string) (*LogtailConfig, error)

func (*Project) GetIndex Uses

func (proj *Project) GetIndex(logstore string) (*IndexConfig, error)

func (*Project) GetLogstore Uses

func (proj *Project) GetLogstore(name string) (*Logstore, error)

func (*Project) ListConfig Uses

func (proj *Project) ListConfig(offset, size int) (*LogtailConfigList, error)

func (*Project) ListLogstore Uses

func (proj *Project) ListLogstore() (*LogstoreList, error)

func (*Project) ListMachineGroup Uses

func (proj *Project) ListMachineGroup(offset, size int) (*MachineGroupList, error)

func (*Project) ListMachines Uses

func (proj *Project) ListMachines(machineGroup string, offset, size int) (*MachineList, error)

func (*Project) ListShards Uses

func (proj *Project) ListShards(logstoreName string) ([]int, error)

func (*Project) MachineGroup Uses

func (proj *Project) MachineGroup(name string) (*MachineGroup, error)

func (*Project) UpdateConfig Uses

func (proj *Project) UpdateConfig(config *LogtailConfig) error

func (*Project) UpdateIndex Uses

func (proj *Project) UpdateIndex(logstore string, indexConfig *IndexConfig) error

func (*Project) UpdateLogstore Uses

func (proj *Project) UpdateLogstore(logstore *Logstore) error

func (*Project) UpdateMachineGroup Uses

func (proj *Project) UpdateMachineGroup(machineGroup *MachineGroup) error

type PutLogsRequest Uses

type PutLogsRequest struct {
    Project  string
    LogStore string
    LogItems LogGroup
    HashKey  string
}

Package sls imports 19 packages (graph) and is imported by 2 packages. Updated 2020-02-12. Refresh now. Tools for package owners.