...

Package flags

import "github.com/chaos-mesh/chaos-mesh/pkg/flags"
Overview
Index

Overview ▾

type MapStringStringFlag

MapStringStringFlag is a flag struct for key=value pairs

type MapStringStringFlag struct {
    Values map[string]string
}

func NewMapStringStringFlag

func NewMapStringStringFlag() MapStringStringFlag

NewMapStringStringFlag creates a new flag var for storing key=value pairs

func (*MapStringStringFlag) Set

func (s *MapStringStringFlag) Set(value string) error

Set implements the flag.Var interface

func (*MapStringStringFlag) String

func (s *MapStringStringFlag) String() string

String implements the flag.Var interface

func (*MapStringStringFlag) ToMapStringString

func (s *MapStringStringFlag) ToMapStringString() map[string]string

ToMapStringString returns the underlying representation of the map of key=value pairs