...

Package flagext

import "github.com/go-openapi/runtime/flagext"
Overview
Index

Overview ▾

type ByteSize

ByteSize used to pass byte sizes to a go-flags CLI

type ByteSize int

func (ByteSize) MarshalFlag

func (b ByteSize) MarshalFlag() (string, error)

MarshalFlag implements go-flags Marshaller interface

func (*ByteSize) Set

func (b *ByteSize) Set(value string) error

Set the value of this bytesize (pflag value interfaces)

func (ByteSize) String

func (b ByteSize) String() string

String method for a bytesize (pflag value and stringer interface)

func (*ByteSize) Type

func (b *ByteSize) Type() string

Type returns the type of the pflag value (pflag value interface)

func (*ByteSize) UnmarshalFlag

func (b *ByteSize) UnmarshalFlag(value string) error

UnmarshalFlag implements go-flags Unmarshaller interface