This project is a Library to validate a pull secret

Related tags

lib-ps-validator
Overview

lib-ps-validator

gopherbadger-tag-do-not-edit

Description

This repository and its contents are completely UNSUPPORTED in any way and are not part of official documentation.

Lib to validate a pull secret:

  • Inputs: [] byte (with the pull secret in json format)
  • Output: Struct of interfaces with the information structured in 3 parts:
    • Valid Entries
    • Expired Entries
    • Connection Issues (Sometimes could be an internal registry with some problems to be connected)

img.png

How to use it

Just import or get the package using this command:

go get github.com/RHsyseng/lib-ps-validator
import github.com/RHsyseng/lib-ps-validator

Main function is:

func Validate(input []byte) WebData 

Where the WebData is the model:

type WebData struct {
	Input     interface{}
	ResultOK  interface{}
	ResultKO  interface{}
	ResultCon interface{}
}

Which repo are using it:

Releases(v1.0.5)
Owner
Red Hat Systems Engineering Team
Red Hat Systems Engineering Team
An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.

ozzo-validation Description ozzo-validation is a Go package that provides configurable and extensible data validation capabilities. It has the followi

Ozzo Framework 2.2k Jul 26, 2021
Validate Golang request data with simple rules. Highly inspired by Laravel's request validation.

Validate golang request data with simple rules. Highly inspired by Laravel's request validation. Installation Install the package using $ go get githu

Saddam H 999 Jul 11, 2021
This package provides a framework for writing validations for Go applications.

github.com/gobuffalo/validate This package provides a framework for writing validations for Go applications. It does provide you with few validators,

Buffalo - The Go Web Eco-System 59 Apr 1, 2021
jio is a json schema validator similar to joi

jio Make validation simple and efficient ! 中文文档 Why use jio? Parameter validation in Golang is really a cursing problem. Defining tags on structs is n

faceair 60 Jul 23, 2021
This is a tool to validate the Pull Secret file from the command line interface.

pullsecret-validator-cli Description This is a tool to validate the Pull Secret file from the command line interface. This repository and its contents

Red Hat Systems Engineering Team 3 Jul 18, 2021
:balloon: A lightweight struct validator for Go

gody Go versions supported Installation go get github.com/guiferpa/gody/v2 Usage package main import ( "encoding/json" "fmt" "net/http"

Guilherme Paixão 49 Feb 18, 2021
This project is a Library to validate a pull secret

lib-ps-validator Description This repository and its contents are completely UNSUPPORTED in any way and are not part of official documentation. Lib to

Red Hat Systems Engineering Team 3 Jul 13, 2021
[Go] Package of validators and sanitizers for strings, numerics, slices and structs

govalidator A package of validators and sanitizers for strings, structs and collections. Based on validator.js. Installation Make sure that Go is inst

Alex Saskevich 4.8k Jul 25, 2021
Library providing opanapi3 and Go types for store/validation and transfer of ISO-4217, ISO-3166, and other types.

go-types This library has been created with the purpose to facilitate the store, validation, and transfer of Go ISO-3166/ISO-4217/timezones/emails/URL

Mikalai Konan 11 Jul 15, 2021
Swagger builder and input validation for Go servers

crud A Swagger/OpenAPI builder and validation library for building HTTP/REST APIs. Heavily inspired by hapi and the hapi-swagger projects. No addition

Jake Coffman 14 May 25, 2021
:100:Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving

Package validator Package validator implements value validations for structs and individual fields based on tags. It has the following unique features

Go Playgound 8.3k Jul 23, 2021
Struct validation using tags

Govalid Use Govalid to validate structs. Documentation For full documentation see pkg.go.dev. Example package main import ( "fmt" "log" "strings"

Travis Harmon 22 Jun 22, 2021
Useful Go String methods

Go-string Useful string utility functions for Go projects. Either because they are faster than the common Go version or do not exist in the standard l

Ben Boyter 151 Jun 22, 2021
Go package containing implementations of efficient encoding, decoding, and validation APIs.

encoding Go package containing implementations of encoders and decoders for various data formats. Motivation At Segment, we do a lot of marshaling and

Segment 740 Jul 24, 2021