Skip to content

Inconsistent (mostly internal) and external naming #19

Description

@picatz

This is more of a small nit I noticed while working on #18, some of the product config structs don't share the same naming, or generally lack consistency:

For example, in Vault and Bounary, there's a Key:

Key string `json:"key,omitempty" mapstructure:"key"`

Key string `json:"key,omitempty" mapstructure:"key"`

But, for Nomad and Consul there's a NomadKey and ConsulKey:

NomadKey string `json:"key,omitempty" mapstructure:"key"`

ConsulKey string `json:"key,omitempty" mapstructure:"key"`


Or, in Bounary there's TlsInsecure (better name):

TlsInsecure string `json:"tls_insecure,omitempty" mapstructure:"tls_insecure"`

But, In Vault there's a SkipVerify (doing the same thing, with a different, and less ideal name):

SkipVerify string `json:"skip_verify,omitempty" mapstructure:"skip_verify"`

Then there's the issue that Consul and Nomad have no equivalent exposed here, and that it would probably make sense for these to be booleans instead of string values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions