Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsEnvVariables ¶
AsEnvVariables sets struct values from environment variables
func SecureCompare ¶
SecureCompare use constant time function to compare the two given array.
func SecureCompareString ¶
SecureCompareString use constant time function to compare the two given string.
Types ¶
type Metadata ¶
Metadata represents object metadata
func (Metadata) Append ¶
Append adds the values to key k, not overwriting what was already stored at that key.
type StringArray ¶
type StringArray []string
StringArray describes string array type
func (*StringArray) AddIfNotContains ¶
func (s *StringArray) AddIfNotContains(item string)
AddIfNotContains add item if not already in collection
func (StringArray) Contains ¶
func (s StringArray) Contains(item string) bool
Contains checks if item is in collection
func (*StringArray) HasOneOf ¶
func (s *StringArray) HasOneOf(items ...string) bool
HasOneOf returns true when one of provided items is found in array.
Click to show internal directories.
Click to hide internal directories.