opt

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package opt implements configuration options.

Package opt implements configuration options.

Package opt implements configuration options.

Index

Constants

This section is empty.

Variables

View Source
var ACLResourceTypeValidValues = []string{
	"any",
	"topic",
	"group",
	"cluster",
	"transactional_id",
	"delegation_token",
}

ACLResourceTypeValidValues represents valid values for ACL resource type.

View Source
var AssignmentsValidValues = []string{"none", "broker", "rack"}

AssignmentsValidValues represents valid values for assignments.

View Source
var DefinitionFormatValidValues = []string{"yaml", "json"}

DefinitionFormatValidValues represents valid values for definition format.

Functions

This section is empty.

Types

type Assignments

type Assignments int8

Assignments represents the format in which assignments are exported.

const (
	UnsupportedAssignments Assignments = 0
	NoAssignments          Assignments = 1
	BrokerAssignments      Assignments = 2
	RackAssignments        Assignments = 3
)

Assignments types.

func ParseAssignments

func ParseAssignments(assignments string) Assignments

ParseAssignments parses an assignments option from a string.

type DefinitionFormat

type DefinitionFormat int8

DefinitionFormat represents the format of resource definitions.

const (
	UnsupportedFormat DefinitionFormat = 0
	YAMLFormat        DefinitionFormat = 1
	JSONFormat        DefinitionFormat = 2
)

DefinitionFormat types.

func ParseDefinitionFormat

func ParseDefinitionFormat(format string) DefinitionFormat

ParseDefinitionFormat parses a definition format from a string.

func (DefinitionFormat) Ext

func (d DefinitionFormat) Ext() string

Ext returns the file extension for the format.

Jump to

Keyboard shortcuts

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