Dagger
Search

cue-schemas

A module for vendoring and publishing CUE schemas to registry

Installation

dagger install github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911

Entrypoint

Return Type
CueSchemas !
Arguments
NameTypeDefault ValueDescription
timoniVersionString "v0.23.0"the desired timoni version
cueVersionString "v0.11.0"the desired CUE version
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
func (m *myModule) example() *CueSchemas  {
	return dag.
			CueSchemas()
}
@function
def example() -> dag.CueSchemas:
	return (
		dag.cue_schemas()
	)
@func()
example(): CueSchemas {
	return dag
		.cueSchemas()
}

Types

CueSchemas 🔗

timoniVersion() 🔗

returns the timoni version

Return Type
String !
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
 timoni-version
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			CueSchemas().
			TimoniVersion(ctx)
}
@function
async def example() -> str:
	return await (
		dag.cue_schemas()
		.timoni_version()
	)
@func()
async example(): Promise<string> {
	return dag
		.cueSchemas()
		.timoniVersion()
}

cueVersion() 🔗

returns the cue version

Return Type
String !
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
 cue-version
func (m *myModule) example(ctx context.Context) string  {
	return dag.
			CueSchemas().
			CueVersion(ctx)
}
@function
async def example() -> str:
	return await (
		dag.cue_schemas()
		.cue_version()
	)
@func()
async example(): Promise<string> {
	return dag
		.cueSchemas()
		.cueVersion()
}

container() 🔗

returns a container with the timoni and cue binaries

Return Type
Container !
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
 container
func (m *myModule) example() *Container  {
	return dag.
			CueSchemas().
			Container()
}
@function
def example() -> dagger.Container:
	return (
		dag.cue_schemas()
		.container()
	)
@func()
example(): Container {
	return dag
		.cueSchemas()
		.container()
}

vendorKubernetes() 🔗

vendor Kubernetes API CUE schemas

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
versionString !-No description provided
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
 vendor-kubernetes --version string
func (m *myModule) example(version string) *Directory  {
	return dag.
			CueSchemas().
			VendorKubernetes(version)
}
@function
def example(version: str) -> dagger.Directory:
	return (
		dag.cue_schemas()
		.vendor_kubernetes(version)
	)
@func()
example(version: string): Directory {
	return dag
		.cueSchemas()
		.vendorKubernetes(version)
}

vendorTimoni() 🔗

vendor Timoni CUE schemas for the current version

Return Type
Directory !
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
 vendor-timoni
func (m *myModule) example() *Directory  {
	return dag.
			CueSchemas().
			VendorTimoni()
}
@function
def example() -> dagger.Directory:
	return (
		dag.cue_schemas()
		.vendor_timoni()
	)
@func()
example(): Directory {
	return dag
		.cueSchemas()
		.vendorTimoni()
}

vendorGithub() 🔗

vendor Kubernetes CRD CUE schemas from GitHub

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
tagString !-the github tag
ownerString !-the github owner
repoString !-the github repo
file[String ! ] -the repo files to vendor
dir[String ! ] -the repo directories to vendor
asset[String ! ] -the repo release assets to vendor
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
 vendor-github --tag string --owner string --repo string
func (m *myModule) example(tag string, owner string, repo string) *Directory  {
	return dag.
			CueSchemas().
			VendorGithub(tag, owner, repo)
}
@function
def example(tag: str, owner: str, repo: str) -> dagger.Directory:
	return (
		dag.cue_schemas()
		.vendor_github(tag, owner, repo)
	)
@func()
example(tag: string, owner: string, repo: string): Directory {
	return dag
		.cueSchemas()
		.vendorGithub(tag, owner, repo)
}

validate() 🔗

validate a sources.yaml file

Return Type
Void !
Arguments
NameTypeDefault ValueDescription
fileFile !-No description provided
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
 validate --file file:path
func (m *myModule) example(ctx context.Context, file *File)   {
	return dag.
			CueSchemas().
			Validate(ctx, file)
}
@function
async def example(file: dagger.File) -> None:
	return await (
		dag.cue_schemas()
		.validate(file)
	)
@func()
async example(file: File): Promise<void> {
	return dag
		.cueSchemas()
		.validate(file)
}

vendor() 🔗

vendor CUE schemas from a sources.yaml file

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
fileFile !-No description provided
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
 vendor --file file:path
func (m *myModule) example(file *File) *Directory  {
	return dag.
			CueSchemas().
			Vendor(file)
}
@function
def example(file: dagger.File) -> dagger.Directory:
	return (
		dag.cue_schemas()
		.vendor(file)
	)
@func()
example(file: File): Directory {
	return dag
		.cueSchemas()
		.vendor(file)
}

publish() 🔗

publish CUE schemas from a sources.yaml file

Return Type
String !
Arguments
NameTypeDefault ValueDescription
fileFile !-No description provided
registryString -the registry URL
usernameString "derp"the registry username
passwordSecret -the registry password
serviceService -the registry service
Example
dagger -m github.com/orvis98/daggerverse/cue-schemas@1683fd8827d37912c419cca7a9f8d3c03a4a2911 call \
 publish --file file:path
func (m *myModule) example(ctx context.Context, file *File) string  {
	return dag.
			CueSchemas().
			Publish(ctx, file)
}
@function
async def example(file: dagger.File) -> str:
	return await (
		dag.cue_schemas()
		.publish(file)
	)
@func()
async example(file: File): Promise<string> {
	return dag
		.cueSchemas()
		.publish(file)
}