downloads

package
v1.73.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: Apache-2.0 Imports: 20 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-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

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 TarballTree added in v1.62.0

func TarballTree(tbl []TarballDescription) map[string][]TarballDescription

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 MergeTarballCollection added in v1.70.0

func MergeTarballCollection(oldest, newest TarballCollection) (TarballCollection, error)

func ReadTarballFileInfo

func ReadTarballFileInfo() (collection TarballCollection, err error)

type TarballDef added in v1.61.0

type TarballDef struct {
	Flavor      string
	NameInFile  string
	NameInUrl   string
	DownloadDir string
	Versions    []string
}

type TarballDescription

type TarballDescription struct {
	Name            string `json:"name"`
	Checksum        string `json:"checksum,omitempty"`
	OperatingSystem string `json:"OS"`
	Arch            string `json:"arch"`
	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(tarballs []TarballDescription, tarballName string) ([]TarballDescription, error)

func FindOrGuessTarballByVersionFlavorOS added in v1.41.0

func FindOrGuessTarballByVersionFlavorOS(version, flavor, OS, arch 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, arch string, minimal, newest bool) (TarballDescription, error)

func GetRemoteTarballList added in v1.61.0

func GetRemoteTarballList(tarballType TarballType, version, OS string, withSize, alternativeUserAgent 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 (TarballDescriptionByShortVersion) Less added in v1.62.0

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 (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"
)

Jump to

Keyboard shortcuts

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