downloads

package
v1.60.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: Apache-2.0 Imports: 12 Imported by: 1

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

Constants

This section is empty.

Variables

View Source
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 GuessInfo added in v1.41.0

type GuessInfo struct {
	Version string
	Url     string
}

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)

Jump to

Keyboard shortcuts

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