osrelease

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Overview

Package osrelease provides an "os-release" distribution scanner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Scanner

type Scanner struct{}

Scanner implements a scanner.DistributionScanner that examines os-release files, as documented at https://www.freedesktop.org/software/systemd/man/os-release.html

func (*Scanner) Kind

func (*Scanner) Kind() string

Kind implements scanner.VersionedScanner.

func (*Scanner) Name

func (*Scanner) Name() string

Name implements scanner.VersionedScanner.

func (*Scanner) Scan

Scan reports any found os-release Distribution information in the provided layer.

It's an expected outcome to return (nil, nil) when the os-release file is not present in the layer.

func (*Scanner) Version

func (*Scanner) Version() string

Version implements scanner.VersionedScanner.

Jump to

Keyboard shortcuts

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