package
0.1.0-alpha.6
Repository: https://github.com/slosive/sloscribe.git
Documentation: pkg.go.dev

# README

generate

import "github.com/slosive/sloscribe/internal/generate"

Package generate contains utilities to generate data from a given specification

Index

Constants

DefaultServiceDefinitionDir is the default filename for the output file

const DefaultServiceDefinitionDir = "slo_definitions"

Variables

ErrUnsupportedFormat is returned if the output format is unsupported

var ErrUnsupportedFormat = errors.New("the specification is in an invalid format")

func IsValidOutputFormat

func IsValidOutputFormat(format string) bool

func WriteK8Specifications

func WriteK8Specifications(writer io.Writer, header []byte, specs map[string]any, toFile bool, outputDirectory string, formats ...string) error

WriteK8Specifications write the k8s service spec bytes to a specific writer, stdout or file

func WriteSpecifications

func WriteSpecifications(writer io.Writer, header []byte, specs map[string]any, toFile bool, outputDirectory string, formats ...string) error

WriteSpecifications write the service spec bytes to a specific writer, stdout or file

Generated by gomarkdoc