-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextensions.go
52 lines (44 loc) · 1.73 KB
/
extensions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package sshclient
//Extensions
func (c *AgentClient) CreateExtension(name, prefix string, synonym string, purpose ExtensionPurposeType, opts ...execOption) error {
var body []byte
var e error
options := newExecOptions()
options = append(options, WithRespondCheck(successChecker(&body, &e)))
options = append(options, opts...)
_, err := c.Exec(CreateExtension{
Name: name,
Prefix: prefix,
Synonym: synonym,
Purpose: purpose,
}, options...)
if err != nil {
return err
}
return nil
}
func (c *AgentClient) DeleteExtension(name string, opts ...execOption) error { return nil }
func (c *AgentClient) DeleteAllExtensions(opts ...execOption) error { return nil }
func (c *AgentClient) GetExtensionProperties(name string, opts ...execOption) (props ExtensionProperties, err error) {
return
}
func (c *AgentClient) GetAllExtensionsProperties(opts ...execOption) (lsProps []ExtensionProperties, err error) {
return
}
func (c *AgentClient) SetExtensionProperties(props ExtensionProperties, opts ...execOption) error {
return nil
}
func (c *AgentClient) DumpExtensionCfg(ext string, file string, opts ...execOption) error { return nil }
func (c *AgentClient) LoadExtensionCfg(ext string, file string, opts ...execOption) error { return nil }
func (c *AgentClient) DumpExtensionToFiles(ext string, dir string, force bool, opts ...execOption) error {
return nil
}
func (c *AgentClient) LoadExtensionFromFiles(ext string, dir string, updateConfigDumpInfo bool, opts ...execOption) error {
return nil
}
func (c *AgentClient) DumpAllExtensionsToFiles(dir string, force bool, opts ...execOption) error {
return nil
}
func (c *AgentClient) LoadAllExtensionsFromFiles(dir string, updateConfigDumpInfo bool, opts ...execOption) error {
return nil
}