-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrepositoryCache.go
86 lines (61 loc) · 2.3 KB
/
repositoryCache.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package designer
import (
"github.com/v8platform/marshaler"
)
///ConfigurationRepositoryClearGlobalCache [-Extension <имя расширения>]
//- очистка глобального кэша версий конфигурации в хранилище.
type RepositoryClearGlobalCacheOptions struct {
Designer `v8:",inherit" json:"designer"`
Repository `v8:",inherit" json:"repository"`
command struct{} `v8:"/ConfigurationRepositoryClearGlobalCache" json:"-"`
}
func (ib RepositoryClearGlobalCacheOptions) Values() []string {
v, _ := marshaler.Marshal(ib)
fixExtensionIndex(&v)
return v
}
func (o RepositoryClearGlobalCacheOptions) WithRepository(repository Repository) RepositoryClearGlobalCacheOptions {
newO := o
newO.Path = repository.Path
newO.User = repository.User
newO.Password = repository.Password
return newO
}
///ConfigurationRepositoryClearCache [-Extension <имя расширения>]
//— очистка локальной базы данных хранилища конфигурации.
type RepositoryClearCacheOptions struct {
Designer `v8:",inherit" json:"designer"`
Repository `v8:",inherit" json:"repository"`
command struct{} `v8:"/ConfigurationRepositoryClearCache" json:"-"`
}
func (ib RepositoryClearCacheOptions) Values() []string {
v, _ := marshaler.Marshal(ib)
fixExtensionIndex(&v)
return v
}
func (o RepositoryClearCacheOptions) WithRepository(repository Repository) RepositoryClearCacheOptions {
newO := o
newO.Path = repository.Path
newO.User = repository.User
newO.Password = repository.Password
return newO
}
///ConfigurationRepositoryClearLocalCache [-Extension <имя расширения>]
//- очистка локального кэша версий конфигурации
type RepositoryClearLocalCacheOptions struct {
Designer `v8:",inherit" json:"designer"`
Repository `v8:",inherit" json:"repository"`
command struct{} `v8:"/ConfigurationRepositoryClearLocalCache" json:"-"`
}
func (ib RepositoryClearLocalCacheOptions) Values() []string {
v, _ := marshaler.Marshal(ib)
fixExtensionIndex(&v)
return v
}
func (o RepositoryClearLocalCacheOptions) WithRepository(repository Repository) RepositoryClearLocalCacheOptions {
newO := o
newO.Path = repository.Path
newO.User = repository.User
newO.Password = repository.Password
return newO
}