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-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.
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 WriteTarballFileInfo(collection TarballCollection) error
- type GuessInfo
- type TarballCollection
- 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 FindTarballByVersionFlavorOS(version, flavor, OS string, minimal, newest bool) (TarballDescription, error)
- func GetTarballInfo(fileName string, description TarballDescription) (TarballDescription, error)
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 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 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 FindTarballByVersionFlavorOS ¶
func FindTarballByVersionFlavorOS(version, flavor, OS string, minimal, newest bool) (TarballDescription, error)
func GetTarballInfo ¶ added in v1.44.0
func GetTarballInfo(fileName string, description TarballDescription) (TarballDescription, error)