spectral
No long description provided.
Installation
dagger install github.com/sagikazarmark/daggerverse/spectral@0b8282cde176aff0ab37df7f6d7bc118cc5727d2Entrypoint
Return Type
Spectral Example
dagger -m github.com/sagikazarmark/daggerverse/spectral@0b8282cde176aff0ab37df7f6d7bc118cc5727d2 call \
func (m *MyModule) Example() *dagger.Spectral {
return dag.
Spectral()
}@function
def example() -> dagger.Spectral:
return (
dag.spectral()
)@func()
example(): Spectral {
return dag
.spectral()
}Types
Spectral 🔗
withVersion() 🔗
Specify which version of Spectral to use.
Return Type
SpectralContainer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| version | StringKind ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/spectral@0b8282cde176aff0ab37df7f6d7bc118cc5727d2 call \
with-versionfunc (m *MyModule) Example(version ) {
return dag.
Spectral().
WithVersion(version)
}@function
def example(version: ) -> :
return (
dag.spectral()
.with_version(version)
)@func()
example(version: ): {
return dag
.spectral()
.withVersion(version)
}withImageRef() 🔗
Specify a custom image reference in “repository:tag” format.
Return Type
SpectralContainer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ref | StringKind ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/spectral@0b8282cde176aff0ab37df7f6d7bc118cc5727d2 call \
with-image-reffunc (m *MyModule) Example(ref ) {
return dag.
Spectral().
WithImageRef(ref)
}@function
def example(ref: ) -> :
return (
dag.spectral()
.with_image_ref(ref)
)@func()
example(ref: ): {
return dag
.spectral()
.withImageRef(ref)
}withContainer() 🔗
Specify a custom container.
Return Type
SpectralContainer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/spectral@0b8282cde176aff0ab37df7f6d7bc118cc5727d2 call \
with-containerfunc (m *MyModule) Example(ctr ) {
return dag.
Spectral().
WithContainer(ctr)
}@function
def example(ctr: ) -> :
return (
dag.spectral()
.with_container(ctr)
)@func()
example(ctr: ): {
return dag
.spectral()
.withContainer(ctr)
}withSource() 🔗
Mount a source directory.
Return Type
SpectralContainerWithSource !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
Example
dagger -m github.com/sagikazarmark/daggerverse/spectral@0b8282cde176aff0ab37df7f6d7bc118cc5727d2 call \
with-sourcefunc (m *MyModule) Example(src ) {
return dag.
Spectral().
WithSource(src)
}@function
def example(src: ) -> :
return (
dag.spectral()
.with_source(src)
)@func()
example(src: ): {
return dag
.spectral()
.withSource(src)
}container() 🔗
Return the default container.
Return Type
Container ! Example
dagger -m github.com/sagikazarmark/daggerverse/spectral@0b8282cde176aff0ab37df7f6d7bc118cc5727d2 call \
containerfunc (m *MyModule) Example() {
return dag.
Spectral().
Container()
}@function
def example() -> :
return (
dag.spectral()
.container()
)@func()
example(): {
return dag
.spectral()
.container()
}SpectralContainer 🔗
ctr() 🔗
Return Type
Container ! Example
Function SpectralSpectralContainer.Ctr is not accessible from the spectral moduleFunction SpectralSpectralContainer.Ctr is not accessible from the spectral moduleFunction SpectralSpectralContainer.Ctr is not accessible from the spectral moduleFunction SpectralSpectralContainer.Ctr is not accessible from the spectral modulecontainer() 🔗
Return the default container.
Return Type
Container ! Example
Function SpectralSpectralContainer.container is not accessible from the spectral moduleFunction SpectralSpectralContainer.container is not accessible from the spectral moduleFunction SpectralSpectralContainer.container is not accessible from the spectral moduleFunction SpectralSpectralContainer.container is not accessible from the spectral modulewithSource() 🔗
Mount a source directory.
Return Type
SpectralContainerWithSource !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
Example
Function SpectralSpectralContainer.withSource is not accessible from the spectral moduleFunction SpectralSpectralContainer.withSource is not accessible from the spectral moduleFunction SpectralSpectralContainer.withSource is not accessible from the spectral moduleFunction SpectralSpectralContainer.withSource is not accessible from the spectral moduleSpectralContainerWithSource 🔗
spectralContainer() 🔗
Return Type
SpectralContainer ! Example
Function SpectralSpectralContainerWithSource.SpectralContainer is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.SpectralContainer is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.SpectralContainer is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.SpectralContainer is not accessible from the spectral modulecontainer() 🔗
Return the default container.
Return Type
Container ! Example
Function SpectralSpectralContainerWithSource.container is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.container is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.container is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.container is not accessible from the spectral modulewithSource() 🔗
Mount a source directory.
Return Type
SpectralContainerWithSource !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| src | Directory ! | - | No description provided |
Example
Function SpectralSpectralContainerWithSource.withSource is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.withSource is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.withSource is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.withSource is not accessible from the spectral modulelint() 🔗
example usage: “dagger call with-source –src . lint –document openapi.yaml”
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| document | StringKind ! | - | No description provided |
Example
Function SpectralSpectralContainerWithSource.lint is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.lint is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.lint is not accessible from the spectral moduleFunction SpectralSpectralContainerWithSource.lint is not accessible from the spectral module