build_info

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const FORCE_WRITE_ALL_DURATION_HOURS = 24

Variables

View Source
var DockerVersion string

DockerVersion encompasses go or auto_schema

View Source
var Time string

if build time is same time...

Functions

func FlagNextBuildInfoAsWriteAll added in v0.0.39

func FlagNextBuildInfoAsWriteAll(cfg Config, cfg2 codegenapi.Config) error

FlagNextBuildInfoAsWriteAll used for one-off commands such as downgrade where the state isn't pure and we wanna generate it all next time usually the same.. being lazy

Types

type BuildInfo

type BuildInfo struct {
	BuildTime     string `yaml:"buildTime"`
	ConfigTime    string `yaml:"configTime"` // ent.yml time
	DockerVersion string `yaml:"dockerVersion"`
	WriteTime     int64  `yaml:"writeTime"`

	ForceWriteAllNextTime bool `yaml:"forceWriteAllNextTime,omitempty"`

	// this is only public for yaml reasons
	DefaultGraphQLMutationName codegenapi.GraphQLMutationName `yaml:"defaultGraphQLMutationName"`
	// contains filtered or unexported fields
}

func NewBuildInfo

func NewBuildInfo(cfg Config) *BuildInfo

compare with existing schema and write new one after bi.PostProcess

func (*BuildInfo) Changed

func (bi *BuildInfo) Changed() bool

flag as Changed

func (*BuildInfo) CheckForDeletes added in v0.0.39

func (bi *BuildInfo) CheckForDeletes() bool

func (*BuildInfo) PostProcess

func (bi *BuildInfo) PostProcess(cfg codegenapi.Config) error

func (*BuildInfo) PrevGraphQLMutationName added in v0.0.39

func (bi *BuildInfo) PrevGraphQLMutationName() codegenapi.GraphQLMutationName

returns value of DefaultGraphQLMutationName which is stored in build_info.yml what was used for previous run. may differ from current value in ent.yml

func (*BuildInfo) PrevHasForceWriteAll added in v0.1.0

func (bi *BuildInfo) PrevHasForceWriteAll() bool

type Config

type Config interface {
	file.Config
	GetPathToBuildFile() string
}

Jump to

Keyboard shortcuts

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