ROOTPLOIT
Server: LiteSpeed
System: Linux in-mum-web1878.main-hosting.eu 5.14.0-570.21.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 11 07:22:35 EDT 2025 x86_64
User: u435929562 (435929562)
PHP: 7.4.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/go/pkg/mod/github.com/aws/[email protected]/aws/endpoints/v3model_shared_test.go
//go:build go1.9
// +build go1.9

package endpoints

import "regexp"

type LoggerFunc func(...interface{})

func (l LoggerFunc) Log(i ...interface{}) {
	l(i...)
}

var testPartitions = partitions{
	partition{
		ID:        "part-id",
		Name:      "partitionName",
		DNSSuffix: "amazonaws.com",
		RegionRegex: regionRegex{
			Regexp: func() *regexp.Regexp {
				reg, _ := regexp.Compile("^(us|eu|ap|sa|ca)\\-\\w+\\-\\d+$")
				return reg
			}(),
		},
		Defaults: endpointDefaults{
			{}: {
				Hostname:          "{service}.{region}.{dnsSuffix}",
				Protocols:         []string{"https"},
				SignatureVersions: []string{"v4"},
			},
		},
		Regions: regions{
			"us-east-1": region{
				Description: "region description",
			},
			"us-west-2": region{},
		},
		Services: services{
			"s3": service{},
			"service1": service{
				Defaults: endpointDefaults{
					{}: {
						CredentialScope: credentialScope{
							Service: "service1",
						},
					},
				},
				Endpoints: serviceEndpoints{
					{Region: "us-east-1"}: {},
					{Region: "us-west-2"}: {},
					{
						Region:  "us-west-2",
						Variant: dualStackVariant,
					}: {
						Hostname: "{service}.dualstack.{region}.{dnsSuffix}",
					},
				},
			},
			"service2": service{
				Defaults: endpointDefaults{
					{}: {
						CredentialScope: credentialScope{
							Service: "service2",
						},
					},
				},
			},
			"httpService": service{
				Defaults: endpointDefaults{
					{}: {
						Protocols: []string{"http"},
					},
				},
			},
			"globalService": service{
				IsRegionalized:    boxedFalse,
				PartitionEndpoint: "aws-global",
				Endpoints: serviceEndpoints{
					{
						Region: "aws-global",
					}: {
						CredentialScope: credentialScope{
							Region: "us-east-1",
						},
						Hostname: "globalService.amazonaws.com",
					},
					{
						Region: "fips-aws-global",
					}: {
						CredentialScope: credentialScope{
							Region: "us-east-1",
						},
						Hostname: "globalService-fips.amazonaws.com",
					},
				},
			},
		},
	},
}