Squid Web Cache master
Loading...
Searching...
No Matches
BasicActions.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9/* DEBUG: section 16 Cache Manager API */
10
11#ifndef SQUID_SRC_MGR_BASICACTIONS_H
12#define SQUID_SRC_MGR_BASICACTIONS_H
13
14#include "mgr/Action.h"
15
16/* a collection of simple, mostly stateless actions */
17
18namespace Mgr
19{
20
25class IndexAction: public Action
26{
27public:
28 static Pointer Create(const CommandPointer &cmd);
29 /* Action API */
30 void dump(StoreEntry *entry) override;
31
32protected:
34};
35
37class MenuAction: public Action
38{
39public:
40 static Pointer Create(const CommandPointer &cmd);
41 /* Action API */
42 void dump(StoreEntry *entry) override;
43
44protected:
46};
47
50{
51public:
52 static Pointer Create(const CommandPointer &cmd);
53 /* Action API */
54 void dump(StoreEntry *entry) override;
55
56protected:
58};
59
62{
63public:
64 static Pointer Create(const CommandPointer &cmd);
65 /* Action API */
66 void dump(StoreEntry *entry) override;
67
68protected:
70};
71
73class RotateAction: public Action
74{
75public:
76 static Pointer Create(const CommandPointer &cmd);
77 /* Action API */
78 void dump(StoreEntry *entry) override;
79
80protected:
82};
83
86{
87public:
88 static Pointer Create(const CommandPointer &cmd);
89 /* Action API */
90 void dump(StoreEntry *entry) override;
91
92protected:
94};
95
97void RegisterBasics();
98
99} // namespace Mgr
100
101#endif /* SQUID_SRC_MGR_BASICACTIONS_H */
102
const CommandPointer cmd
the command that caused this action
Definition Action.h:90
void dump(StoreEntry *entry) override
static Pointer Create(const CommandPointer &cmd)
returns available Cache Manager actions and their access requirements
static Pointer Create(const CommandPointer &cmd)
void dump(StoreEntry *entry) override
changes offline mode
void dump(StoreEntry *entry) override
static Pointer Create(const CommandPointer &cmd)
reconfigures Squid
void dump(StoreEntry *entry) override
static Pointer Create(const CommandPointer &cmd)
starts log rotation
static Pointer Create(const CommandPointer &cmd)
void dump(StoreEntry *entry) override
shuts Squid down
static Pointer Create(const CommandPointer &cmd)
void dump(StoreEntry *entry) override
Cache Manager API.
Definition Action.h:21
void RegisterBasics()
Registers profiles for the actions above; TODO: move elsewhere?