config

package
v0.0.0-...-4a75788 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Prompt

func Prompt()

Prompt user for config inputs

func Save

func Save(config *Config) error

Saves config file in $HOME/.grpccurl or returns an error

Types

type Config

type Config struct {
	Local struct {
		// TODO: Nomenclature for this isn't great, rename
		// ImportPaths are a slice of paths to find protos related to internal services.
		ImportPaths []string `json:"import_paths"`
		// ServicePaths are a slice of paths to find protos that are required by internal services.
		ServicePaths []string `json:"service_paths"`
	} `json:"local"`
	KubeConfig string
	// contains filtered or unexported fields
}

func Instance

func Instance() *Config

func Read

func Read() *Config

Reads in config file from $HOME/.grpccurl and returns the instance of the config

type Github

type Github struct {
	PublicKey string `json:"public_key"`
}

Not implemented yet

Jump to

Keyboard shortcuts

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