logs

package
v1.2.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(config *client.Config) (*Client, error)

func (*Client) ListLogFiles

func (c *Client) ListLogFiles(ctx context.Context, req *ListLogFilesRequest) (*ListLogFilesResult, error)

type GenerateLogFileDownloadLinkRequest

type GenerateLogFileDownloadLinkRequest struct {
	client.BaseRequest
	FileName string
}

func (*GenerateLogFileDownloadLinkRequest) Method

func (*GenerateLogFileDownloadLinkRequest) ResourcePath

func (r *GenerateLogFileDownloadLinkRequest) ResourcePath() string

func (*GenerateLogFileDownloadLinkRequest) Validate

type GenerateLogFileDownloadLinkResult

type GenerateLogFileDownloadLinkResult struct {
	client.ResultMetadata
	LogFileDownloadLink string `json:"logFileDownloadLink"`
}

func (*GenerateLogFileDownloadLinkResult) Parse

func (*GenerateLogFileDownloadLinkResult) ValidateResultMetadata

func (gr *GenerateLogFileDownloadLinkResult) ValidateResultMetadata() error

type ListLogFilesRequest

type ListLogFilesRequest struct {
	client.BaseRequest
	Marker string
	Limit  int
}

func (*ListLogFilesRequest) Method

func (r *ListLogFilesRequest) Method() string

func (*ListLogFilesRequest) RequestParams

func (r *ListLogFilesRequest) RequestParams() map[string]string

func (*ListLogFilesRequest) ResourcePath

func (r *ListLogFilesRequest) ResourcePath() string

func (*ListLogFilesRequest) Validate

func (r *ListLogFilesRequest) Validate() error

type ListLogFilesResult

type ListLogFilesResult struct {
	client.ResultMetadata
	Logs   []Log  `json:"data"`
	Marker string `json:"marker"`
}

type Log

type Log struct {
	FileName string `json:"filename,omitempty"`
	Date     uint64 `json:"date,omitempty"`
	Size     uint64 `json:"size,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL