mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
feat(tags): add the ability to manage tags (#1971)
* feat(tags): add the ability to manage tags * feat(tags): update tag selector UX * refactor(app): remove unused ui-select library
This commit is contained in:
parent
b349f16090
commit
5e73a49473
50 changed files with 942 additions and 118 deletions
|
@ -107,6 +107,16 @@ func UnmarshalDockerHub(data []byte, settings *portainer.DockerHub) error {
|
|||
return json.Unmarshal(data, settings)
|
||||
}
|
||||
|
||||
// MarshalTag encodes a Tag object to binary format.
|
||||
func MarshalTag(tag *portainer.Tag) ([]byte, error) {
|
||||
return json.Marshal(tag)
|
||||
}
|
||||
|
||||
// UnmarshalTag decodes a Tag object from a binary data.
|
||||
func UnmarshalTag(data []byte, tag *portainer.Tag) error {
|
||||
return json.Unmarshal(data, tag)
|
||||
}
|
||||
|
||||
// Itob returns an 8-byte big endian representation of v.
|
||||
// This function is typically used for encoding integer IDs to byte slices
|
||||
// so that they can be used as BoltDB keys.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue