Right now container labels are scattered instead of being grouped in purpose-specific groups:
// OAuthLabels is a list of labels that can be used in a tinyauth protected containertypeOAuthLabelsstruct {
WhiteliststringGroupsstring
}
// Basic auth labels for a tinyauth protected containertypeBasicLabelsstruct {
UserstringPasswordstring
}
// Labels is a struct that contains the labels for a tinyauth protected containertypeLabelsstruct {
UsersstringAllowedstringHeaders []stringDomainstringBasicBasicLabelsOAuthOAuthLabels
}They should be instead refactored to more intuitive labels like:
typePathLabelsstruct {
Allowedstring
}
typeGenericLabelsstruct {
Usersstring
}
typeOAuthLabelsstruct {
WhiteliststringGroupsstring
}
typeConfigLabelsstruct {
DomainstringHeaders []stringBasicBasicLabelsPathsPathLabels
}
typeLabelsstruct {
GenericGenericLabelsOAuthOAuthLabelsConfigConfigLabels
}This would require a breaking change but it would make labels easier to understand and use.
Right now container labels are scattered instead of being grouped in purpose-specific groups:
They should be instead refactored to more intuitive labels like:
This would require a breaking change but it would make labels easier to understand and use.