ostype

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 8

Documentation

Overview

Package ostype is define OS type of SakuraCloud public archive

Index

Constants

This section is empty.

Variables

View Source
var ArchiveCriteria = map[ArchiveOSType]search.Filter{
	CentOS: {
		search.Key(keys.Tags):  search.TagsAndEqual("distro-centos"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	CentOS7: {
		search.Key(keys.Tags):  search.TagsAndEqual("centos-7-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	AlmaLinux: {
		search.Key(keys.Tags):  search.TagsAndEqual("current-stable", "distro-alma"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	AlmaLinux9: {
		search.Key(keys.Tags):  search.TagsAndEqual("alma-9-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	AlmaLinux8: {
		search.Key(keys.Tags):  search.TagsAndEqual("alma-8-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	RockyLinux: {
		search.Key(keys.Tags):  search.TagsAndEqual("current-stable", "distro-rocky"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	RockyLinux9: {
		search.Key(keys.Tags):  search.TagsAndEqual("rocky-9-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	RockyLinux8: {
		search.Key(keys.Tags):  search.TagsAndEqual("rocky-8-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	MiracleLinux: {
		search.Key(keys.Tags):  search.TagsAndEqual("current-stable", "distro-miracle"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	MiracleLinux8: {
		search.Key(keys.Tags):  search.TagsAndEqual("miracle-8-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	Ubuntu: {
		search.Key(keys.Tags):  search.TagsAndEqual("current-stable", "distro-ubuntu"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	Ubuntu2204: {
		search.Key(keys.Tags):  search.TagsAndEqual("ubuntu-22.04-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	Ubuntu2004: {
		search.Key(keys.Tags):  search.TagsAndEqual("ubuntu-20.04-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	Ubuntu1804: {
		search.Key(keys.Tags):  search.TagsAndEqual("ubuntu-18.04-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	Debian: {
		search.Key(keys.Tags):  search.TagsAndEqual("current-stable", "distro-debian"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	Debian10: {
		search.Key(keys.Tags):  search.TagsAndEqual("debian-10-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	Debian11: {
		search.Key(keys.Tags):  search.TagsAndEqual("debian-11-latest"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
	Kusanagi: {
		search.Key(keys.Tags):  search.TagsAndEqual("current-stable", "pkg-kusanagi"),
		search.Key(keys.Scope): search.ExactMatch(types.Scopes.Shared.String()),
	},
}

ArchiveCriteria OSTypeごとのアーカイブ検索条件

ArchiveOSTypes アーカイブ種別のリスト

View Source
var OSTypeShortNames = []string{
	"centos", "centos7",
	"almalinux", "almalinux9", "almalinux8",
	"rockylinux", "rockylinux9", "rockylinux8",
	"miracle", "miraclelinux", "miracle8", "miraclelinux8",
	"ubuntu", "ubuntu2204", "ubuntu2004", "ubuntu1804",
	"debian", "debian10", "debian11",
	"kusanagi",
}

OSTypeShortNames OSTypeとして利用できる文字列のリスト

Functions

This section is empty.

Types

type ArchiveOSType

type ArchiveOSType int

ArchiveOSType パブリックアーカイブOS種別

const (
	// Custom OS種別:カスタム
	Custom ArchiveOSType = iota

	// CentOS OS種別:CentOS
	CentOS
	// CentOS7 OS種別:CentOS7
	CentOS7

	// AlmaLinux OS種別: Alma Linux
	AlmaLinux
	// AlmaLinux9 OS種別: Alma Linux9
	AlmaLinux9
	// AlmaLinux8 OS種別: Alma Linux8
	AlmaLinux8

	// RockyLinux OS種別: Rocky Linux
	RockyLinux
	// RockyLinux9 OS種別: Rocky Linux9
	RockyLinux9
	// RockyLinux8 OS種別: Rocky Linux8
	RockyLinux8

	// MiracleLinux OS種別: MIRACLE LINUX
	MiracleLinux
	// MiracleLinux8 OS種別: MIRACLE LINUX8
	MiracleLinux8

	// Ubuntu OS種別:Ubuntu
	Ubuntu
	// Ubuntu2204 OS種別:Ubuntu(Jammy Jellyfish)
	Ubuntu2204
	// Ubuntu2004 OS種別:Ubuntu(Focal Fossa)
	Ubuntu2004
	// Ubuntu1804 OS種別:Ubuntu(Bionic)
	Ubuntu1804

	// Debian OS種別:Debian
	Debian
	// Debian10 OS種別:Debian10
	Debian10
	// Debian11 OS種別:Debian11
	Debian11

	// Kusanagi OS種別:Kusanagi(CentOS)
	Kusanagi
)

func StrToOSType

func StrToOSType(osType string) ArchiveOSType

StrToOSType 文字列からArchiveOSTypesへの変換

func (ArchiveOSType) IsSupportDiskEdit

func (o ArchiveOSType) IsSupportDiskEdit() bool

IsSupportDiskEdit ディスクの修正機能をフルサポートしているか(Windowsは一部サポートのためfalseを返す)

func (ArchiveOSType) String

func (i ArchiveOSType) String() string

Jump to

Keyboard shortcuts

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