entity

package
v0.0.0-...-77082db Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const InvalidSha1Hash = "git ref requires valid sha1 hash"
View Source
const MissingGitRef = "specification requires a valid git ref"

Variables

This section is empty.

Functions

func GenerateSha1HashHexString

func GenerateSha1HashHexString(value string) string

func IsValidSha1HashHexString

func IsValidSha1HashHexString(value string) bool

Types

type Config

type Config struct {
	Token string
	Url   string
}

Config enables dynamic updates to configuration by defining read functions for each configuration property

func (Config) ReadToken

func (receiver Config) ReadToken() string

func (Config) ReadUrl

func (receiver Config) ReadUrl() string

type GitRef

type GitRef interface {
	Sha1Hash() string
}

func NewGitRef

func NewGitRef(sha1Hash string) (error, GitRef)

type Specification

type Specification interface {
	GitRef() GitRef
}

func NewSpecification

func NewSpecification(gitRef GitRef) (error, Specification)

Jump to

Keyboard shortcuts

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