Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • pygwinc pygwinc
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 42
    • Issues 42
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gwincgwinc
  • pygwincpygwinc
  • Merge requests
  • !130

Draft: Protective struct

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Lee McCuller requested to merge lee-mcculler/pygwinc:protective_struct into master Mar 12, 2021
  • Overview 0
  • Commits 8
  • Pipelines 1
  • Changes 16

Adds the ability to set access restrictions on Struct values. Either only allow assigning to existing keys or to disallow assignment altogether.

Requires the upgrades in inheritance so that dictionary/yaml inputs are fully and deeply mapped into structs. Uses a specialized walk to access sub-structs and set their permissions.

This code doesn't appear to break anything, but I haven't yet actually tested the protections.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: protective_struct