mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-19 13:49:26 +08:00
25 lines
465 B
Go
25 lines
465 B
Go
package components
|
|
|
|
type IBlock interface {
|
|
GetDirectives() []IDirective
|
|
FindDirectives(directiveName string) []IDirective
|
|
UpdateDirectives(directiveName string, directive Directive)
|
|
AddDirectives(directive Directive)
|
|
GetComment() string
|
|
}
|
|
|
|
type IDirective interface {
|
|
GetName() string
|
|
GetParameters() []string
|
|
GetBlock() IBlock
|
|
GetComment() string
|
|
}
|
|
|
|
type FileDirective interface {
|
|
isFileDirective()
|
|
}
|
|
|
|
type IncludeDirective interface {
|
|
FileDirective
|
|
}
|