cmd

package
v0.0.0-...-e3146c1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Copyright © 2024 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type DecryptedSecret

type DecryptedSecret struct {
	Name string
	// Value is the decrypted value
	Value string
	// Personal is whether this should be pulled from the personal_secrets.json file
	Personal bool
}

type EncryptedKey

type EncryptedKey struct {
	// GitHub username, there may be many for the same
	Username  string
	PublicKey string

	// EncryptedSharedKey base64 encoded encrypted bytes
	EncryptedSharedKey string
}

type EncryptedSecret

type EncryptedSecret struct {
	Name string
	// Value is base64 encoded encrypted bytes
	Value string `json:",omitempty"`
	// Personal is whether this should be pulled from the personal_secrets.json file
	Personal bool
}

type KeysFile

type KeysFile struct {
	EncryptedKeys []EncryptedKey
}

type SecretsFile

type SecretsFile struct {
	Secrets []EncryptedSecret
}

Jump to

Keyboard shortcuts

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