configure: Index | Files

package test

import ""

Copyright 2015 Gravitational, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Package Files


type Config Uses

type Config struct {
    StringVar   string              `env:"TEST_STRING_VAR" cli:"string" yaml:"string"`
    BoolVar     bool                `env:"TEST_BOOL_VAR" cli:"bool" yaml:"bool"`
    IntVar      int                 `env:"TEST_INT_VAR" cli:"int" yaml:"int"`
    HexVar      hexType             `env:"TEST_HEX_VAR" cli:"hex" yaml:"hex"`
    MapVar      map[string]string   `env:"TEST_MAP_VAR" cli:"map" yaml:"map,flow"`
    SliceMapVar []map[string]string `env:"TEST_SLICE_MAP_VAR" cli:"slice" yaml:"slice,flow"`
    Nested      struct {
        NestedVar string `env:"TEST_NESTED_VAR" cli:"nested" yaml:"nested"`
    }   `yaml:"nested"`

type ConfigSuite Uses

type ConfigSuite struct {

func (*ConfigSuite) CheckVariables Uses

func (s *ConfigSuite) CheckVariables(c *C, cfg *Config)

Package test imports 2 packages (graph). Updated 2017-06-26. Refresh now. Tools for package owners. This is a dead-end fork (no commits since the fork).