wsus

package module
v0.0.0-...-401481c Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package wsus implements WSUS repository importer.

Index

Constants

View Source
const (
	// RepoName contains the repository name.
	RepoName = "wsus"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

Repo holds data related to a Windows WSUS repository.

func NewRepo

func NewRepo(ctx context.Context, storageService *storage.Service, gcsWSUSBucket string) (*Repo, error)

NewRepo returns new instance of a WSUS repository.

func (*Repo) DiscoverRepo

func (r *Repo) DiscoverRepo() ([]hashr.Source, error)

DiscoverRepo traverses the repository and looks for files that are related to WSUS packages.

func (*Repo) RepoName

func (r *Repo) RepoName() string

RepoName returns repository name.

func (*Repo) RepoPath

func (r *Repo) RepoPath() string

RepoPath returns repository path.

Jump to

Keyboard shortcuts

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