config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Copyright © 2023 github.com/alpkeskin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Projects []Project
}
var (
	Cfg *Config
)

func New

func New() *Config

func (*Config) Exists

func (c *Config) Exists() bool

func (*Config) Init

func (c *Config) Init() error

func (*Config) Parse

func (c *Config) Parse() error

func (*Config) PrintList

func (c *Config) PrintList()

type Project

type Project struct {
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
	Services  []Service
}

type Service

type Service struct {
	Name       string `yaml:"name"`
	Localport  int    `yaml:"local_port"`
	Targetport int    `yaml:"target_port"`
}

Jump to

Keyboard shortcuts

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