expose

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package expose implements a 'devenv expose' command that allows developers to expose a service to the outside world.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdExpose

func NewCmdExpose(log logrus.FieldLogger) *cli.Command

Types

type NgrokConfig

type NgrokConfig struct {
	AuthToken string `yaml:"authtoken"`
}

type Options

type Options struct {
	ServiceName      string
	ServiceNamespace string
	ServicePort      int
	ExternalEndpoint string
	EndpointRegion   string
	// contains filtered or unexported fields
}

func NewOptions

func NewOptions(log logrus.FieldLogger) (*Options, error)

func (*Options) CreateNgrokInstance

func (o *Options) CreateNgrokInstance(ctx context.Context, conf *NgrokConfig) error

func (*Options) EnsureAuthenticated

func (o *Options) EnsureAuthenticated(ctx context.Context) (*NgrokConfig, error)

func (*Options) Run

func (o *Options) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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