Documentation ¶
Overview ¶
DBDeployer - The MySQL Sandbox Copyright © 2006-2020 Giuseppe Maxia
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
DBDeployer - The MySQL Sandbox Copyright © 2006-2021 Giuseppe Maxia
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
DBDeployer - The MySQL Sandbox Copyright © 2006-2021 Giuseppe Maxia
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func CheckTarballList(tarballList []TarballDescription) error
- func CompareTarballChecksum(tarball TarballDescription, fileName string) error
- func LoadTarballFileInfo() error
- func ReadTarballFileCount() int
- func TarballFileInfoValidation(collection TarballCollection) error
- func TarballRegistryFileExist() bool
- func TarballTree(tbl []TarballDescription) map[string][]TarballDescription
- func WriteTarballFileInfo(collection TarballCollection) error
- type GuessInfo
- type TarballCollection
- type TarballDef
- type TarballDescription
- func DeleteTarball(tarballName string) ([]TarballDescription, error)
- func FindOrGuessTarballByVersionFlavorOS(version, flavor, OS string, minimal, newest, guess bool) (TarballDescription, error)
- func FindTarballByName(tarballName string) (TarballDescription, error)
- func FindTarballByUrl(tarballUrl string) (TarballDescription, error)
- func FindTarballByVersionFlavorOS(version, flavor, OS string, minimal, newest bool) (TarballDescription, error)
- func GetRemoteTarballList(tarballType TarballType, version, OS string, withSize bool) ([]TarballDescription, error)
- func GetTarballInfo(fileName string, description TarballDescription) (TarballDescription, error)
- func SortedTarballList(tbl []TarballDescription, ByField string) []TarballDescription
- type TarballDescriptionByDate
- type TarballDescriptionByName
- type TarballDescriptionByShortVersion
- type TarballDescriptionByVersion
- type TarballType
Constants ¶
This section is empty.
Variables ¶
var TarballFileRegistry string = path.Join(defaults.ConfigurationDir, tarballRegistryName)
Functions ¶
func CheckTarballList ¶ added in v1.44.0
func CheckTarballList(tarballList []TarballDescription) error
func CompareTarballChecksum ¶
func CompareTarballChecksum(tarball TarballDescription, fileName string) error
func LoadTarballFileInfo ¶
func LoadTarballFileInfo() error
func ReadTarballFileCount ¶
func ReadTarballFileCount() int
func TarballFileInfoValidation ¶
func TarballFileInfoValidation(collection TarballCollection) error
func TarballRegistryFileExist ¶
func TarballRegistryFileExist() bool
func TarballTree ¶ added in v1.62.0
func TarballTree(tbl []TarballDescription) map[string][]TarballDescription
func WriteTarballFileInfo ¶
func WriteTarballFileInfo(collection TarballCollection) error
Types ¶
type TarballCollection ¶
type TarballCollection struct { DbdeployerVersion string UpdatedOn string `json:"updated_on,omitempty"` Tarballs []TarballDescription }
var DefaultTarballRegistry TarballCollection
func ReadTarballFileInfo ¶
func ReadTarballFileInfo() (collection TarballCollection, err error)
type TarballDef ¶ added in v1.61.0
type TarballDescription ¶
type TarballDescription struct { Name string `json:"name"` Checksum string `json:"checksum,omitempty"` OperatingSystem string `json:"OS"` Url string `json:"url"` Flavor string `json:"flavor"` Minimal bool `json:"minimal"` Size int64 `json:"size"` ShortVersion string `json:"short_version"` Version string `json:"version"` UpdatedBy string `json:"updated_by,omitempty"` Notes string `json:"notes,omitempty"` DateAdded string `json:"date_added,omitempty"` }
func DeleteTarball ¶ added in v1.44.0
func DeleteTarball(tarballName string) ([]TarballDescription, error)
func FindOrGuessTarballByVersionFlavorOS ¶ added in v1.41.0
func FindOrGuessTarballByVersionFlavorOS(version, flavor, OS string, minimal, newest, guess bool) (TarballDescription, error)
func FindTarballByName ¶
func FindTarballByName(tarballName string) (TarballDescription, error)
func FindTarballByUrl ¶ added in v1.61.0
func FindTarballByUrl(tarballUrl string) (TarballDescription, error)
func FindTarballByVersionFlavorOS ¶
func FindTarballByVersionFlavorOS(version, flavor, OS string, minimal, newest bool) (TarballDescription, error)
func GetRemoteTarballList ¶ added in v1.61.0
func GetRemoteTarballList(tarballType TarballType, version, OS string, withSize bool) ([]TarballDescription, error)
func GetTarballInfo ¶ added in v1.44.0
func GetTarballInfo(fileName string, description TarballDescription) (TarballDescription, error)
func SortedTarballList ¶ added in v1.62.0
func SortedTarballList(tbl []TarballDescription, ByField string) []TarballDescription
type TarballDescriptionByDate ¶ added in v1.62.0
type TarballDescriptionByDate []TarballDescription
func (TarballDescriptionByDate) Len ¶ added in v1.62.0
func (tb TarballDescriptionByDate) Len() int
func (TarballDescriptionByDate) Less ¶ added in v1.62.0
func (tb TarballDescriptionByDate) Less(i, j int) bool
func (TarballDescriptionByDate) Swap ¶ added in v1.62.0
func (tb TarballDescriptionByDate) Swap(i, j int)
type TarballDescriptionByName ¶ added in v1.62.0
type TarballDescriptionByName []TarballDescription
func (TarballDescriptionByName) Len ¶ added in v1.62.0
func (tb TarballDescriptionByName) Len() int
func (TarballDescriptionByName) Less ¶ added in v1.62.0
func (tb TarballDescriptionByName) Less(i, j int) bool
func (TarballDescriptionByName) Swap ¶ added in v1.62.0
func (tb TarballDescriptionByName) Swap(i, j int)
type TarballDescriptionByShortVersion ¶ added in v1.62.0
type TarballDescriptionByShortVersion []TarballDescription
func (TarballDescriptionByShortVersion) Len ¶ added in v1.62.0
func (tb TarballDescriptionByShortVersion) Len() int
func (TarballDescriptionByShortVersion) Less ¶ added in v1.62.0
func (tb TarballDescriptionByShortVersion) Less(i, j int) bool
func (TarballDescriptionByShortVersion) Swap ¶ added in v1.62.0
func (tb TarballDescriptionByShortVersion) Swap(i, j int)
type TarballDescriptionByVersion ¶ added in v1.62.0
type TarballDescriptionByVersion []TarballDescription
func (TarballDescriptionByVersion) Len ¶ added in v1.62.0
func (tb TarballDescriptionByVersion) Len() int
func (TarballDescriptionByVersion) Less ¶ added in v1.62.0
func (tb TarballDescriptionByVersion) Less(i, j int) bool
func (TarballDescriptionByVersion) Swap ¶ added in v1.62.0
func (tb TarballDescriptionByVersion) Swap(i, j int)
type TarballType ¶ added in v1.61.0
type TarballType string
const ( OsLinux = "Linux" OsMacOs = "MacOs" TtMysql TarballType = "mysql" TtCluster TarballType = "cluster" TtShell TarballType = "shell" )