istio: istio.io/istio/operator/pkg/util/httpserver Index | Files

package httpserver

import "istio.io/istio/operator/pkg/util/httpserver"

Index

Package Files

httpserver.go

type Server Uses

type Server struct {
    Srv  *httptest.Server
    Root string
}

Server is an in-memory HTTP server for testing.

func NewServer Uses

func NewServer(root string) *Server

NewServer creates a new Server and returns a pointer to it.

func (*Server) Close Uses

func (s *Server) Close()

Close closes the server.

func (*Server) MoveFiles Uses

func (s *Server) MoveFiles(origin string) ([]string, error)

func (*Server) URL Uses

func (s *Server) URL() string

URL returns the root URL served by s.

Package httpserver imports 4 packages (graph). Updated 2020-10-05. Refresh now. Tools for package owners.