Documentation ¶
Index ¶
- func AddFormatFlag(flags *pflag.FlagSet, formatPtr *Format)
- func Contains(array []string, str string) bool
- func ConvertUnixTimeToTime(timeUnix float64) time.Time
- func DisplayTime(time time.Time) string
- func GetAllPages[T any](ctx context.Context, client *aponoapi.AponoClient, ...) ([]T, error)
- func IsDateAfterDaysOffset(date time.Time, daysOffset int64) bool
- func IsFlagSet(cmd *cobra.Command, flagName string) bool
- func IsValidUUID(u string) bool
- func PrintObjectsAsJSON(writer io.Writer, objects any) error
- func PrintObjectsAsYaml(writer io.Writer, objects any) error
- func ReturnAPIResponseError(resp *http.Response) error
- type Format
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFormatFlag ¶
func ConvertUnixTimeToTime ¶
func DisplayTime ¶
func GetAllPages ¶
func GetAllPages[T any]( ctx context.Context, client *aponoapi.AponoClient, nextPageFunc func(context.Context, *aponoapi.AponoClient, int32) ([]T, *clientapi.PaginationClientInfoModel, error), ) ([]T, error)
func IsValidUUID ¶
func ReturnAPIResponseError ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.