plugins/processors/awsapplicationsignals/config/resolvers.go (42 lines of code) (raw):

// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT package config const ( // PlatformGeneric Platforms other than Amazon EKS PlatformGeneric = "generic" // PlatformEKS Amazon EKS platform PlatformEKS = "eks" // PlatformK8s Native Kubernetes PlatformK8s = "k8s" // PlatformEC2 Amazon EC2 platform PlatformEC2 = "ec2" // PlatformECS Amazon ECS PlatformECS = "ecs" ) type Resolver struct { Name string `mapstructure:"name"` Platform string `mapstructure:"platform"` } func NewEKSResolver(name string) Resolver { return Resolver{ Name: name, Platform: PlatformEKS, } } func NewK8sResolver(name string) Resolver { return Resolver{ Name: name, Platform: PlatformK8s, } } func NewEC2Resolver(name string) Resolver { return Resolver{ Name: name, Platform: PlatformEC2, } } func NewECSResolver(name string) Resolver { return Resolver{ Name: name, Platform: PlatformECS, } } func NewGenericResolver(name string) Resolver { return Resolver{ Name: name, Platform: PlatformGeneric, } }