Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function: Initial provider defined functions implementation #889

Merged
merged 28 commits into from
Dec 19, 2023
Merged

Commits on Dec 11, 2023

  1. function: Initial provider defined functions implementation

    Reference: hashicorp/terraform-plugin-go#351
    
    The next versions of the plugin protocol (5.5/6.5) include support for provider defined functions. This change includes initial implementation of that support including:
    
    - Temporarily pointing at terraform-plugin-go with provider function support (will be pointed at final terraform-plugin-go release before merge)
    - New `function` package with all exposed Go types for provider developers to implement provider functions
    - New `diag` package support for diagnostics with optional function argument information
    - Implementation of new `GetFunctions` and `CallFunction` RPCs in the internal framework server, protocol 5/6 servers, and data handling between all layers
    - Initial website documentation
    
    This functionality may be released as experimental without compatibility promises until the protocol and Terraform's handling of provider functions is finalized. In that situation, all Go and website documentation will include additional callouts about the experimental nature of the functionality.
    bflad committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    e15147e View commit details
    Browse the repository at this point in the history
  2. Update CHANGELOG for #889

    bflad committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    113cc9f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e5c1f6c View commit details
    Browse the repository at this point in the history
  4. website: Always recommend pointer types with collection/object elemen…

    …ts/attributes
    
    The `AllowNullValue` parameter setting only prevents the value itself from being null, not elements/attributes.
    bflad committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    3735dc1 View commit details
    Browse the repository at this point in the history
  5. website: Call out function argument collection/object null element/at…

    …tribute value testing
    bflad committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    316b82b View commit details
    Browse the repository at this point in the history
  6. website: Further clarify function argument collection/object null ele…

    …ment/attribute testing
    bflad committed Dec 11, 2023
    Configuration menu
    Copy the full SHA
    4c51f47 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2023

  1. Configuration menu
    Copy the full SHA
    3ebd4f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e68d4ea View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2023

  1. Configuration menu
    Copy the full SHA
    6ea401c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8adbb8d View commit details
    Browse the repository at this point in the history
  3. Update CHANGELOG for #889

    bflad committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    7bb93c4 View commit details
    Browse the repository at this point in the history
  4. deps: Update [email protected]

    bflad committed Dec 14, 2023
    Configuration menu
    Copy the full SHA
    2ffc5d8 View commit details
    Browse the repository at this point in the history

Commits on Dec 15, 2023

  1. Apply suggestions from code review

    Co-authored-by: Austin Valle <[email protected]>
    bflad and austinvalle authored Dec 15, 2023
    Configuration menu
    Copy the full SHA
    9979fe6 View commit details
    Browse the repository at this point in the history
  2. Update website/docs/plugin/framework/functions/index.mdx

    Co-authored-by: Austin Valle <[email protected]>
    bflad and austinvalle authored Dec 15, 2023
    Configuration menu
    Copy the full SHA
    2471135 View commit details
    Browse the repository at this point in the history
  3. Apply suggestions from code review

    Co-authored-by: Austin Valle <[email protected]>
    bflad and austinvalle authored Dec 15, 2023
    Configuration menu
    Copy the full SHA
    4d992e5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f1aa0f6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    1c8f974 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    258e080 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    eec0477 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    b2f1c6f View commit details
    Browse the repository at this point in the history
  9. function: Additional Go documentation details about argument data bei…

    …ng zero-based and how to handle variadic parameters
    bflad committed Dec 15, 2023
    Configuration menu
    Copy the full SHA
    07a8699 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c4a1246 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9ebe290 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2023

  1. Configuration menu
    Copy the full SHA
    a93d54b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ed19111 View commit details
    Browse the repository at this point in the history
  3. Merge branch 'functions' of ssh://github.com/hashicorp/terraform-plug…

    …in-framework into functions
    bflad committed Dec 18, 2023
    Configuration menu
    Copy the full SHA
    bff2f0a View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bdb7fe6 View commit details
    Browse the repository at this point in the history

Commits on Dec 19, 2023

  1. Configuration menu
    Copy the full SHA
    b785808 View commit details
    Browse the repository at this point in the history