sharing

package
v0.10.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sharing implements the loading of sharing related blocks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

File is a sharing backend generated file.

func PrepareFile

func PrepareFile(root *config.Root, filename string, inputs config.Inputs, outputs config.Outputs) (File, error)

PrepareFile prepares a sharing backend generated file.

func (File) Asserts

func (f File) Asserts() []config.Assert

Asserts returns nil

func (File) Body

func (f File) Body() string

Body returns a string representation of the HCL code or an empty string if the config itself is empty.

func (File) Builtin

func (f File) Builtin() bool

Builtin returns true for sharing_backend related blocks.

func (File) Condition

func (f File) Condition() bool

Condition is true if there's any input or output to be generated.

func (File) Context

func (f File) Context() string

Context of the generate_hcl block.

func (File) Header

func (f File) Header() string

Header returns the header of the generated HCL file.

func (File) Label

func (f File) Label() string

Label of the original generate_hcl block.

func (File) Range

func (f File) Range() info.Range

Range returns the range information of the generate_file block.

func (File) String

func (f File) String() string

Jump to

Keyboard shortcuts

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