manifestDataValidation

package
v0.10.10 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

* * MIT License * * (C) Copyright 2023 Hewlett Packard Enterprise Development LP * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included * in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. *

Index

Constants

View Source
const (
	CONTENT_KEY         string = "content"
	S3_KEY              string = "s3"
	S3_PATH_KEY         string = "path"
	NEXUS_REPO_KEY      string = "nexus_repositories"
	NEXUS_REPO_PATH_KEY string = "yaml_path"
	NEXUS_BLOB_KEY      string = "nexus_blob_stores"
	NEXUS_BLOB_PATH_KEY string = "yaml_path"
	VCS_KEY             string = "vcs"
	VCS_PATH_KEY        string = "path"
	RPM_KEY             string = "rpms"
	RPM_PATH_KEY        string = "path"
	REPO_NAME           string = "repository_name"
	HOSTED_REPO_NAME    string = "name"
	REPO_TYPE           string = "type"
	FORMAT              string = "format"
)

const for yaml keys

Variables

View Source
var FileReader = mutils.ReadYamFile

Getting the file reader

Functions

func SetManifestRootDir

func SetManifestRootDir(root_path string)

Function of set manifest root path

func Validate

func Validate(manifest interface{}) error

Function to validate manifest data post schema validation

Types

This section is empty.

Jump to

Keyboard shortcuts

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