raw

package
v0.23.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 12

Documentation

Overview

Package raw provides the defined raw types for Vela.

Usage:

import "github.com/go-vela/types/raw"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSlice

type StringSlice []string

StringSlice represents a string or an array of strings.

func (*StringSlice) UnmarshalJSON

func (s *StringSlice) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the Unmarshaler interface for the StringSlice type.

func (*StringSlice) UnmarshalYAML

func (s *StringSlice) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaler interface for the StringSlice type.

type StringSliceMap

type StringSliceMap map[string]string

StringSliceMap represents an array of strings or a map of strings.

func (*StringSliceMap) Scan added in v0.7.0

func (s *StringSliceMap) Scan(value interface{}) error

Scan decodes the JSON string into map[string]string.

func (*StringSliceMap) UnmarshalJSON

func (s *StringSliceMap) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the Unmarshaler interface for the StringSlice type.

func (*StringSliceMap) UnmarshalYAML

func (s *StringSliceMap) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the Unmarshaler interface for the StringSliceMap type.

func (StringSliceMap) Value added in v0.7.0

func (s StringSliceMap) Value() (driver.Value, error)

Value returns the map in JSON format.

Jump to

Keyboard shortcuts

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