Documentation
¶
Index ¶
- type KPMap
- func (m KPMap) ChangeKey(old, new string)
- func (m KPMap) Decode() error
- func (m KPMap) Decrypt(key [32]byte) error
- func (m KPMap) Decrypted(key [32]byte) (KPMap, error)
- func (m KPMap) Delete(key string)
- func (m KPMap) DeleteValues()
- func (m KPMap) Encode()
- func (m KPMap) Encrypt(key [32]byte) error
- func (m KPMap) Encrypted(key [32]byte) (KPMap, error)
- func (m KPMap) FmtString(key string) string
- func (m KPMap) Get(key string) *payload.Payload
- func (m KPMap) GetValue(key string) string
- func (m KPMap) IsEmpty() bool
- func (m KPMap) Load(value KPMap)
- func (m KPMap) MarkAllDecoded()
- func (m KPMap) MarkAllEncoded()
- func (m KPMap) MarkDecoded(key string)
- func (m KPMap) MarkEncoded(key string)
- func (m KPMap) MarkExposable(key string)
- func (m KPMap) MarkNotExposable(key string)
- func (m *KPMap) Marshal() ([]byte, error)
- func (m KPMap) Overwrite(source *KPMap)
- func (m KPMap) Set(key string, value *payload.Payload)
- func (m KPMap) SetValue(key, value string)
- func (m KPMap) ToKVMap() *keyvalue.KVMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KPMap ¶
Key-Payload Map
func (KPMap) Decrypted ¶
Decrypts all the key=value pairs with the provided key and returns a new deep copy of the map.
func (KPMap) DeleteValues ¶
func (m KPMap) DeleteValues()
Empties the values from the payloads of all key=value pairs.
func (KPMap) Encrypted ¶
Encrypts all the key=value pairs with the provided key and returns a new deep copy of the map.
func (KPMap) MarkAllDecoded ¶
func (m KPMap) MarkAllDecoded()
Marks all payload values as Base64 decoded.
func (KPMap) MarkAllEncoded ¶
func (m KPMap) MarkAllEncoded()
Marks all payload values as Base64 encoded.
func (KPMap) MarkDecoded ¶
Marks payload value for specified key as Base64 decoded.
func (KPMap) MarkEncoded ¶
Marks payload value for specified key as Base64 encoded.
func (KPMap) MarkExposable ¶
Marks the "exposable" value of the payload as "true."
Exposability allows the value to be synced as an exposable one on platforms which differentiate between decryptable and non-decryptable secrets. For example, Github and Vercel. In Github actions, this value will be synced as a "variable" and NOT a secret, once it is marked "exposable" over here.
func (KPMap) MarkNotExposable ¶
func (KPMap) Overwrite ¶
Ovewrites or replaces values in the map for respective keys from supplied map.
Click to show internal directories.
Click to hide internal directories.