github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/digitalocean/spaces/spaces.go (about)

     1  package spaces
     2  
     3  import (
     4  	defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types"
     5  )
     6  
     7  type Spaces struct {
     8  	Buckets []Bucket
     9  }
    10  
    11  type Bucket struct {
    12  	Metadata     defsecTypes.Metadata
    13  	Name         defsecTypes.StringValue
    14  	Objects      []Object
    15  	ACL          defsecTypes.StringValue
    16  	ForceDestroy defsecTypes.BoolValue
    17  	Versioning   Versioning
    18  }
    19  
    20  type Versioning struct {
    21  	Metadata defsecTypes.Metadata
    22  	Enabled  defsecTypes.BoolValue
    23  }
    24  
    25  type Object struct {
    26  	Metadata defsecTypes.Metadata
    27  	ACL      defsecTypes.StringValue
    28  }