Documentation ¶
Overview ¶
Copyright © 2023 John Lennard <john@yakmoo.se>
Index ¶
- func Create1PasswordItem(client connect.Client, vaultName, itemName string, ...) (*onepassword.Item, error)
- func Get1PasswordItem(client connect.Client, vaultName, itemName string) (*onepassword.Item, error)
- func ReadEnv(environment, path string) map[string]string
- func WriteEnv(environment, path string, env map[string]string) error
- func WriteJSON(environment, path string, env map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create1PasswordItem ¶
func Create1PasswordItem(client connect.Client, vaultName, itemName string, environment map[string]string) (*onepassword.Item, error)
Create1PasswordItem creates a new 1password item in the specified vault, from the provided environment
func Get1PasswordItem ¶
Get1PasswordItem retrieves a 1password item from the specified vault
func ReadEnv ¶
ReadEnv reads the environment file in .env format in the order .env.local, .env, .env.<environment>, .env.<environment>.local
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.