You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
smallstep-certificates/wire/id.go

16 lines
345 B
Go

package wire
import "encoding/json"
type WireIDJSON struct {
Name string `json:"name,omitempty"`
Domain string `json:"domain,omitempty"`
ClientID string `json:"client-id,omitempty"`
Handle string `json:"handle,omitempty"`
}
func ParseID(data []byte) (wireID WireIDJSON, err error) {
err = json.Unmarshal(data, &wireID)
return
}