Documentation
¶
Index ¶
- Constants
- type AwsLogsType
- type AwsRegion
- type S3FetcherClient
- func (c *S3FetcherClient) CreateS3Fetcher(create S3FetcherRequest) (*S3FetcherResponse, error)
- func (c *S3FetcherClient) DeleteS3Fetcher(s3FetcherId int64) error
- func (c *S3FetcherClient) GetS3Fetcher(s3FetcherId int64) (*S3FetcherResponse, error)
- func (c *S3FetcherClient) ListS3Fetchers() ([]S3FetcherResponse, error)
- func (c *S3FetcherClient) UpdateS3Fetcher(s3FetcherId int64, update S3FetcherRequest) error
- type S3FetcherRequest
- type S3FetcherResponse
Constants ¶
View Source
const ( RegionUsEast1 AwsRegion = "US_EAST_1" RegionUsEast2 AwsRegion = "US_EAST_2" RegionUsWest1 AwsRegion = "US_WEST_1" RegionUsWest2 AwsRegion = "US_WEST_2" RegionEuWest1 AwsRegion = "EU_WEST_1" RegionEuWest2 AwsRegion = "EU_WEST_2" RegionEuWest3 AwsRegion = "EU_WEST_3" RegionEuCentral1 AwsRegion = "EU_CENTRAL_1" RegionApNortheast1 AwsRegion = "AP_NORTHEAST_1" RegionApNortheast2 AwsRegion = "AP_NORTHEAST_2" RegionApSoutheast1 AwsRegion = "AP_SOUTHEAST_1" RegionApSoutheast2 AwsRegion = "AP_SOUTHEAST_2" RegionSaEast1 AwsRegion = "SA_EAST_1" RegionApSouth1 AwsRegion = "AP_SOUTH_1" RegionCaCentral1 AwsRegion = "CA_CENTRAL_1" LogsTypeElb AwsLogsType = "elb" LogsTypeVpcFlow AwsLogsType = "vpcflow" LogsTypeS3Access AwsLogsType = "S3Access" LogsTypeCloudfront AwsLogsType = "cloudfront" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsLogsType ¶
type AwsLogsType string
func GetValidLogsType ¶
func GetValidLogsType() []AwsLogsType
func (AwsLogsType) String ¶
func (t AwsLogsType) String() string
type S3FetcherClient ¶
func New ¶
func New(apiToken, baseUrl string) (*S3FetcherClient, error)
func (*S3FetcherClient) CreateS3Fetcher ¶
func (c *S3FetcherClient) CreateS3Fetcher(create S3FetcherRequest) (*S3FetcherResponse, error)
CreateS3Fetcher creates a new S3 fetcher if successful, an error otherwise
func (*S3FetcherClient) DeleteS3Fetcher ¶
func (c *S3FetcherClient) DeleteS3Fetcher(s3FetcherId int64) error
DeleteS3Fetcher deletes a s3 fetcher specified by its unique id, returns an error if a problem is encountered
func (*S3FetcherClient) GetS3Fetcher ¶
func (c *S3FetcherClient) GetS3Fetcher(s3FetcherId int64) (*S3FetcherResponse, error)
GetS3Fetcher returns a s3 fetcher given its unique identifier, an error otherwise
func (*S3FetcherClient) ListS3Fetchers ¶
func (c *S3FetcherClient) ListS3Fetchers() ([]S3FetcherResponse, error)
ListS3Fetchers returns all the s3 fetchers in an array, returns an error if any problem occurs during the API call
func (*S3FetcherClient) UpdateS3Fetcher ¶
func (c *S3FetcherClient) UpdateS3Fetcher(s3FetcherId int64, update S3FetcherRequest) error
type S3FetcherRequest ¶
type S3FetcherRequest struct { AccessKey string `json:"accessKey,omitempty"` SecretKey string `json:"secretKey,omitempty"` Arn string `json:"arn,omitempty"` Bucket string `json:"bucket"` Prefix string `json:"prefix,omitempty"` Active *bool `json:"active"` AddS3ObjectKeyAsLogField *bool `json:"addS3ObjectKeyAsLogField,omitempty"` Region AwsRegion `json:"region"` LogsType AwsLogsType `json:"logsType"` }
type S3FetcherResponse ¶
type S3FetcherResponse struct { AccessKey string `json:"accessKey,omitempty"` Arn string `json:"arn,omitempty"` Bucket string `json:"bucket"` Prefix string `json:"prefix,omitempty"` Active bool `json:"active"` AddS3ObjectKeyAsLogField bool `json:"addS3ObjectKeyAsLogField,omitempty"` Region AwsRegion `json:"region"` LogsType AwsLogsType `json:"logsType"` Id int64 `json:"id,omitempty"` }
Click to show internal directories.
Click to hide internal directories.