cache

package
v0.58.8 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(opts ...Option) *Config

func (*Config) Addr

func (cfg *Config) Addr() string

func (*Config) WithOptions

func (config *Config) WithOptions(opts ...Option) *Config

type Option

type Option func(Config) Config

func WithHostname

func WithHostname(hostname string) Option

func WithPort

func WithPort(port int) Option

func WithProviderHandlers added in v0.58.7

func WithProviderHandlers(handlers ...handlers.ProviderHandler) Option

func WithServices added in v0.58.7

func WithServices(services ...services.Service) Option

func WithToken

func WithToken(token string) Option

type Server

type Server struct {
	*router.Router

	ProviderController *controllers.ProviderController
	// contains filtered or unexported fields
}

Server is a private Terraform cache for provider caching.

func NewServer

func NewServer(opts ...Option) *Server

NewServer returns a new Server instance.

func (*Server) Listen

func (server *Server) Listen() (net.Listener, error)

Listen starts listening to the given configuration address. It also automatically chooses a free port if not explicitly specified.

func (*Server) Run

func (server *Server) Run(ctx context.Context, ln net.Listener) error

Run starts the webserver and workers.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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