Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
func (Metadata) Get ¶
Get obtains the values for a given key.
func (Metadata) Has ¶
Has returns true if metadata has given 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.