control/instance: Show if excluded from resolver
This commit is contained in:
parent
ce0c053fde
commit
d2d681a4f2
3 changed files with 5 additions and 1 deletions
|
|
@ -60,6 +60,7 @@ func (i info) Run(context wisski_distillery.Context) error {
|
||||||
context.Printf("Running: %v\n", info.Running)
|
context.Printf("Running: %v\n", info.Running)
|
||||||
context.Printf("Last Rebuild: %v\n", info.LastRebuild.String())
|
context.Printf("Last Rebuild: %v\n", info.LastRebuild.String())
|
||||||
|
|
||||||
|
context.Printf("Skip Prefixes: %v\n", info.NoPrefixes)
|
||||||
context.Printf("Prefixes: (count %d)\n", len(info.Prefixes))
|
context.Printf("Prefixes: (count %d)\n", len(info.Prefixes))
|
||||||
for _, prefix := range info.Prefixes {
|
for _, prefix := range info.Prefixes {
|
||||||
context.Printf("- %s\n", prefix)
|
context.Printf("- %s\n", prefix)
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,13 @@
|
||||||
<b>Slug:</b> <code>{{ .Info.Slug }}</code> <br />
|
<b>Slug:</b> <code>{{ .Info.Slug }}</code> <br />
|
||||||
<b>URL:</b> <a href="{{ .Info.URL }}" target="_blank" rel="noopener noreferrer">{{ .Info.URL }}</a> <br />
|
<b>URL:</b> <a href="{{ .Info.URL }}" target="_blank" rel="noopener noreferrer">{{ .Info.URL }}</a> <br />
|
||||||
<hr />
|
<hr />
|
||||||
<b>Resolver Prefixes:</b>
|
<b>URI Prefixes: </b>
|
||||||
<ul>
|
<ul>
|
||||||
{{ range .Info.Prefixes }}
|
{{ range .Info.Prefixes }}
|
||||||
<li><code>{{ . }}</code></li>
|
<li><code>{{ . }}</code></li>
|
||||||
{{ end}}
|
{{ end}}
|
||||||
</ul>
|
</ul>
|
||||||
|
<b>Excluded from Resolver:</b> <code>{{ .Info.NoPrefixes }}</code><br />
|
||||||
<hr />
|
<hr />
|
||||||
<b>Running:</b> <code>{{ .Info.Running }}</code> <br />
|
<b>Running:</b> <code>{{ .Info.Running }}</code> <br />
|
||||||
<!-- <b>OwnerEmail:</b> <code>{{ .Instance.OwnerEmail }}</code> <br /> -->
|
<!-- <b>OwnerEmail:</b> <code>{{ .Instance.OwnerEmail }}</code> <br /> -->
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ type WissKIInfo struct {
|
||||||
Snapshots []models.Snapshot
|
Snapshots []models.Snapshot
|
||||||
|
|
||||||
// WissKI content information
|
// WissKI content information
|
||||||
|
NoPrefixes bool
|
||||||
Prefixes []string // list of prefixes
|
Prefixes []string // list of prefixes
|
||||||
Pathbuilders map[string]string // all the pathbuilders
|
Pathbuilders map[string]string // all the pathbuilders
|
||||||
}
|
}
|
||||||
|
|
@ -60,6 +61,7 @@ func (wisski *WissKI) Info(quick bool) (info WissKIInfo, err error) {
|
||||||
})
|
})
|
||||||
group.Go(func() (err error) {
|
group.Go(func() (err error) {
|
||||||
info.Prefixes, _ = wisski.Prefixes()
|
info.Prefixes, _ = wisski.Prefixes()
|
||||||
|
info.NoPrefixes = wisski.NoPrefix()
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
group.Go(func() error {
|
group.Go(func() error {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue