Documentation
¶
Index ¶
- Constants
- func BindCloudWatchLogForwarder(input *CloudWatchLogForwarderConfig) *cmv1.LogForwarderBuilder
- func BindS3LogForwarder(input *S3LogForwarderConfig) *cmv1.LogForwarderBuilder
- func ConstructPodGroupsHelpMessage(options []*cmv1.LogForwarderGroupVersions) (s string)
- func ConstructPodGroupsInteractiveOptions(options []*cmv1.LogForwarderGroupVersions) (l []string)
- func LogForwarderObjectAsString(logForwarder *cmv1.LogForwarder) string
- func TestLogforwarding(t *testing.T)
- type CloudWatchLogForwarderConfig
- type LogForwarderYaml
- type S3LogForwarderConfig
Constants ¶
View Source
const FlagName = "log-fwd-config"
FlagName contains the common log forwarding config command flag name
View Source
const LogFwdConfigHelpMessage = "A path to a log forwarding config file. This should be a YAML file with the" +
" following structure:\n\n" +
"cloudwatch:\n" +
" cloudwatch_log_role_arn: \"role_arn_here\"\n" +
" cloudwatch_log_group_name: \"group_name_here\"\n" +
" applications: [\"example_app_1\", \"example_app_2\"]\n" +
" groups: [\"group-name\", \"group_name-2\"]\n" +
"s3:\n" +
" s3_config_bucket_name: \"bucket_name_here\"\n" +
" s3_config_bucket_prefix: \"bucket_prefix_here\"\n" +
" applications: [\"example_app_1\", \"example_app_2\"]\n" +
" groups: [\"group-name\"]"
Variables ¶
This section is empty.
Functions ¶
func BindCloudWatchLogForwarder ¶
func BindCloudWatchLogForwarder(input *CloudWatchLogForwarderConfig) *cmv1.LogForwarderBuilder
func BindS3LogForwarder ¶
func BindS3LogForwarder(input *S3LogForwarderConfig) *cmv1.LogForwarderBuilder
func ConstructPodGroupsHelpMessage ¶
func ConstructPodGroupsHelpMessage(options []*cmv1.LogForwarderGroupVersions) (s string)
func ConstructPodGroupsInteractiveOptions ¶
func ConstructPodGroupsInteractiveOptions(options []*cmv1.LogForwarderGroupVersions) (l []string)
func LogForwarderObjectAsString ¶
func LogForwarderObjectAsString(logForwarder *cmv1.LogForwarder) string
func TestLogforwarding ¶
Types ¶
type CloudWatchLogForwarderConfig ¶
type CloudWatchLogForwarderConfig struct {
Applications []string `yaml:"applications,omitempty"`
GroupsLogVersions []string `yaml:"groups,omitempty"`
CloudWatchLogRoleArn string `yaml:"cloudwatch_log_role_arn,omitempty"`
CloudWatchLogGroupName string `yaml:"cloudwatch_log_group_name,omitempty"`
}
CloudWatchLogForwarderConfig represents the log forward config for CloudWatch
type LogForwarderYaml ¶
type LogForwarderYaml struct {
S3 *S3LogForwarderConfig `yaml:"s3"`
CloudWatch *CloudWatchLogForwarderConfig `yaml:"cloudwatch"`
}
func UnmarshalLogForwarderConfigYaml ¶
func UnmarshalLogForwarderConfigYaml(yamlFile string) (*LogForwarderYaml, error)
type S3LogForwarderConfig ¶
type S3LogForwarderConfig struct {
Applications []string `yaml:"applications,omitempty"`
GroupsLogVersions []string `yaml:"groups,omitempty"`
S3ConfigBucketName string `yaml:"s3_config_bucket_name,omitempty"`
S3ConfigBucketPrefix string `yaml:"s3_config_bucket_prefix,omitempty"`
}
S3LogForwarderConfig represents the log forward config for S3
Click to show internal directories.
Click to hide internal directories.