MCPcopy Create free account
hub / github.com/apache/trafficserver / AddPlugin

Method AddPlugin

src/cripts/Instance.cc:60–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60bool
61Instance::AddPlugin(const cripts::string &tag, const cripts::string &plugin, const Plugin::Options &options)
62{
63 if (plugins.find(tag) != plugins.end()) {
64 return false;
65 }
66
67 auto p = Plugin::Remap::Create(tag, plugin, from_url, to_url, options);
68
69 if (p.Valid()) {
70 plugins.emplace(tag, std::move(p));
71
72 return true;
73 } else {
74 Fail();
75 return false;
76 }
77}
78
79bool
80Instance::DeletePlugin(const cripts::string &tag)

Callers

nothing calls this directly

Calls 4

ValidMethod · 0.80
emplaceMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected