service

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Copyright © 2023 John Lennard <john@yakmoo.se>

Index

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

func Get1PasswordItem(client connect.Client, vaultName, itemName string) (*onepassword.Item, error)

Get1PasswordItem retrieves a 1password item from the specified vault

func ReadEnv

func ReadEnv(environment, path string) map[string]string

ReadEnv reads the environment file in .env format in the order .env.local, .env, .env.<environment>, .env.<environment>.local

func WriteEnv

func WriteEnv(environment, path string, env map[string]string) error

WriteEnv writes the environment file in .env format

func WriteJSON

func WriteJSON(environment, path string, env map[string]string) error

WriteJSON writes the environment file in JSON format

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL