build_info

package
v0.0.40-alpha8 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

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"`

	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

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