updated based on the feedbacks provided

This commit is contained in:
keshan
2020-12-21 16:25:49 +05:30
parent 359f9d2d8c
commit e53d4a2ca8
2 changed files with 49 additions and 36 deletions
+43 -33
View File
@@ -36,7 +36,7 @@ export interface Config {
* @see http://backstage.io/docs/features/techdocs/configuration
* @visibility frontend
*/
builder: string;
builder: 'local' | 'external';
/**
* techdocs publisher information
@@ -54,38 +54,48 @@ export interface Config {
/**
* techdocs publisher information
*/
publisher?: {
/**
* attr: 'type' - accepts a string value
* e.g. type: 'local'
* aleternatives: 'googleGcs' etc.
* @see http://backstage.io/docs/features/techdocs/configuration
*/
type: string;
publisher?:
| {
/**
* attr: 'type' - accepts a string value
* e.g. type: 'local'
* aleternatives: 'googleGcs' etc.
* @see http://backstage.io/docs/features/techdocs/configuration
*/
type: 'local' | 'awsS3';
}
| {
/**
* attr: 'type' - accepts a string value
* e.g. type: 'googleGcs'
* aleternatives: 'googleGcs' etc.
* @see http://backstage.io/docs/features/techdocs/configuration
*/
type: 'googleGcs';
/**
* googleGcs required when 'type' is set to googleGcs, skip otherwise
*/
googleGcs?: {
/**
* API key used to write to a storage bucket.
* attr: 'credentials' - accepts a string value
* @visibility secret
*/
credentials: string;
/**
* GCP Project ID where the Cloud Storage Bucket is hosted.
* attr: 'projectId' - accepts a string value
* @visibility secret
*/
projectId: string;
/**
* Cloud Storage Bucket Name
* attr: 'bucketName' - accepts a string value
* @visibility secret
*/
bucketName: string;
};
};
/**
* googleGcs required when 'type' is set to googleGcs
*/
googleGcs?: {
/**
* API key used to write to a storage bucket.
* attr: 'credentials' - accepts a string value
* @visibility secret
*/
credentials: string;
/**
* GCP Project ID where the Cloud Storage Bucket is hosted.
* attr: 'projectId' - accepts a string value
* @visibility secret
*/
projectId: string;
/**
* Cloud Storage Bucket Name
* attr: 'bucketName' - accepts a string value
* @visibility secret
*/
bucketName: string;
};
};
};
}