cmd

package
v0.0.0-...-6cd79f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 36 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 Infinity Bot List

Index

Constants

View Source
const CrossCompileNote = `` /* 764-byte string literal not displayed */

TODO

Variables

View Source
var (
	// Store git commit hash
	GitCommit string
	// This is gotten through ldflags
	BuildRev string
	// Build time is the time the binary was built
	BuildTime string
	// Project name is the name of the project
	ProjectName string
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Extension

type Extension struct {
	// The name of the extension
	Name string `json:"name"`

	// Git URL if any
	GitUrl string `json:"git,omitempty"`
}

Extensions needed. If a git repo is provided under the extensions key, there will be an attempt to install the extensions from the git repo

If a git repo is provided, the following will be run:

- gmake - gmake install - gmake installcheck

type FileList

type FileList []NginxFile

type NginxFile

type NginxFile struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type PermDetailMap

type PermDetailMap struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Desc string `json:"desc"`
}

Does not include all keys sent by API, only ones we need

type PermissionResponse

type PermissionResponse struct {
	Perms []PermDetailMap `json:"perms"`
}

type SeedMetadata

type SeedMetadata struct {
	// Seed Nonce
	Nonce string `json:"n"`

	// Default database name
	DefaultDatabase string `json:"d"`

	// Source database name
	SourceDatabase string `json:"s"`

	// Restore table order
	RestoreOrder []string `json:"r"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL