Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishapi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
varnishapi
Commits
b2a13a2f
Commit
b2a13a2f
authored
Sep 05, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doc fixes.
parent
ffdca9a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vsm.go
pkg/vsm/vsm.go
+3
-3
No files found.
pkg/vsm/vsm.go
View file @
b2a13a2f
...
...
@@ -220,14 +220,14 @@ func (v *VSM) Get(class string, ident string) (string, error) {
// network address at which Varnish is listening for management
// commands, according to the protocol documented in
// varnish-cli(7). The address may have been set with the Varnish -T
// option, or Varnish may have generated the address itself (if
n
ot -T
// option, or Varnish may have generated the address itself (if ot -T
// option was set).
//
// Clients such as the admin package or varnishadm(1) can connect to
// this address and issue commands to the Varnish management process.
//
// The address is a string of the form "address:port", so it is
// suitable for use with the Dial() method of the
admin package
.
// suitable for use with the Dial() method of the
Admin object
.
func
(
v
*
VSM
)
GetMgmtAddr
()
(
string
,
error
)
{
targ
,
err
:=
v
.
Get
(
"Arg"
,
"-T"
)
if
err
!=
nil
{
...
...
@@ -240,7 +240,7 @@ func (v *VSM) GetMgmtAddr() (string, error) {
// GetSecretPath is a convenience wrapper for Get() that returns the
// path of the file that Varnish uses for authenticating connections
// to the management address.
t
he authentication protocol is
// to the management address.
T
he authentication protocol is
// documented in varnish-cli(7).
func
(
v
*
VSM
)
GetSecretPath
()
(
string
,
error
)
{
sarg
,
err
:=
v
.
Get
(
"Arg"
,
"-S"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment