mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-24 00:28:18 +00:00
25 lines
422 B
Go
25 lines
422 B
Go
|
package repository
|
||
|
|
||
|
//Asset represents all information about a asset (img)
|
||
|
type Asset struct {
|
||
|
// ID is to refer to the asset
|
||
|
ID string
|
||
|
//Asset is the actual image
|
||
|
Asset []byte
|
||
|
//Action defines if asset should be added or removed
|
||
|
Action AssetAction
|
||
|
}
|
||
|
|
||
|
type AssetAction int32
|
||
|
|
||
|
const (
|
||
|
AssetAdded AssetAction = iota
|
||
|
AssetRemoved
|
||
|
|
||
|
assetCount
|
||
|
)
|
||
|
|
||
|
func (f AssetAction) Valid() bool {
|
||
|
return f >= 0 && f < assetCount
|
||
|
}
|