Documentation ¶
Index ¶
- type ApiObject
- type ApiResponse
- type Client
- type Log
- type LogClient
- type LogCreateRequest
- type LogCreateResponse
- type LogDeleteRequest
- type LogDeleteResponse
- type LogReadRequest
- type LogReadResponse
- type LogSet
- type LogSetClient
- func (l *LogSetClient) Create(createRequest LogSetCreateRequest) (*LogSet, error)
- func (l *LogSetClient) Delete(deleteRequest LogSetDeleteRequest) error
- func (l *LogSetClient) Read(readRequest LogSetReadRequest) (*LogSet, error)
- func (l *LogSetClient) Update(updateRequest LogSetUpdateRequest) (*LogSet, error)
- type LogSetCreateRequest
- type LogSetCreateResponse
- type LogSetDeleteRequest
- type LogSetDeleteResponse
- type LogSetReadRequest
- type LogSetReadResponse
- type LogSetUpdateRequest
- type LogSetUpdateResponse
- type LogType
- type LogTypeClient
- type LogTypeListRequest
- type LogTypeListResponse
- type LogUpdateRequest
- type LogUpdateResponse
- type User
- type UserClient
- type UserReadRequest
- type UserReadResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
type Client ¶
type Client struct { Log *LogClient LogSet *LogSetClient User *UserClient LogType *LogTypeClient }
type LogClient ¶
type LogClient struct {
AccountKey string
}
func NewLogClient ¶
func (*LogClient) Delete ¶
func (l *LogClient) Delete(deleteRequest LogDeleteRequest) error
type LogCreateRequest ¶
type LogCreateResponse ¶
type LogCreateResponse struct { Key string `json:"log_key"` Worker string `json:"worker"` Log Log `json:"log"` ApiResponse }
type LogDeleteRequest ¶
type LogDeleteResponse ¶
type LogDeleteResponse struct { LogSetKey string `json:"host_key"` UserKey string `json:"user_key"` Key string `json:"log_key"` Worker string `json:"worker"` ApiResponse }
type LogReadRequest ¶
type LogReadResponse ¶
type LogReadResponse struct { Log Log `json:"log"` ApiResponse }
type LogSetClient ¶
type LogSetClient struct {
AccountKey string
}
func NewLogSetClient ¶
func NewLogSetClient(account_key string) *LogSetClient
func (*LogSetClient) Create ¶
func (l *LogSetClient) Create(createRequest LogSetCreateRequest) (*LogSet, error)
func (*LogSetClient) Delete ¶
func (l *LogSetClient) Delete(deleteRequest LogSetDeleteRequest) error
func (*LogSetClient) Read ¶
func (l *LogSetClient) Read(readRequest LogSetReadRequest) (*LogSet, error)
func (*LogSetClient) Update ¶
func (l *LogSetClient) Update(updateRequest LogSetUpdateRequest) (*LogSet, error)
type LogSetCreateRequest ¶
type LogSetCreateResponse ¶
type LogSetCreateResponse struct { AgentKey string `json:"agent_key"` HostKey string `json:"host_key"` LogSet `json:"host"` ApiResponse }
type LogSetDeleteRequest ¶
type LogSetDeleteRequest struct {
Key string
}
type LogSetDeleteResponse ¶
type LogSetDeleteResponse struct { UserKey string `json:"user_key"` Key string `json:"host_key"` Worker string `json:"worker"` ApiResponse }
type LogSetReadRequest ¶
type LogSetReadResponse ¶
type LogSetReadResponse struct { LogSet LogSet ApiResponse }
type LogSetUpdateRequest ¶
type LogSetUpdateResponse ¶
type LogSetUpdateResponse struct { AgentKey string `json:"agent_key"` Key string `json:"host_key"` LogSet `json:"host"` ApiResponse }
type LogTypeClient ¶
type LogTypeClient struct {
AccountKey string
}
func NewLogTypeClient ¶
func NewLogTypeClient(account_key string) *LogTypeClient
func (*LogTypeClient) Read ¶
func (u *LogTypeClient) Read(defaultLogTypeListRequest LogTypeListRequest) ([]LogType, error)
func (*LogTypeClient) ReadDefault ¶
func (u *LogTypeClient) ReadDefault(defaultLogTypeListRequest LogTypeListRequest) ([]LogType, error)
type LogTypeListRequest ¶
type LogTypeListRequest struct { }
type LogTypeListResponse ¶
type LogTypeListResponse struct { List []LogType ApiResponse }
type LogUpdateRequest ¶
type LogUpdateResponse ¶
type LogUpdateResponse struct { Key string `json:"log_key"` Worker string `json:"worker"` Log Log `json:"log"` ApiResponse }
type UserClient ¶
type UserClient struct {
UserKey string
}
func NewUserClient ¶
func NewUserClient(account_key string) *UserClient
func (*UserClient) Read ¶
func (u *UserClient) Read(readRequest UserReadRequest) (*UserReadResponse, error)
type UserReadRequest ¶
type UserReadRequest struct { }
type UserReadResponse ¶
type UserReadResponse struct { User ApiResponse }
Click to show internal directories.
Click to hide internal directories.