MCPcopy Index your code
hub / github.com/kopia/kopia / serverAPIClientOptions

Method serverAPIClientOptions

cli/command_server.go:77–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func (c *serverClientFlags) serverAPIClientOptions() (apiclient.Options, error) {
78 if c.serverAddress == "" {
79 return apiclient.Options{}, errors.New("missing server address")
80 }
81
82 return apiclient.Options{
83 BaseURL: c.serverAddress,
84 Username: c.serverUsername,
85 Password: c.serverPassword,
86 TrustedServerCertificateFingerprint: c.serverCertFingerprint,
87 }, nil
88}

Callers 1

serverActionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected