-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'opensearch-project:main' into migrate-plugins-off-of-pl…
…ugin-setting-for-configuration-classes
- Loading branch information
Showing
178 changed files
with
4,869 additions
and
1,536 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# This should match the owning team set up in https://github.com/orgs/opensearch-project/teams | ||
* @sb2k16 @chenqi0805 @engechas @graytaylor0 @dinujoh @kkondaka @KarstenSchnitter @dlvenable @oeyh | ||
* @sb2k16 @chenqi0805 @engechas @san81 @graytaylor0 @dinujoh @kkondaka @KarstenSchnitter @dlvenable @oeyh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...-prepper-api/src/main/java/org/opensearch/dataprepper/model/annotations/Experimental.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
package org.opensearch.dataprepper.model.annotations; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* Marks a Data Prepper plugin as experimental. | ||
* <p> | ||
* Experimental plugins do not have the same compatibility guarantees as other plugins and may be unstable. | ||
* They may have breaking changes between minor versions and may even be removed. | ||
* <p> | ||
* Data Prepper administrators must enable experimental plugins in order to use them. | ||
* Otherwise, they are not available to use with pipelines. | ||
* | ||
* @since 2.11 | ||
*/ | ||
@Documented | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ElementType.TYPE}) | ||
public @interface Experimental { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ava/org/opensearch/dataprepper/model/plugin/FailedToUpdatePluginConfigValueException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
*/ | ||
package org.opensearch.dataprepper.model.plugin; | ||
|
||
/** | ||
* Exception thrown when a secret could not be updated. | ||
* | ||
* @since 2.11 | ||
*/ | ||
public class FailedToUpdatePluginConfigValueException extends RuntimeException { | ||
|
||
public FailedToUpdatePluginConfigValueException(final String message) { | ||
super(message); | ||
} | ||
|
||
public FailedToUpdatePluginConfigValueException(final String message, Throwable e) { | ||
super(message, e); | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...pi/src/main/java/org/opensearch/dataprepper/model/plugin/PluginConfigValueTranslator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,48 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
*/ | ||
package org.opensearch.dataprepper.model.plugin; | ||
|
||
/** | ||
* Interface for a Plugin configuration value translator. | ||
* It translates a string expression that is describing a secret store Id and secret Key in to a secretValue | ||
* extracted from corresponding secret store. | ||
* | ||
* @since 2.0 | ||
*/ | ||
|
||
public interface PluginConfigValueTranslator { | ||
/** | ||
* Translates a string expression that is describing a secret store Id and secret Key in to a secretValue | ||
* extracted from corresponding secret store. | ||
* Example expression: ${{aws_secrets:secretId:secretKey}} | ||
* | ||
* @param value the string value to translate | ||
* @return the translated object | ||
*/ | ||
Object translate(final String value); | ||
|
||
/** | ||
* Returns the prefix for this translator. | ||
* | ||
* @return the prefix for this translator | ||
*/ | ||
String getPrefix(); | ||
|
||
/** | ||
* Translates a string expression that is describing a secret store Id and secret Key in to an instance | ||
* of PluginConfigVariable with secretValue extracted from corresponding secret store. Additionally, | ||
* this PluginConfigVariable helps with updating the secret value in the secret store, if required. | ||
* Example expression: ${{aws_secrets:secretId:secretKey}} | ||
* | ||
* @param value the string value to translate | ||
* @return the translated object | ||
*/ | ||
PluginConfigVariable translateToPluginConfigVariable(final String value); | ||
} |
40 changes: 40 additions & 0 deletions
40
...epper-api/src/main/java/org/opensearch/dataprepper/model/plugin/PluginConfigVariable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
*/ | ||
package org.opensearch.dataprepper.model.plugin; | ||
|
||
/** | ||
* Interface for a Extension Plugin configuration variable. | ||
* It gives access to the details of a defined extension variable. | ||
* | ||
* @since 2.11 | ||
*/ | ||
public interface PluginConfigVariable { | ||
|
||
/** | ||
* Returns the value of this variable. | ||
* | ||
* @return the value of this variable | ||
*/ | ||
Object getValue(); | ||
|
||
/** | ||
* If this variable is updatable, this method helps to set a new value for this variable | ||
* | ||
* @param updatedValue the new value to set | ||
*/ | ||
void setValue(Object updatedValue); | ||
|
||
/** | ||
* Returns if the variable is updatable. | ||
* | ||
* @return true if this variable is updatable, false otherwise | ||
*/ | ||
boolean isUpdatable(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.