github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/domain/destination/destinationcreator/config.go (about)

     1  package destinationcreator
     2  
     3  // Config holds destination creator service API configuration
     4  type Config struct {
     5  	CorrelationIDsKey string `envconfig:"APP_DESTINATION_CREATOR_CORRELATION_IDS_KEY"`
     6  	*DestinationAPIConfig
     7  	*CertificateAPIConfig
     8  }
     9  
    10  // DestinationAPIConfig holds a configuration specific for the destination API of the destination creator service
    11  type DestinationAPIConfig struct {
    12  	BaseURL              string `envconfig:"APP_DESTINATION_CREATOR_DESTINATION_BASE_URL"`
    13  	Path                 string `envconfig:"APP_DESTINATION_CREATOR_DESTINATION_PATH"`
    14  	RegionParam          string `envconfig:"APP_DESTINATION_CREATOR_DESTINATION_REGION_PARAMETER"`
    15  	SubaccountIDParam    string `envconfig:"APP_DESTINATION_CREATOR_DESTINATION_SUBACCOUNT_ID_PARAMETER"`
    16  	DestinationNameParam string `envconfig:"APP_DESTINATION_CREATOR_DESTINATION_NAME_PARAMETER"`
    17  }
    18  
    19  // CertificateAPIConfig holds a configuration specific for the certificate API of the destination creator service
    20  type CertificateAPIConfig struct {
    21  	BaseURL              string `envconfig:"APP_DESTINATION_CREATOR_CERTIFICATE_BASE_URL"`
    22  	Path                 string `envconfig:"APP_DESTINATION_CREATOR_CERTIFICATE_PATH"`
    23  	RegionParam          string `envconfig:"APP_DESTINATION_CREATOR_CERTIFICATE_REGION_PARAMETER"`
    24  	SubaccountIDParam    string `envconfig:"APP_DESTINATION_CREATOR_CERTIFICATE_SUBACCOUNT_ID_PARAMETER"`
    25  	CertificateNameParam string `envconfig:"APP_DESTINATION_CREATOR_CERTIFICATE_NAME_PARAMETER"`
    26  	FileNameKey          string `envconfig:"APP_DESTINATION_CREATOR_CERTIFICATE_FILE_NAME_KEY"`
    27  	CommonNameKey        string `envconfig:"APP_DESTINATION_CREATOR_CERTIFICATE_COMMON_NAME_KEY"`
    28  	CertificateChainKey  string `envconfig:"APP_DESTINATION_CREATOR_CERTIFICATE_CERT_CHAIN_KEY"`
    29  }