Documentation ¶
Index ¶
- Constants
- func BatchDeleteDHCPs(ctx context.Context, ids []string) error
- func BatchDeleteIPs(ctx context.Context, ids []string) error
- func BatchGetChromePlatforms(ctx context.Context, ids []string) ([]*ufspb.ChromePlatform, error)
- func BatchGetDHCPConfigs(ctx context.Context, ids []string) ([]*ufspb.DHCPConfig, error)
- func BatchGetMachineLSEPrototypes(ctx context.Context, ids []string) ([]*ufspb.MachineLSEPrototype, error)
- func BatchGetRackLSEPrototypes(ctx context.Context, ids []string) ([]*ufspb.RackLSEPrototype, error)
- func BatchGetVlans(ctx context.Context, ids []string) ([]*ufspb.Vlan, error)
- func BatchUpdateChromePlatforms(ctx context.Context, platforms []*ufspb.ChromePlatform) ([]*ufspb.ChromePlatform, error)
- func BatchUpdateDHCPs(ctx context.Context, dhcps []*ufspb.DHCPConfig) ([]*ufspb.DHCPConfig, error)
- func BatchUpdateIPs(ctx context.Context, ips []*ufspb.IP) ([]*ufspb.IP, error)
- func BatchUpdateMachineLSEPrototypes(ctx context.Context, machineLSEPrototypes []*ufspb.MachineLSEPrototype) ([]*ufspb.MachineLSEPrototype, error)
- func BatchUpdateRackLSEPrototypes(ctx context.Context, prototypes []*ufspb.RackLSEPrototype) ([]*ufspb.RackLSEPrototype, error)
- func BatchUpdateVlans(ctx context.Context, vlans []*ufspb.Vlan) ([]*ufspb.Vlan, error)
- func CreateChromePlatform(ctx context.Context, chromePlatform *ufspb.ChromePlatform) (*ufspb.ChromePlatform, error)
- func CreateMachineLSEPrototype(ctx context.Context, machineLSEPrototype *ufspb.MachineLSEPrototype) (*ufspb.MachineLSEPrototype, error)
- func CreateRackLSEPrototype(ctx context.Context, rackLSEPrototype *ufspb.RackLSEPrototype) (*ufspb.RackLSEPrototype, error)
- func CreateVlan(ctx context.Context, vlan *ufspb.Vlan) (*ufspb.Vlan, error)
- func DeleteChromePlatform(ctx context.Context, id string) error
- func DeleteChromePlatforms(ctx context.Context, resourceNames []string) *ufsds.OpResults
- func DeleteDHCP(ctx context.Context, id string) error
- func DeleteDHCPs(ctx context.Context, resourceNames []string) *ufsds.OpResults
- func DeleteIPs(ctx context.Context, resourceNames []string) *ufsds.OpResults
- func DeleteMachineLSEPrototype(ctx context.Context, id string) error
- func DeleteOSes(ctx context.Context, resourceNames []string) *ufsds.OpResults
- func DeleteRackLSEPrototype(ctx context.Context, id string) error
- func DeleteVlan(ctx context.Context, id string) error
- func DeleteVlans(ctx context.Context, resourceNames []string) *ufsds.OpResults
- func GenerateCBEntityId(cb *payload.ConfigBundle) (string, error)
- func GetAllChromePlatforms(ctx context.Context) (*ufsds.OpResults, error)
- func GetAllDHCPs(ctx context.Context) (*ufsds.OpResults, error)
- func GetAllIPs(ctx context.Context) (*ufsds.OpResults, error)
- func GetAllOSes(ctx context.Context) (*ufsds.OpResults, error)
- func GetAllVlans(ctx context.Context) (*ufsds.OpResults, error)
- func GetChromePlatform(ctx context.Context, id string) (*ufspb.ChromePlatform, error)
- func GetChromePlatformIndexedFieldName(input string) (string, error)
- func GetConfigBundle(ctx context.Context, id string) (rsp *payload.ConfigBundle, err error)
- func GetDHCPConfig(ctx context.Context, id string) (*ufspb.DHCPConfig, error)
- func GetDHCPIndexedFieldName(input string) (string, error)
- func GetIPIndexedFieldName(input string) (string, error)
- func GetMachineLSEPrototype(ctx context.Context, id string) (*ufspb.MachineLSEPrototype, error)
- func GetMachineLSEPrototypeIndexedFieldName(input string) (string, error)
- func GetOSVersionIndexedFieldName(input string) (string, error)
- func GetPlatformsFromGit(ctx context.Context, gitC *gitlib.Client, fp string) (*crimsonconfig.Platforms, error)
- func GetRackLSEPrototype(ctx context.Context, id string) (*ufspb.RackLSEPrototype, error)
- func GetRackLSEPrototypeIndexedFieldName(input string) (string, error)
- func GetVlan(ctx context.Context, id string) (*ufspb.Vlan, error)
- func GetVlanIndexedFieldName(input string) (string, error)
- func ImportChromePlatforms(ctx context.Context, platforms []*ufspb.ChromePlatform) (*ufsds.OpResults, error)
- func ImportDHCPConfigs(ctx context.Context, dhcpConfigs []*ufspb.DHCPConfig) (*ufsds.OpResults, error)
- func ImportIPs(ctx context.Context, ips []*ufspb.IP) (*ufsds.OpResults, error)
- func ImportMachineLSEPrototypes(ctx context.Context, lps []*ufspb.MachineLSEPrototype) (*ufsds.OpResults, error)
- func ImportOses(ctx context.Context, oses []*ufspb.OSVersion) (*ufsds.OpResults, error)
- func ImportRackLSEPrototypes(ctx context.Context, lps []*ufspb.RackLSEPrototype) (*ufsds.OpResults, error)
- func ImportVlans(ctx context.Context, vlans []*ufspb.Vlan) (*ufsds.OpResults, error)
- func ListChromePlatforms(ctx context.Context, pageSize int32, pageToken string, ...) (res []*ufspb.ChromePlatform, nextPageToken string, err error)
- func ListDHCPConfigs(ctx context.Context, pageSize int32, pageToken string, ...) (res []*ufspb.DHCPConfig, nextPageToken string, err error)
- func ListIPs(ctx context.Context, pageSize int32, pageToken string, ...) (res []*ufspb.IP, nextPageToken string, err error)
- func ListMachineLSEPrototypes(ctx context.Context, pageSize int32, pageToken string, ...) (res []*ufspb.MachineLSEPrototype, nextPageToken string, err error)
- func ListOSes(ctx context.Context, pageSize int32, pageToken string, ...) (res []*ufspb.OSVersion, nextPageToken string, err error)
- func ListRackLSEPrototypes(ctx context.Context, pageSize int32, pageToken string, ...) (res []*ufspb.RackLSEPrototype, nextPageToken string, err error)
- func ListVlans(ctx context.Context, pageSize int32, pageToken string, ...) (res []*ufspb.Vlan, nextPageToken string, err error)
- func ParsePlatformsFromFile(path string) (*crimsonconfig.Platforms, error)
- func QueryDHCPConfigByPropertyName(ctx context.Context, propertyName, id string) ([]*ufspb.DHCPConfig, error)
- func QueryIPByPropertyName(ctx context.Context, propertyMap map[string]string) ([]*ufspb.IP, error)
- func QueryVlanByPropertyName(ctx context.Context, propertyName, id string, keysOnly bool) ([]*ufspb.Vlan, error)
- func SaveProjectConfig(ctx context.Context, e *ProjectConfigEntity) error
- func UpdateChromePlatform(ctx context.Context, chromePlatform *ufspb.ChromePlatform) (*ufspb.ChromePlatform, error)
- func UpdateConfigBundle(ctx context.Context, cb *payload.ConfigBundle) (*payload.ConfigBundle, error)
- func UpdateMachineLSEPrototype(ctx context.Context, machineLSEPrototype *ufspb.MachineLSEPrototype) (*ufspb.MachineLSEPrototype, error)
- func UpdateRackLSEPrototype(ctx context.Context, rackLSEPrototype *ufspb.RackLSEPrototype) (*ufspb.RackLSEPrototype, error)
- func UpdateVlan(ctx context.Context, vlan *ufspb.Vlan) (*ufspb.Vlan, error)
- type ChromePlatformEntity
- type ConfigBundleEntity
- type DHCPEntity
- type IPEntity
- type MachineLSEPrototypeEntity
- type OSVersionEntity
- type ProjectConfigEntity
- type RackLSEPrototypeEntity
- type VlanEntity
Constants ¶
const ChromePlatformKind string = "ChromePlatform"
ChromePlatformKind is the datastore entity kind for chrome platforms.
const ConfigBundleKind string = "ConfigBundle"
ConfigBundleKind is the datastore entity kind ConfigBundle.
const DHCPKind string = "DHCP"
DHCPKind is the datastore entity kind dhcp.
const IPKind string = "IP"
IPKind is the datastore entity kind for IP record
const MachineLSEPrototypeKind string = "MachineLSEPrototype"
MachineLSEPrototypeKind is the datastore entity kind for MachineLSEPrototypes.
const OSVersionKind string = "OSVersion"
OSVersionKind is the datastore entity kind for chrome os_version.
const ProjectConfigKind string = "ProjectConfig"
ProjectConfigKind is the datastore entity kind for storing the project configs.
const RackLSEPrototypeKind string = "RackLSEPrototype"
RackLSEPrototypeKind is the datastore entity kind for RackLSEPrototypes.
const VlanKind string = "Vlan"
VlanKind is the datastore entity kind Vlan.
Variables ¶
This section is empty.
Functions ¶
func BatchDeleteDHCPs ¶
BatchDeleteDHCPs deletes dhcps in datastore.
This is a non-atomic operation. Must be used within a transaction. Will lead to partial deletes if not used in a transaction.
func BatchDeleteIPs ¶
BatchDeleteIPs deletes ips in datastore.
This is a non-atomic operation. Must be used within a transaction. Will lead to partial deletes if not used in a transaction.
func BatchGetChromePlatforms ¶
BatchGetChromePlatforms returns a batch of chrome platforms from datastore.
func BatchGetDHCPConfigs ¶
BatchGetDHCPConfigs returns a batch of dhcp configs
func BatchGetMachineLSEPrototypes ¶
func BatchGetMachineLSEPrototypes(ctx context.Context, ids []string) ([]*ufspb.MachineLSEPrototype, error)
BatchGetMachineLSEPrototypes returns a batch of machine lse prototypes from datastore.
func BatchGetRackLSEPrototypes ¶
func BatchGetRackLSEPrototypes(ctx context.Context, ids []string) ([]*ufspb.RackLSEPrototype, error)
BatchGetRackLSEPrototypes returns a batch of rack lse prototypes from datastore.
func BatchGetVlans ¶
BatchGetVlans returns a batch of vlans from datastore.
func BatchUpdateChromePlatforms ¶
func BatchUpdateChromePlatforms(ctx context.Context, platforms []*ufspb.ChromePlatform) ([]*ufspb.ChromePlatform, error)
BatchUpdateChromePlatforms updates ChromePlatforms in datastore.
This is a non-atomic operation and doesnt check if the object already exists before update. Must be used within a Transaction where objects are checked before update. Will lead to partial updates if not used in a transaction.
func BatchUpdateDHCPs ¶
func BatchUpdateDHCPs(ctx context.Context, dhcps []*ufspb.DHCPConfig) ([]*ufspb.DHCPConfig, error)
BatchUpdateDHCPs updates the dhcp entity to UFS.
This can be used inside a transaction
func BatchUpdateIPs ¶
BatchUpdateIPs updates the ip entity to UFS.
This can be used inside a transaction
func BatchUpdateMachineLSEPrototypes ¶
func BatchUpdateMachineLSEPrototypes(ctx context.Context, machineLSEPrototypes []*ufspb.MachineLSEPrototype) ([]*ufspb.MachineLSEPrototype, error)
BatchUpdateMachineLSEPrototypes updates machineLSEPrototype in datastore.
This is a non-atomic operation and doesnt check if the object already exists before update. Must be used within a Transaction where objects are checked before update. Will lead to partial updates if not used in a transaction.
func BatchUpdateRackLSEPrototypes ¶
func BatchUpdateRackLSEPrototypes(ctx context.Context, prototypes []*ufspb.RackLSEPrototype) ([]*ufspb.RackLSEPrototype, error)
BatchUpdateRackLSEPrototypes updates rackLSEPrototype in datastore.
This is a non-atomic operation and doesnt check if the object already exists before update. Must be used within a Transaction where objects are checked before update. Will lead to partial updates if not used in a transaction.
func BatchUpdateVlans ¶
BatchUpdateVlans updates a batch of vlans to datastore
Can be used in a transaction
func CreateChromePlatform ¶
func CreateChromePlatform(ctx context.Context, chromePlatform *ufspb.ChromePlatform) (*ufspb.ChromePlatform, error)
CreateChromePlatform creates a new chromePlatform in datastore.
func CreateMachineLSEPrototype ¶
func CreateMachineLSEPrototype(ctx context.Context, machineLSEPrototype *ufspb.MachineLSEPrototype) (*ufspb.MachineLSEPrototype, error)
CreateMachineLSEPrototype creates a new machineLSEPrototype in datastore.
func CreateRackLSEPrototype ¶
func CreateRackLSEPrototype(ctx context.Context, rackLSEPrototype *ufspb.RackLSEPrototype) (*ufspb.RackLSEPrototype, error)
CreateRackLSEPrototype creates a new rackLSEPrototype in datastore.
func CreateVlan ¶
CreateVlan creates a new vlan in datastore.
func DeleteChromePlatform ¶
DeleteChromePlatform deletes the chromePlatform in datastore
func DeleteChromePlatforms ¶
DeleteChromePlatforms deletes a batch of chrome platforms
func DeleteDHCPs ¶
DeleteDHCPs deletes a batch of dhcps
This function doesn't throw exceptions if the resourceName doesn't exist.
func DeleteMachineLSEPrototype ¶
DeleteMachineLSEPrototype deletes the machineLSEPrototype in datastore
func DeleteOSes ¶
DeleteOSes deletes a batch of chrome os_version
func DeleteRackLSEPrototype ¶
DeleteRackLSEPrototype deletes the rackLSEPrototype in datastore
func DeleteVlan ¶
DeleteVlan deletes the vlan in datastore
func DeleteVlans ¶
DeleteVlans deletes a batch of vlans
func GenerateCBEntityId ¶
func GenerateCBEntityId(cb *payload.ConfigBundle) (string, error)
func GetAllChromePlatforms ¶
GetAllChromePlatforms returns all platforms in record.
func GetAllDHCPs ¶
GetAllDHCPs returns all dhcps in datastore.
func GetAllOSes ¶
GetAllOSes returns all os versions in record.
func GetAllVlans ¶
GetAllVlans returns all vlans in datastore.
func GetChromePlatform ¶
GetChromePlatform returns chromePlatform for the given id from datastore.
func GetChromePlatformIndexedFieldName ¶
GetChromePlatformIndexedFieldName returns the index name
func GetConfigBundle ¶
GetConfigBundle returns ConfigBundle for the given id (${programId}-${designId}) from datastore.
func GetDHCPConfig ¶
GetDHCPConfig returns dhcp config for the given id from datastore.
func GetDHCPIndexedFieldName ¶
GetDHCPIndexedFieldName returns the index name
func GetIPIndexedFieldName ¶
GetIPIndexedFieldName returns the index name
func GetMachineLSEPrototype ¶
GetMachineLSEPrototype returns machineLSEPrototype for the given id from datastore.
func GetMachineLSEPrototypeIndexedFieldName ¶
GetMachineLSEPrototypeIndexedFieldName returns the index name
func GetOSVersionIndexedFieldName ¶
GetOSVersionIndexedFieldName returns the index name
func GetPlatformsFromGit ¶
func GetPlatformsFromGit(ctx context.Context, gitC *gitlib.Client, fp string) (*crimsonconfig.Platforms, error)
GetPlatformsFromGit gets chrome platforms from git.
func GetRackLSEPrototype ¶
GetRackLSEPrototype returns rackLSEPrototype for the given id from datastore.
func GetRackLSEPrototypeIndexedFieldName ¶
GetRackLSEPrototypeIndexedFieldName returns the index name
func GetVlanIndexedFieldName ¶
GetVlanIndexedFieldName returns the index name
func ImportChromePlatforms ¶
func ImportChromePlatforms(ctx context.Context, platforms []*ufspb.ChromePlatform) (*ufsds.OpResults, error)
ImportChromePlatforms inserts chrome platforms to datastore.
func ImportDHCPConfigs ¶
func ImportDHCPConfigs(ctx context.Context, dhcpConfigs []*ufspb.DHCPConfig) (*ufsds.OpResults, error)
ImportDHCPConfigs creates or updates a batch of dhcp configs in datastore
func ImportMachineLSEPrototypes ¶
func ImportMachineLSEPrototypes(ctx context.Context, lps []*ufspb.MachineLSEPrototype) (*ufsds.OpResults, error)
ImportMachineLSEPrototypes creates or updates a batch of machine lse prototypes in datastore
func ImportOses ¶
ImportOses inserts chrome os versions to datastore.
func ImportRackLSEPrototypes ¶
func ImportRackLSEPrototypes(ctx context.Context, lps []*ufspb.RackLSEPrototype) (*ufsds.OpResults, error)
ImportRackLSEPrototypes creates or updates a batch of rack lse prototypes in datastore
func ImportVlans ¶
ImportVlans creates or updates a batch of vlan in datastore
func ListChromePlatforms ¶
func ListChromePlatforms(ctx context.Context, pageSize int32, pageToken string, filterMap map[string][]interface{}, keysOnly bool) (res []*ufspb.ChromePlatform, nextPageToken string, err error)
ListChromePlatforms lists the chromePlatforms Does a query over ChromePlatform entities. Returns up to pageSize entities, plus non-nil cursor (if there are more results). pageSize must be positive.
func ListDHCPConfigs ¶
func ListDHCPConfigs(ctx context.Context, pageSize int32, pageToken string, filterMap map[string][]interface{}, keysOnly bool) (res []*ufspb.DHCPConfig, nextPageToken string, err error)
ListDHCPConfigs lists the dhcp configs
Does a query over dhcp config entities. Returns up to pageSize entities, plus non-nil cursor (if there are more results). pageSize must be positive.
func ListIPs ¶
func ListIPs(ctx context.Context, pageSize int32, pageToken string, filterMap map[string][]interface{}, keysOnly bool) (res []*ufspb.IP, nextPageToken string, err error)
ListIPs lists the ips
Does a query over ip entities. Returns up to pageSize entities, plus non-nil cursor (if there are more results). pageSize must be positive.
func ListMachineLSEPrototypes ¶
func ListMachineLSEPrototypes(ctx context.Context, pageSize int32, pageToken string, filterMap map[string][]interface{}, keysOnly bool) (res []*ufspb.MachineLSEPrototype, nextPageToken string, err error)
ListMachineLSEPrototypes lists the machineLSEPrototypes
Does a query over MachineLSEPrototype entities. Returns up to pageSize entities, plus non-nil cursor (if there are more results). pageSize must be positive.
func ListOSes ¶
func ListOSes(ctx context.Context, pageSize int32, pageToken string, filterMap map[string][]interface{}, keysOnly bool) (res []*ufspb.OSVersion, nextPageToken string, err error)
ListOSes lists the chrome os_versions
func ListRackLSEPrototypes ¶
func ListRackLSEPrototypes(ctx context.Context, pageSize int32, pageToken string, filterMap map[string][]interface{}, keysOnly bool) (res []*ufspb.RackLSEPrototype, nextPageToken string, err error)
ListRackLSEPrototypes lists the rackLSEPrototypes
Does a query over RackLSEPrototype entities. Returns up to pageSize entities, plus non-nil cursor (if there are more results). pageSize must be positive.
func ListVlans ¶
func ListVlans(ctx context.Context, pageSize int32, pageToken string, filterMap map[string][]interface{}, keysOnly bool) (res []*ufspb.Vlan, nextPageToken string, err error)
ListVlans lists the vlans
Does a query over Vlan entities. Returns up to pageSize entities, plus non-nil cursor (if there are more results). pageSize must be positive.
func ParsePlatformsFromFile ¶
func ParsePlatformsFromFile(path string) (*crimsonconfig.Platforms, error)
ParsePlatformsFromFile parse chrome platforms in crimson format from local file.
func QueryDHCPConfigByPropertyName ¶
func QueryDHCPConfigByPropertyName(ctx context.Context, propertyName, id string) ([]*ufspb.DHCPConfig, error)
QueryDHCPConfigByPropertyName query dhcp entity in the datastore.
func QueryIPByPropertyName ¶
QueryIPByPropertyName query IP Entity by property in the datastore
func QueryVlanByPropertyName ¶
func QueryVlanByPropertyName(ctx context.Context, propertyName, id string, keysOnly bool) ([]*ufspb.Vlan, error)
QueryVlanByPropertyName query's vlanb Entity in the datastore
func SaveProjectConfig ¶
func SaveProjectConfig(ctx context.Context, e *ProjectConfigEntity) error
SaveProjectConfig saves project config to database
func UpdateChromePlatform ¶
func UpdateChromePlatform(ctx context.Context, chromePlatform *ufspb.ChromePlatform) (*ufspb.ChromePlatform, error)
UpdateChromePlatform updates chromePlatform in datastore.
Cannot be used in a transaction
func UpdateConfigBundle ¶
func UpdateConfigBundle(ctx context.Context, cb *payload.ConfigBundle) (*payload.ConfigBundle, error)
UpdateConfigBundle updates ConfigBundle in datastore.
func UpdateMachineLSEPrototype ¶
func UpdateMachineLSEPrototype(ctx context.Context, machineLSEPrototype *ufspb.MachineLSEPrototype) (*ufspb.MachineLSEPrototype, error)
UpdateMachineLSEPrototype updates machineLSEPrototype in datastore.
func UpdateRackLSEPrototype ¶
func UpdateRackLSEPrototype(ctx context.Context, rackLSEPrototype *ufspb.RackLSEPrototype) (*ufspb.RackLSEPrototype, error)
UpdateRackLSEPrototype updates rackLSEPrototype in datastore.
Types ¶
type ChromePlatformEntity ¶
type ChromePlatformEntity struct { ID string `gae:"$id"` Tags []string `gae:"tags"` Manufacturer string `gae:"manufacturer"` // ufspb.ChromePlatform cannot be directly used as it contains pointer. Platform []byte `gae:",noindex"` // contains filtered or unexported fields }
ChromePlatformEntity is a datastore entity that tracks a platform.
type ConfigBundleEntity ¶
type ConfigBundleEntity struct { ID string `gae:"$id"` ConfigData []byte `gae:",noindex"` Updated time.Time // contains filtered or unexported fields }
ConfigBundleEntity is a datastore entity that tracks a ConfigBundle.
type DHCPEntity ¶
type DHCPEntity struct { // refer to the hostname ID string `gae:"$id"` IPv4 string `gae:"ipv4"` Vlan string `gae:"vlan"` // ufspb.DHCPConfig cannot be directly used as it contains pointer (timestamp). Dhcp []byte `gae:",noindex"` // contains filtered or unexported fields }
DHCPEntity is a datastore entity that tracks dhcp.
type IPEntity ¶
type IPEntity struct { // To avoid duplication, the internal reference ID for IP: vlanName/IPv4, e.g. browser:120/20123455612 ID string `gae:"$id"` IPv4 uint32 `gae:"ipv4"` IPv4Str string `gae:"ipv4_str"` Vlan string `gae:"vlan"` Occupied bool `gae:"occupied"` Reserve bool `gae:"reserve"` // contains filtered or unexported fields }
IPEntity is a datastore entity that tracks IP.
type MachineLSEPrototypeEntity ¶
type MachineLSEPrototypeEntity struct { ID string `gae:"$id"` Tags []string `gae:"tags"` // ufspb.MachineLSEPrototype cannot be directly used as it contains pointer. MachineLSEPrototype []byte `gae:",noindex"` // contains filtered or unexported fields }
MachineLSEPrototypeEntity is a datastore entity that tracks a platform.
type OSVersionEntity ¶
type OSVersionEntity struct { ID string `gae:"$id"` // fleet.OSVersion cannot be directly used as it contains pointer. OSVersion []byte `gae:",noindex"` // contains filtered or unexported fields }
OSVersionEntity is a datastore entity that tracks an os_version.
type ProjectConfigEntity ¶
type ProjectConfigEntity struct { Name string `gae:"$id"` DailyDumpTimeStr string // contains filtered or unexported fields }
ProjectConfigEntity is a datastore entity that stores the project configs.
func GetProjectConfig ¶
func GetProjectConfig(ctx context.Context, name string) (*ProjectConfigEntity, error)
GetProjectConfig gets project config from database
type RackLSEPrototypeEntity ¶
type RackLSEPrototypeEntity struct { ID string `gae:"$id"` Tags []string `gae:"tags"` // ufspb.RackLSEPrototype cannot be directly used as it contains pointer. RackLSEPrototype []byte `gae:",noindex"` // contains filtered or unexported fields }
RackLSEPrototypeEntity is a datastore entity that tracks a platform.
type VlanEntity ¶
type VlanEntity struct { ID string `gae:"$id"` State string `gae:"state"` CidrBlock string `gae:"cidr_block"` Zones []string `gae:"zone"` Tags []string `gae:"tags"` // ufspb.Vlan cannot be directly used as it contains pointer. Vlan []byte `gae:",noindex"` // contains filtered or unexported fields }
VlanEntity is a datastore entity that tvlans Vlan.