MCPcopy Create free account
hub / github.com/ShipSecAI/studio / isS3Config

Function isS3Config

worker/src/destinations/adapters/s3.ts:119–125  ·  view source on GitHub ↗
(config: unknown)

Source from the content-addressed store, hash-verified

117}
118
119function isS3Config(config: unknown): config is S3AdapterConfig {
120 if (!config || typeof config !== 'object') {
121 return false;
122 }
123 const candidate = config as Partial<S3AdapterConfig>;
124 return typeof candidate.bucket === 'string' && candidate.bucket.length > 0;
125}
126
127function ensureAwsCredentials(config: S3AdapterConfig): AwsCredentialPayload {
128 if (!config.credentials) {

Callers 1

ensureS3ConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected