Skip to content

Commit

Permalink
Merge pull request #3 from compscore/struct-annotations
Browse files Browse the repository at this point in the history
Added struct annotations
  • Loading branch information
1nv8rzim authored Sep 18, 2023
2 parents d1de9fb + e8db4ba commit f9c57d6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ import (

type optionsStruct struct {
// Target has HTTPS WinRM endpoint
HTTPS bool
HTTPS bool `compspore:"https"`

// Target is running in insecure mode
Insecure bool
Insecure bool `compspore:"insecure"`

// CA cert for the target
CACert []byte
CACert []byte `compspore:"cacert"`

// Client cert for the target
Cert []byte
Cert []byte `compspore:"cert"`

// Client key for the target
Key []byte
Key []byte `compspore:"key"`
}

func (o *optionsStruct) Unmarshal(options map[string]interface{}) {
Expand Down

0 comments on commit f9c57d6

Please sign in to comment.