text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func dataToSg(name string, d *schema.ResourceData) go_thunder.ServiceGroup {
// logger := util.GetLoggerInstance()
var s go_thunder.ServiceGroup
var sInstance go_thunder.ServiceGroupInstance
sInstance.ConnRate = d.Get("conn_rate").(int)
sInstance.ResetOnServerSelectionFail = d.Get("reset_on_server_selection_fail... | [
-0.651451051235199,
0.5128746032714844,
0.7592518925666809,
-1.1890668869018555,
-1.0893412828445435,
0.23991316556930542,
-0.1245432049036026,
-0.13763904571533203,
-0.5682404041290283,
0.09447683393955231,
-0.6912615299224854,
0.6491918563842773,
-0.20000213384628296,
0.28207147121429443... |
func CheckUserCredentials(username string, password []byte) error {
//Maybe we want to do this asynchronous
access := data.CreateDataAccess()
//This is the password from the db
user, err := access.GetUser(username)
if err != nil {
return err
}
err = bcrypt.CompareHashAndPassword(user.HashedPassword, passwor... | [
0.632866621017456,
-0.4785856604576111,
0.6702480316162109,
0.9329003095626831,
-0.08715058863162994,
-0.0470554381608963,
-0.3123524487018585,
0.8073017001152039,
-0.045526545494794846,
0.5247650742530823,
0.025943536311388016,
0.374057799577713,
-0.6915624737739563,
0.4646126329898834,
... |
func NewKeyHeader(keys []Key) *KeyHeader {
if len(keys) == 0 {
return &KeyHeader{}
}
fields := commonProjection(keys).FlattenedFields()
var walk func(parent *KeyHeaderNode)
walk = func(parent *KeyHeaderNode) {
level := parent.Field + 1
if level == len(fields) {
return
}
field := fields[level]
var ... | [
-0.7666005492210388,
0.041842710226774216,
0.754413366317749,
-0.03700539469718933,
-1.4050594568252563,
-0.06667827069759369,
-0.17161782085895538,
-0.5407623648643494,
-0.4689089059829712,
0.35106360912323,
-0.6746125817298889,
-0.220835343003273,
-0.9088479280471802,
0.26118171215057373... |
func NewRootCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "keto",
Short: "Global and consistent permission and authorization server",
}
configx.RegisterConfigFlag(cmd.PersistentFlags(), []string{filepath.Join(userHomeDir(), "keto.yml")})
relationtuple.RegisterCommandsRecursive(cmd)
namespace.RegisterC... | [
0.6400562524795532,
-0.45229095220565796,
0.6876813173294067,
0.3949868083000183,
-0.31728285551071167,
0.24832941591739655,
0.3033086061477661,
-0.07718183845281601,
0.11232901364564896,
-1.0332553386688232,
0.23492036759853363,
0.8009014129638672,
-0.05492572858929634,
1.38450288772583,
... |
func Execute() {
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
if err := NewRootCmd().ExecuteContext(ctx); err != nil {
if !errors.Is(err, cmdx.ErrNoPrintButFail) {
fmt.Println(err)
}
os.Exit(-1)
}
} | [
1.0091493129730225,
-0.5324896574020386,
1.047587275505066,
0.9656636714935303,
0.6776043176651001,
0.7864870429039001,
-0.7053556442260742,
-0.3840179741382599,
-0.44188326597213745,
-0.09230127930641174,
0.9260703325271606,
0.4709000587463379,
-0.3572685718536377,
0.5990312695503235,
0... |
func charTable(t tree.Edge, taxaInv map[string]int, table [][]int) ([][]int, map[string]bool) {
s := make(map[string]bool)
if t.Label != "" {
s[t.Label] = true
}
added := false
for _, u := range t.Children {
var r map[string] bool
table, r = charTable(u, taxaInv, table)
for label := range r {
if !s[la... | [
-0.6660972237586975,
-0.426818311214447,
0.8996336460113525,
-0.3545248210430145,
-0.8391136527061462,
0.13113796710968018,
0.6827394366264343,
0.48865944147109985,
-1.3799786567687988,
1.0448994636535645,
-0.13471820950508118,
0.13220566511154175,
0.6157565116882324,
-0.2434975951910019,
... |
func (mat *T) Array() *[9]float64 {
return &[...]float64{
mat[0][0], mat[0][1], mat[0][2],
mat[1][0], mat[1][1], mat[1][2],
mat[2][0], mat[2][1], mat[2][2],
}
} | [
0.6445369720458984,
-0.11191460490226746,
0.7901889681816101,
-0.5125954151153564,
1.0171000957489014,
0.4258839786052704,
0.20345766842365265,
-1.037627935409546,
-0.45636752247810364,
0.8562868237495422,
0.12044298648834229,
0.01582949236035347,
-0.1519261747598648,
0.28525859117507935,
... |
func generateInjectionPad(i2 []byte, padLength int) []byte {
blockSize := len(i2)
if padLength < 1 {
panic("generateInjectionPad: invalid padLength")
}
randomPrefix, _ := cryptopals.GenerateRandomBytes(blockSize - padLength)
// Generate slice of padded values XORed with the intermediate block for C1'
pad := ... | [
-0.5788658857345581,
0.5626720190048218,
0.528197169303894,
-0.4536004960536957,
-0.6011544466018677,
0.8626863360404968,
-0.38977888226509094,
-0.5159229636192322,
0.3531872034072876,
1.0117117166519165,
-0.9480177760124207,
0.7861888408660889,
-1.0185388326644897,
0.04534759372472763,
... |
func BruteForceBlock(c1, c2 []byte, oracle PaddingOracle) []byte {
if len(c1) != len(c2) {
panic("Block lengths do not match")
}
blockSize := len(c2)
// This is the block which we will be injecting as C1'
inject, _ := cryptopals.GenerateRandomBytes(blockSize)
// The intermediate block which is XORed with the ... | [
0.4489445090293884,
1.0435049533843994,
0.7735142111778259,
-0.606977641582489,
-0.2269294410943985,
0.035695742815732956,
-0.46431002020835876,
-0.7468169331550598,
-0.22847768664360046,
0.333124041557312,
-0.6928536891937256,
1.028077244758606,
-1.0992454290390015,
-0.0770857110619545,
... |
func BruteForcePaddingOracle(ciphertext, iv []byte, oracle PaddingOracle) []byte {
var result []byte
blockSize := 16
ciphertextWithIV := append(iv, ciphertext...)
blocks := cryptopals.SplitBytes(ciphertextWithIV, blockSize)
for i := 1; i < len(blocks); i++ {
result = append(result, BruteForceBlock(blocks[i-1], b... | [
0.3446711599826813,
1.108246088027954,
0.4301760196685791,
0.4290015697479248,
0.39373406767845154,
-0.48642659187316895,
0.1360987424850464,
-0.5296971201896667,
0.1591574251651764,
1.142871379852295,
-1.1822013854980469,
0.16407576203346252,
-1.2694672346115112,
0.09164243936538696,
0.... |
func NewDb() (*DB, error) {
return NewDbForEnv(util.EnvironmentGuess())
} | [
-0.24124324321746826,
0.41697004437446594,
0.1409965306520462,
1.957019567489624,
-0.21405377984046936,
0.5642826557159424,
0.13270336389541626,
-0.448248952627182,
-0.09616854786872864,
-0.4424615800380707,
0.8706507086753845,
0.5483844876289368,
-0.2770068049430847,
0.4966960847377777,
... |
func NewDbForEnv(environment string) (*DB, error) {
databaseName := fmt.Sprintf("traffic_%s", environment)
// Connect to MySQL
conn, err := sql.Open("mysql", "root@/mysql?parseTime=true")
if err != nil {
return nil, err
}
// Wrap the MySQL connection in the Squalor ORM and wrap that in our own DB
// type
ne... | [
-0.4938775300979614,
-0.06558366864919662,
0.8215950727462769,
0.07252799719572067,
0.26716578006744385,
0.35083863139152527,
0.04856117442250252,
-0.3198498785495758,
0.2598179280757904,
-0.16083399951457977,
0.507483184337616,
0.2848632037639618,
-0.06714329123497009,
0.5447891354560852,... |
func (db *DB) Migrate(databaseName string) error {
// Create the tables if necessary
err := MigrateSQL(db.DB.DB, Archive{}.Schema())
if err == nil {
err = MigrateSQL(db.DB.DB, Transform{}.Schema())
}
switch err.(type) {
case *mysql.MySQLError:
// "database does not exist" error
if err.(*mysql.MySQLError).Nu... | [
-0.935139000415802,
1.0600645542144775,
0.8357794284820557,
0.6488956212997437,
0.4465915560722351,
-0.16989339888095856,
-0.2265264391899109,
0.03563019633293152,
0.6910555958747864,
0.03330153971910477,
-0.4558279514312744,
-0.31361696124076843,
-0.5181446075439453,
0.9792375564575195,
... |
func MigrateSQL(conn *sql.DB, query string) error {
rows, err := conn.Query(query)
if err != nil {
fmt.Printf("error migrating: %s\n", err)
return err
}
rows.Next()
rows.Close()
return nil
} | [
0.498415470123291,
0.8847658038139343,
0.5794144868850708,
0.8225946426391602,
-0.2815363109111786,
0.07222405076026917,
-1.090618371963501,
0.0225138608366251,
0.6620038747787476,
0.34691986441612244,
0.4498838484287262,
0.5391172766685486,
0.24915026128292084,
0.31877538561820984,
-0.3... |
func (db *DB) Truncate() {
for _, table := range []string{"archives", "transforms"} {
_, err := db.Exec(fmt.Sprintf("DELETE FROM %s", table))
if err != nil {
panic(err)
}
}
} | [
-0.257583886384964,
1.3435125350952148,
0.5275282859802246,
0.3927251100540161,
1.2786282300949097,
-0.3753667175769806,
0.07684794068336487,
0.011318900622427464,
-0.26435592770576477,
0.4182151257991791,
-0.3184073865413666,
0.4473158121109009,
-0.19414912164211273,
0.3718332052230835,
... |
func NewTodos() (*Todos, error) {
ts := Todos{}
var err error
ts.db, err = sqlx.Connect("postgres", "user=postgres dbname=mydb password=123456 host=127.0.0.1")
if err != nil {
return nil, err
}
return &ts, err
} | [
-0.3501783013343811,
1.0142141580581665,
0.671868622303009,
-0.005648195277899504,
-0.46546971797943115,
-0.8758105039596558,
-1.1292002201080322,
-0.4276949167251587,
-0.7967812418937683,
-0.0750451311469078,
-0.4446789622306824,
0.17266787588596344,
0.011495011858642101,
-0.0501976944506... |
func (ts *Todos) Add(t *Todo) (*Todo, error) {
query := `INSERT INTO tasks (title, expiresat, createdat, done) values ($1, $2, $3, $4)`
ts.db.MustExec(query, t.Title, t.ExpiresAt, t.CreatedAt, t.Done)
rows, err := ts.db.Query(`SELECT * FROM tasks ORDER BY id DESC LIMIT 1`)
if err != nil {
return nil, err
}
... | [
-0.7567404508590698,
0.3236751854419708,
0.9961474537849426,
-0.1259058564901352,
0.20197802782058716,
0.3804369568824768,
-0.47905513644218445,
-0.38366150856018066,
-0.11283345520496368,
0.020256204530596733,
-0.38350799679756165,
0.0314030684530735,
0.1934794783592224,
-0.11936023086309... |
func FindFiles(dir string, mask []string) (files map[string]string, err error) {
var list []string
files = make(map[string]string)
for i := range mask {
list, err = filepath.Glob(dir + "\\" + strings.ToUpper(mask[i]))
if err != nil {
log.Println("findFiles error: ", err)
return nil, err
}
//files = ap... | [
-0.34243905544281006,
-0.7065153121948242,
0.777228832244873,
0.5093625783920288,
0.21496909856796265,
-0.18619780242443085,
0.6857619285583496,
-0.5554330348968506,
-0.7565554976463318,
0.4969302713871002,
0.4540805220603943,
-0.05564688891172409,
-0.6646610498428345,
0.7124688625335693,
... |
func FindAllFiles(rootdir string, mask []string) (files map[string]string, err error) {
dirs := make(map[string]string)
files = make(map[string]string)
dirs, err = FindFiles(rootdir, []string{"*"})
if err != nil {
log.Fatalf("FindAllFiles: FindAllFiles error: %v", err)
}
for k := range dirs {
f, err := Find... | [
0.35967445373535156,
-0.34488898515701294,
0.9064965844154358,
1.4666085243225098,
-0.7948020100593567,
-0.415623277425766,
-0.20739182829856873,
-0.34456872940063477,
-0.4598987102508545,
0.25121885538101196,
0.2866993546485901,
-0.29572996497154236,
-0.5193535685539246,
1.302507042884826... |
func NewStock(dbSession *sql.DB) *Stock {
return &Stock{
db: dbSession,
}
} | [
-0.3103344440460205,
-0.5655595064163208,
0.02481527253985405,
1.0310053825378418,
-0.466835081577301,
-0.5026829838752747,
-0.2576008141040802,
-1.158292293548584,
1.021239995956421,
-0.2723574936389923,
-0.20885808765888214,
0.5996025800704956,
0.2845536768436432,
0.7973740696907043,
0... |
func (s *Stock) FindByID(id string) (model.Model, *errors.Error) {
stmt, err := s.db.Prepare("SELECT SKU, NAME, QUANTITY, BUY_PRICE, SELL_PRICE FROM stock WHERE SKU = ?")
if err != nil {
return nil, errors.Wrap(err, 0)
}
defer stmt.Close()
var sku, name sql.NullString
var quantity sql.NullInt64
var buyPrice,... | [
-0.1387157142162323,
-0.24324898421764374,
0.28568166494369507,
0.20781220495700836,
-0.13647693395614624,
-0.2640100121498108,
-0.6556403040885925,
-1.220531702041626,
-0.21457551419734955,
0.48809072375297546,
-0.7823168039321899,
-0.13252180814743042,
-0.3902358412742615,
0.757968008518... |
func (s *Stock) FindAll() ([]model.Model, *errors.Error) {
rows, err := s.db.Query("SELECT SKU, NAME, QUANTITY, BUY_PRICE, SELL_PRICE FROM stock ORDER BY SKU ASC")
if err != nil {
return nil, errors.Wrap(err, 0)
}
defer rows.Close()
var sku, name sql.NullString
var quantity sql.NullInt64
var buyPrice, sellPri... | [
-0.4320022463798523,
-0.3621317148208618,
0.6520350575447083,
1.0830724239349365,
0.431610107421875,
-0.34617289900779724,
-0.7724770307540894,
-1.0881800651550293,
-0.33754101395606995,
0.17969880998134613,
-0.3461993336677551,
-0.026086196303367615,
0.18111799657344818,
1.086809515953064... |
func (s *Stock) Insert(stockModel model.Model) *errors.Error {
stockModelObj, ok := stockModel.(*model.Stock)
if false == ok {
return errors.Wrap(fmt.Errorf("Failed asserting to *model.Stock"), 0)
}
foundModel, _ := s.FindByID(stockModel.GetID())
if foundModel != nil {
return errors.Wrap(fmt.Errorf("cannot ins... | [
-1.2272224426269531,
0.41884106397628784,
0.5417369604110718,
0.5469992160797119,
0.6626970171928406,
0.028723429888486862,
0.04590759426355362,
-0.9085959792137146,
-0.5079606771469116,
0.34585657715797424,
-1.201126217842102,
-0.6717970967292786,
-0.7400586605072021,
0.6715863347053528,
... |
func (s *Stock) Update(stockModel model.Model) *errors.Error {
stockModelObj, ok := stockModel.(*model.Stock)
if false == ok {
return errors.Wrap(fmt.Errorf("Failed asserting to *model.Stock"), 0)
}
_, errs := s.FindByID(stockModel.GetID())
if errs != nil && errs.Err == sql.ErrNoRows {
return errors.Wrap(fmt.E... | [
-1.4137619733810425,
-0.5910255908966064,
0.28279197216033936,
0.9615256786346436,
-0.1957322508096695,
-0.3353906571865082,
-0.5938608050346375,
-0.9518735408782959,
-0.3109423518180847,
0.35874059796333313,
-0.7626907229423523,
-0.3007965683937073,
-0.08768952637910843,
0.572292745113372... |
func (s *Stock) UpdateWithTx(stockModel model.Model, tx *sql.Tx) *errors.Error {
stockModelObj, ok := stockModel.(*model.Stock)
if false == ok {
return errors.Wrap(fmt.Errorf("Failed asserting to *model.Stock"), 0)
}
_, errs := s.FindByID(stockModel.GetID())
if errs != nil && errs.Err == sql.ErrNoRows {
return... | [
-0.8921462893486023,
-0.7955146431922913,
0.5078883171081543,
0.2265753597021103,
-0.8881036043167114,
-0.2106650024652481,
-1.1084738969802856,
-1.0156182050704956,
-0.15604671835899353,
0.7365042567253113,
-0.9961609840393066,
-0.47241929173469543,
0.17254270613193512,
0.0033842658158391... |
func (s *Stock) Delete(stockModel model.Model) *errors.Error {
stockModelObj, ok := stockModel.(*model.Stock)
if false == ok {
return errors.Wrap(fmt.Errorf("Failed asserting to *model.Stock"), 0)
}
_, errs := s.FindByID(stockModel.GetID())
if errs.Err == sql.ErrNoRows {
return errors.Wrap(fmt.Errorf("cannot d... | [
-0.2511834502220154,
0.3870813250541687,
0.6188778877258301,
1.4392828941345215,
0.4970448315143585,
-0.38049355149269104,
0.07261740416288376,
-0.45743054151535034,
-0.035900138318538666,
0.6817988157272339,
-0.3610823452472687,
-0.50966477394104,
-0.6236438155174255,
0.778490424156189,
... |
func (s *Stock) Save(stockModel model.Model) *errors.Error {
var err *errors.Error
if true == stockModel.GetLoadedFromStorage() {
//update operation
err = s.Update(stockModel)
} else {
//insert operation
err = s.Insert(stockModel)
}
return err
} | [
-1.021012544631958,
0.08396081626415253,
0.645172119140625,
0.9775014519691467,
0.7784325480461121,
0.019771838560700417,
0.8530457615852356,
-0.8669300675392151,
-0.08739718049764633,
0.8886210322380066,
-1.4308637380599976,
-0.765392541885376,
-0.4899248480796814,
0.1630321741104126,
-... |
func (s *Stock) StartUp() {
//Note: Perform any initialization or bootstrapping here
} | [
-0.24481448531150818,
-1.0296968221664429,
0.35240745544433594,
1.2799880504608154,
0.649004340171814,
-0.46002981066703796,
0.45449456572532654,
0.30907589197158813,
1.0942199230194092,
-0.3775624632835388,
-0.21571998298168182,
0.8776217699050903,
0.346566379070282,
0.893930196762085,
... |
func (s *Stock) Shutdown() {
//Note: perform any cleanup here
} | [
-0.4148886501789093,
-0.7653052806854248,
0.2205239087343216,
0.7513129115104675,
0.9579656720161438,
0.31458914279937744,
0.9836194515228271,
0.03459735959768295,
1.1912323236465454,
-0.32191985845565796,
0.1928126960992813,
0.9495738744735718,
-0.41330429911613464,
0.7281731367111206,
... |
func (client *SMClient) Connect() error {
if len(client.addrs) == 0 {
return errors.Errorf("addr is nil")
}
client.Lock()
client.conns = nil
errCount := 0
for _, addr := range client.addrs {
c, err := grpc.Dial(addr, grpc.WithBackoffMaxDelay(time.Second), grpc.WithInsecure())
if err != nil {
errCount++
... | [
-0.4868623912334442,
0.20516104996204376,
0.6102638244628906,
0.44438526034355164,
0.28152012825012207,
-0.33657413721084595,
-0.025986358523368835,
-0.6571540236473083,
-0.5112378597259521,
1.1190118789672852,
0.34059441089630127,
0.03941812366247177,
-0.7084980607032776,
0.07414692640304... |
func (client *SMClient) CreateStream(ctx context.Context, dataShard uint32, parityShard uint32) (*pb.StreamInfo, *pb.ExtentInfo, error) {
err := ErrTimeOut
var res *pb.CreateStreamResponse
var ei *pb.ExtentInfo
var si *pb.StreamInfo
client.try(func(conn *grpc.ClientConn) bool {
c := pb.NewStreamManagerService... | [
0.6365748047828674,
0.18561576306819916,
1.053466558456421,
-0.14893530309200287,
-0.1719525158405304,
1.0357425212860107,
-0.06412430107593536,
-0.4007880687713623,
-0.01406063511967659,
0.3769170343875885,
-0.0468166247010231,
0.3129311203956604,
-1.1113649606704712,
0.566827654838562,
... |
func (j *jws) Flat(key interface{}) ([]byte, error) {
if len(j.sb) < 1 {
return nil, ErrNotEnoughMethods
}
if err := j.sign(key); err != nil {
return nil, err
}
return json.Marshal(struct {
Payload rawBase64 `json:"payload"`
sigHead
}{
Payload: j.plcache,
sigHead: j.sb[0],
})
} | [
-1.7290880680084229,
0.5567076802253723,
0.5716555714607239,
-0.2072366178035736,
-1.1024547815322876,
0.14420397579669952,
0.011793561279773712,
-1.1384719610214233,
0.18812505900859833,
0.19968053698539734,
-0.41886773705482483,
0.12077025324106216,
-0.26583465933799744,
0.93362277746200... |
func (j *jws) General(keys ...interface{}) ([]byte, error) {
if err := j.sign(keys...); err != nil {
return nil, err
}
return json.Marshal(struct {
Payload rawBase64 `json:"payload"`
Signatures []sigHead `json:"signatures"`
}{
Payload: j.plcache,
Signatures: j.sb,
})
} | [
-1.0823948383331299,
0.328504353761673,
0.5069230198860168,
0.2165713906288147,
-0.7797054052352905,
0.007031913381069899,
-1.4399945735931396,
-0.6069309115409851,
-0.2686046063899994,
0.29747694730758667,
-0.013392061926424503,
0.6357467770576477,
0.005762771237641573,
1.1561431884765625... |
func (j *jws) Compact(key interface{}) ([]byte, error) {
if len(j.sb) < 1 {
return nil, ErrNotEnoughMethods
}
if err := j.sign(key); err != nil {
return nil, err
}
sig, err := j.sb[0].Signature.Base64()
if err != nil {
return nil, err
}
return format(
j.sb[0].Protected,
j.plcache,
sig,
), nil
} | [
0.18192796409130096,
-0.0839286595582962,
0.760388195514679,
-0.19059287011623383,
-1.8918548822402954,
-0.42233091592788696,
0.3427956700325012,
-1.4750049114227295,
0.4295061528682709,
0.40629222989082336,
0.21566598117351532,
0.5229779481887817,
-0.2338956594467163,
1.1912177801132202,
... |
func (j *jws) sign(keys ...interface{}) error {
if err := j.cache(); err != nil {
return err
}
if len(keys) < 1 ||
len(keys) > 1 && len(keys) != len(j.sb) {
return ErrNotEnoughKeys
}
if len(keys) == 1 {
k := keys[0]
keys = make([]interface{}, len(j.sb))
for i := range keys {
keys[i] = k
}
}
f... | [
-1.4973843097686768,
0.5267413854598999,
0.7401143908500671,
0.6049429178237915,
-0.43651652336120605,
-0.35226958990097046,
-0.19713687896728516,
-0.33252522349357605,
-0.05065182223916054,
0.5410679578781128,
-0.6694403886795044,
0.14024269580841064,
-0.14321120083332062,
1.5046261548995... |
func (j *jws) cache() (err error) {
if !j.clean {
j.plcache, err = j.payload.Base64()
j.clean = err == nil
}
return err
} | [
-0.09939439594745636,
0.5072563886642456,
0.40667787194252014,
-0.2792551815509796,
-0.5891211628913879,
0.7781637907028198,
-0.016871416941285133,
-0.5037779211997986,
0.34340378642082214,
0.31790298223495483,
0.27321338653564453,
0.9094845652580261,
-0.5211547613143921,
1.087632894515991... |
func (s *sigHead) cache() (err error) {
if !s.clean {
s.Protected, err = s.protected.Base64()
if err != nil {
return err
}
s.Unprotected, err = s.unprotected.Base64()
if err != nil {
return err
}
}
s.clean = true
return nil
} | [
-0.049479249864816666,
0.3529278635978699,
0.46141281723976135,
0.36273422837257385,
0.013239070773124695,
0.6579973101615906,
0.09875231981277466,
0.23159512877464294,
0.5577007532119751,
-0.04579252749681473,
0.8383905291557312,
0.7854351997375488,
0.05225992575287819,
0.283437043428421,... |
func format(a ...[]byte) []byte {
return bytes.Join(a, []byte{'.'})
} | [
0.997958242893219,
0.08065375685691833,
0.46724680066108704,
-0.0688943862915039,
0.23221033811569214,
0.06120207905769348,
-0.44746094942092896,
-0.8583924770355225,
0.9888148903846741,
-0.10066769272089005,
0.741986095905304,
0.40538230538368225,
0.2457665354013443,
0.38657674193382263,
... |
func GenerateKeys() {
hashKey := hex.EncodeToString(securecookie.GenerateRandomKey(16))
fmt.Println(hashKey)
blockKey := hex.EncodeToString(securecookie.GenerateRandomKey(16))
fmt.Println(blockKey)
} | [
-0.542819082736969,
0.2586645781993866,
0.6061650514602661,
-0.018975690007209778,
0.6232507824897766,
-0.013268720358610153,
-0.6502598524093628,
0.23248320817947388,
-0.26895150542259216,
0.283486545085907,
-0.7887054085731506,
0.31724855303764343,
-0.0034025078639388084,
0.4902367889881... |
func Init(opts *Options) error {
// verify opts is defined
if opts == nil {
return fmt.Errorf("vtaclcheck.Init: opts is NULL")
}
// Verify options
if opts.ACLFile == "" && opts.StaticAuthFile == "" {
return fmt.Errorf("no options specified")
}
options = opts
return nil
} | [
0.41514915227890015,
-0.02736055664718151,
0.7450194358825684,
0.5769968628883362,
0.5273656845092773,
0.799159049987793,
-0.06615369021892548,
0.040688421577215195,
0.35588958859443665,
0.407870352268219,
1.0235768556594849,
0.7881830334663391,
0.11777283251285553,
0.20297399163246155,
... |
func Run() error {
if options.ACLFile != "" {
tableacl.Register("simpleacl", &simpleacl.Factory{})
err := tableacl.Init(
options.ACLFile,
func() {},
)
if err != nil {
return fmt.Errorf("fail to initialize Table ACL: %v", err)
}
fmt.Printf("JSON ACL file %s looks good\n", options.ACLFile)
}
if ... | [
-0.25580719113349915,
0.4060012996196747,
0.7598980069160461,
0.3653738498687744,
0.660334587097168,
0.7461936473846436,
0.24867011606693268,
-0.2626172602176666,
-0.7706722021102905,
0.35039418935775757,
-0.5441810488700867,
0.6271061897277832,
0.32133153080940247,
0.23915469646453857,
... |
func WrapJSONDebugTransport(client *http.Client, output io.Writer) {
client.Transport = NewJSONDebugTransport(client.Transport, output)
} | [
-1.1162000894546509,
-1.0789546966552734,
0.40384984016418457,
-0.784136950969696,
-0.36166930198669434,
0.02566204033792019,
-0.023169340565800667,
-1.4036377668380737,
-0.37256720662117004,
-0.1193591058254242,
-0.6909934878349304,
0.779021143913269,
0.9542052745819092,
-0.30090302228927... |
func NewJSONDebugTransport(transport http.RoundTripper, output io.Writer) *JSONDebugTransport {
if transport == nil {
transport = http.DefaultTransport
}
return &JSONDebugTransport{
Transport: transport,
Output: output,
}
} | [
-1.3256081342697144,
-0.45369911193847656,
0.4447862207889557,
-0.023446695879101753,
-0.5938318371772766,
-0.597163736820221,
-0.1001659706234932,
-1.251761555671692,
-0.113013356924057,
-0.6610881686210632,
-0.9499859809875488,
0.4306875765323639,
0.3421104848384857,
0.32269999384880066,... |
func (t *JSONDebugTransport) RoundTrip(req *http.Request) (*http.Response, error) {
requestDump, err := dumpRequest(req, t.ForceJSON)
if err != nil {
return nil, err
}
t.print(RenderRequestDump(string(requestDump)))
res, err := t.Transport.RoundTrip(req)
if err != nil {
t.print(RenderResponseErrorDump(string... | [
-1.5343266725540161,
-0.16120545566082,
1.0072097778320312,
-0.602480947971344,
-0.10220248997211456,
-0.360904335975647,
0.0700860396027565,
-0.9577717185020447,
0.7273097634315491,
-0.30605632066726685,
0.6922984719276428,
0.06183423101902008,
0.03050515241920948,
0.16748826205730438,
... |
func (q *Queue) EnQueue(val interface{}) {
temp, _ := CreateNew(val)
q.QueueList = append(q.QueueList, temp.QueueList...)
} | [
-0.4459613859653473,
0.41280558705329895,
0.4366263747215271,
0.6447787880897522,
-0.0030308859422802925,
0.36729681491851807,
-0.7355189919471741,
-0.434575617313385,
0.3380776345729828,
-0.2676449418067932,
-1.095940113067627,
0.3005264401435852,
0.04117274284362793,
1.5155972242355347,
... |
func CreateNew(val interface{}) (*Queue, error) {
return &Queue{
QueueList: []interface{}{val},
}, nil
} | [
-0.15689480304718018,
-0.21184775233268738,
0.524040699005127,
0.7755149602890015,
-0.5690500736236572,
0.30376458168029785,
-0.7403129935264587,
-0.6951070427894592,
-0.11573778092861176,
-0.058120232075452805,
-0.20898403227329254,
-0.13482627272605896,
0.15274086594581604,
1.23870682716... |
func (q *Queue) DeQueue() error {
if len(q.QueueList) > 0 {
q.QueueList = q.QueueList[1:]
return nil
}
return errors.New("Queue is empty")
} | [
-0.16483815014362335,
0.15541236102581024,
0.46475693583488464,
-0.02929573319852352,
0.8139628171920776,
-0.5741662383079529,
-0.8109978437423706,
0.7689284086227417,
0.19514942169189453,
-0.06684949994087219,
-0.5978735685348511,
0.2604071795940399,
-0.7053707838058472,
1.344584107398986... |
func (q *Queue) GetFront() interface{} {
if len(q.QueueList) > 0 {
return q.QueueList[0]
}
return nil
} | [
0.17667144536972046,
0.04837833717465401,
0.509584903717041,
0.05895952135324478,
0.31579825282096863,
-0.133082777261734,
-0.9571616649627686,
-0.4929129481315613,
0.9475203156471252,
-0.8779138326644897,
-0.4235360622406006,
1.469395399093628,
-0.04115259274840355,
1.2303171157836914,
... |
func (q *Queue) IsEmpty() bool {
return len(q.QueueList) == 0
} | [
-1.1987237930297852,
-0.7737924456596375,
0.2380906343460083,
-0.10728011280298233,
0.8569948077201843,
0.23095235228538513,
-1.182206392288208,
-0.11835978180170059,
0.30225107073783875,
0.1622283011674881,
-0.8024694323539734,
0.48591411113739014,
-0.36475297808647156,
0.8516190052032471... |
func NewStorageHitachiPortAllOf(classId string, objectType string) *StorageHitachiPortAllOf {
this := StorageHitachiPortAllOf{}
this.ClassId = classId
this.ObjectType = objectType
return &this
} | [
1.213627815246582,
-0.28232821822166443,
0.19113174080848694,
0.9386876225471497,
0.14003707468509674,
-0.4557131826877594,
-0.28185704350471497,
0.07515796273946762,
0.2437276542186737,
-0.017145149409770966,
-0.47340157628059387,
-0.2135007083415985,
0.28347495198249817,
-0.3560081422328... |
func NewStorageHitachiPortAllOfWithDefaults() *StorageHitachiPortAllOf {
this := StorageHitachiPortAllOf{}
var classId string = "storage.HitachiPort"
this.ClassId = classId
var objectType string = "storage.HitachiPort"
this.ObjectType = objectType
return &this
} | [
1.203397274017334,
-0.13261933624744415,
0.18762557208538055,
1.1883686780929565,
0.9854787588119507,
-0.6026009917259216,
-0.48440778255462646,
-0.3113439083099365,
-0.015944086015224457,
-0.3986833691596985,
-0.8385944962501526,
-1.1895400285720825,
0.09871703386306763,
0.004631947260349... |
func (o *StorageHitachiPortAllOf) GetClassId() string {
if o == nil {
var ret string
return ret
}
return o.ClassId
} | [
0.6471267342567444,
-0.20622313022613525,
-0.12019820511341095,
0.8224756121635437,
0.36449798941612244,
0.677325427532196,
0.32265931367874146,
0.17481355369091034,
1.3108420372009277,
-0.6406447291374207,
0.45908042788505554,
-0.30286821722984314,
-0.5330407023429871,
0.4140775799751282,... |
func (o *StorageHitachiPortAllOf) GetClassIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ClassId, true
} | [
-0.5440381765365601,
0.35086172819137573,
0.6225613355636597,
1.090519905090332,
0.5604992508888245,
0.6222381591796875,
0.6477035284042358,
0.8241623640060425,
0.5035263895988464,
-0.06611719727516174,
-0.9667221903800964,
-0.5843948125839233,
-0.10080575197935104,
0.815729558467865,
-0... |
func (o *StorageHitachiPortAllOf) SetClassId(v string) {
o.ClassId = v
} | [
0.5238478779792786,
-0.4613947868347168,
-0.14311166107654572,
0.24707858264446259,
-0.2709311544895172,
0.4977322816848755,
-0.048287857323884964,
0.5829890966415405,
0.8410038352012634,
0.44082796573638916,
-0.10894821584224701,
0.2449038326740265,
-0.36976051330566406,
0.277742415666580... |
func (o *StorageHitachiPortAllOf) GetObjectType() string {
if o == nil {
var ret string
return ret
}
return o.ObjectType
} | [
0.5703704357147217,
0.385318785905838,
-0.1995544582605362,
-0.008098416030406952,
0.7327433228492737,
0.23434585332870483,
-0.03850876912474632,
-0.2786160707473755,
0.25170180201530457,
-0.017701806500554085,
-0.03597166761755943,
-1.1919704675674438,
-0.7640446424484253,
-0.189057141542... |
func (o *StorageHitachiPortAllOf) GetObjectTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ObjectType, true
} | [
-0.21050725877285004,
0.1390800029039383,
0.6230538487434387,
-0.19328005611896515,
0.18691109120845795,
0.16597171127796173,
-0.009426834061741829,
0.33002781867980957,
-0.2954031527042389,
1.842664122581482,
-1.3484623432159424,
-1.7399251461029053,
0.28154733777046204,
0.005690669640898... |
func (o *StorageHitachiPortAllOf) SetObjectType(v string) {
o.ObjectType = v
} | [
0.4845479428768158,
0.06297008693218231,
-0.08281105011701584,
-0.4309093952178955,
0.009280426427721977,
0.35516393184661865,
-0.36954787373542786,
-0.35320714116096497,
-0.21604256331920624,
0.7479248642921448,
-0.6787645220756531,
-0.6131733059883118,
-0.40820157527923584,
-0.1956489831... |
func (o *StorageHitachiPortAllOf) GetFabricMode() bool {
if o == nil || o.FabricMode == nil {
var ret bool
return ret
}
return *o.FabricMode
} | [
-0.07931075245141983,
0.3546214997768402,
0.2400658279657364,
0.5880829095840454,
0.19952639937400818,
-0.2926678955554962,
0.19514605402946472,
0.18048018217086792,
0.5411098003387451,
-0.6441245079040527,
-0.4057200253009796,
-1.0441343784332275,
-0.19844740629196167,
0.5939601063728333,... |
func (o *StorageHitachiPortAllOf) GetFabricModeOk() (*bool, bool) {
if o == nil || o.FabricMode == nil {
return nil, false
}
return o.FabricMode, true
} | [
-0.2472953349351883,
0.28040847182273865,
0.28497079014778137,
-0.1657421588897705,
0.09062366932630539,
-0.15665727853775024,
0.4162476360797882,
0.6064774990081787,
-0.11442066729068756,
0.31761813163757324,
-1.121507167816162,
-0.9657936096191406,
0.8015459179878235,
1.0282357931137085,... |
func (o *StorageHitachiPortAllOf) HasFabricMode() bool {
if o != nil && o.FabricMode != nil {
return true
}
return false
} | [
0.22036528587341309,
0.5816680192947388,
0.11716654151678085,
-0.05951426550745964,
0.8282604217529297,
-1.3285571336746216,
0.030003299936652184,
0.4658019542694092,
0.03678589686751366,
-0.9429576992988586,
-0.7551262974739075,
-0.6005684733390808,
0.5779220461845398,
1.2221050262451172,... |
func (o *StorageHitachiPortAllOf) SetFabricMode(v bool) {
o.FabricMode = &v
} | [
0.3112751245498657,
0.6188070774078369,
-0.051809344440698624,
-0.04653481766581535,
0.0013544745743274689,
-0.4522661864757538,
-0.3611004054546356,
-0.13601501286029816,
-0.5119895935058594,
-0.032364726066589355,
-0.5300018787384033,
0.16017790138721466,
0.2373107671737671,
0.2629427611... |
func (o *StorageHitachiPortAllOf) GetIpv4Address() string {
if o == nil || o.Ipv4Address == nil {
var ret string
return ret
}
return *o.Ipv4Address
} | [
-0.5517939329147339,
-0.9827965497970581,
0.034705277532339096,
0.3663516044616699,
-0.009785376489162445,
-0.40417104959487915,
0.3256372809410095,
-0.19334398210048676,
0.5746942162513733,
-0.28945910930633545,
0.14489232003688812,
-1.0963821411132812,
-1.1580649614334106,
-0.18887357413... |
func (o *StorageHitachiPortAllOf) GetIpv4AddressOk() (*string, bool) {
if o == nil || o.Ipv4Address == nil {
return nil, false
}
return o.Ipv4Address, true
} | [
-1.0151684284210205,
-0.12937545776367188,
0.09695251286029816,
0.08426615595817566,
-0.12658578157424927,
-0.2919023633003235,
0.5723237991333008,
0.363545298576355,
0.3774906098842621,
0.2095499187707901,
-0.20528802275657654,
-0.5781646966934204,
-0.6769325733184814,
-0.764805793762207,... |
func (o *StorageHitachiPortAllOf) HasIpv4Address() bool {
if o != nil && o.Ipv4Address != nil {
return true
}
return false
} | [
-0.14317716658115387,
-0.8340021967887878,
-0.05912051722407341,
0.07577215135097504,
0.5778599977493286,
-1.1040948629379272,
-0.034378815442323685,
0.3517100512981415,
0.11853228509426117,
-0.22402948141098022,
-0.7169362306594849,
-0.726898193359375,
-0.47059351205825806,
-0.13790643215... |
func (o *StorageHitachiPortAllOf) SetIpv4Address(v string) {
o.Ipv4Address = &v
} | [
-0.09517359733581543,
-1.488466501235962,
-0.46578025817871094,
-0.6920590996742249,
-0.3238469660282135,
-0.4488491415977478,
-0.35917678475379944,
-0.2394515722990036,
0.09509261697530746,
0.11983922123908997,
-0.3351089060306549,
0.4906049966812134,
-0.7262136936187744,
-1.4634068012237... |
func (o *StorageHitachiPortAllOf) GetIpv6GlobalAddress() string {
if o == nil || o.Ipv6GlobalAddress == nil {
var ret string
return ret
}
return *o.Ipv6GlobalAddress
} | [
-0.21686655282974243,
-0.2100519984960556,
0.2891237735748291,
0.3836871087551117,
-0.0013229588512331247,
0.30500510334968567,
0.9403611421585083,
-0.5285957455635071,
0.5586870312690735,
0.36465880274772644,
-0.4020494818687439,
-0.234042689204216,
-1.3223708868026733,
-0.217132955789566... |
func (o *StorageHitachiPortAllOf) GetIpv6GlobalAddressOk() (*string, bool) {
if o == nil || o.Ipv6GlobalAddress == nil {
return nil, false
}
return o.Ipv6GlobalAddress, true
} | [
-0.1685769259929657,
-0.4535275399684906,
0.406129390001297,
0.2870822250843048,
0.12520422041416168,
0.29668381810188293,
1.1589956283569336,
0.061573222279548645,
0.09913716465234756,
1.1607424020767212,
-1.0942403078079224,
-0.14080063998699188,
-0.39868319034576416,
-0.1825766265392303... |
func (o *StorageHitachiPortAllOf) HasIpv6GlobalAddress() bool {
if o != nil && o.Ipv6GlobalAddress != nil {
return true
}
return false
} | [
0.10696385055780411,
-0.24466769397258759,
0.36346277594566345,
0.11699382960796356,
0.46408891677856445,
-0.17137373983860016,
0.8125576972961426,
0.4564884603023529,
0.1497035175561905,
0.30865034461021423,
-1.0037834644317627,
-0.09650011360645294,
-0.8412887454032898,
0.280869871377944... |
func (o *StorageHitachiPortAllOf) SetIpv6GlobalAddress(v string) {
o.Ipv6GlobalAddress = &v
} | [
-0.04202740266919136,
-0.7996421456336975,
0.12111163139343262,
-0.3387566804885864,
-0.4940817058086395,
0.5257090926170349,
0.3808823227882385,
-0.09444718062877655,
0.07269097864627838,
0.9851984977722168,
-0.7711973786354065,
0.7892313599586487,
-0.7797271609306335,
-0.964613139629364,... |
func (o *StorageHitachiPortAllOf) GetIpv6LinkLocalAddress() string {
if o == nil || o.Ipv6LinkLocalAddress == nil {
var ret string
return ret
}
return *o.Ipv6LinkLocalAddress
} | [
0.3666115999221802,
-1.4450263977050781,
0.3828940987586975,
-0.09235192835330963,
-0.03152201697230339,
-0.6887457966804504,
0.567473828792572,
-0.5698850154876709,
1.247173547744751,
-0.17117168009281158,
-0.38074105978012085,
-0.4582449495792389,
-0.7780810594558716,
-0.4191620349884033... |
func (o *StorageHitachiPortAllOf) GetIpv6LinkLocalAddressOk() (*string, bool) {
if o == nil || o.Ipv6LinkLocalAddress == nil {
return nil, false
}
return o.Ipv6LinkLocalAddress, true
} | [
0.5406838059425354,
-1.3322765827178955,
0.3508453667163849,
-0.4086180329322815,
0.07867483794689178,
-0.2760590612888336,
1.029194951057434,
0.475554883480072,
0.7519038915634155,
0.2596104145050049,
-0.7948320508003235,
-0.4623998999595642,
0.2272278368473053,
0.02047402784228325,
-0.... |
func (o *StorageHitachiPortAllOf) HasIpv6LinkLocalAddress() bool {
if o != nil && o.Ipv6LinkLocalAddress != nil {
return true
}
return false
} | [
0.8705330491065979,
-1.34995436668396,
0.35202622413635254,
-0.39104029536247253,
0.5172935128211975,
-1.0228502750396729,
0.5335444808006287,
0.6724591255187988,
0.7635554671287537,
-0.4909038245677948,
-0.6710087656974792,
-0.14728809893131256,
-0.14866578578948975,
0.30621039867401123,
... |
func (o *StorageHitachiPortAllOf) SetIpv6LinkLocalAddress(v string) {
o.Ipv6LinkLocalAddress = &v
} | [
0.9156875014305115,
-1.8768304586410522,
0.18584716320037842,
-0.9563822746276855,
-0.2720569968223572,
-0.48195695877075195,
0.22396831214427948,
0.07974810898303986,
0.8614550828933716,
0.15729010105133057,
-0.38123655319213867,
0.5330897569656372,
-0.0489826500415802,
-1.110056757926941... |
func (o *StorageHitachiPortAllOf) GetIsIpv6Enable() bool {
if o == nil || o.IsIpv6Enable == nil {
var ret bool
return ret
}
return *o.IsIpv6Enable
} | [
-0.2914946675300598,
-0.025102876126766205,
0.310781329870224,
0.9838227033615112,
-0.2312549352645874,
-0.9525138139724731,
0.15126082301139832,
0.2393403947353363,
0.05051146447658539,
1.243017315864563,
-0.9196728467941284,
-1.657922625541687,
-1.1810836791992188,
-0.8435949087142944,
... |
func (o *StorageHitachiPortAllOf) GetIsIpv6EnableOk() (*bool, bool) {
if o == nil || o.IsIpv6Enable == nil {
return nil, false
}
return o.IsIpv6Enable, true
} | [
-0.3519328832626343,
-0.42197778820991516,
0.45272254943847656,
0.6975653767585754,
-0.021815871819853783,
-0.7768073081970215,
0.3092725872993469,
0.6900902986526489,
-0.3111478388309479,
1.9608925580978394,
-1.101876139640808,
-1.2157847881317139,
-0.5681282877922058,
-0.7972396016120911... |
func (o *StorageHitachiPortAllOf) HasIsIpv6Enable() bool {
if o != nil && o.IsIpv6Enable != nil {
return true
}
return false
} | [
0.2564758062362671,
0.30764490365982056,
0.10413439571857452,
0.5623998641967773,
0.6316322088241577,
-1.2897086143493652,
0.16157330572605133,
0.8591676354408264,
-0.34656253457069397,
0.9941059350967407,
-1.0103018283843994,
-1.480513572692871,
-0.29390114545822144,
-0.6141287088394165,
... |
func (o *StorageHitachiPortAllOf) SetIsIpv6Enable(v bool) {
o.IsIpv6Enable = &v
} | [
-0.10865674167871475,
-0.27117639780044556,
0.15578754246234894,
0.907952070236206,
-0.31187888979911804,
-0.5520808100700378,
-0.14633871614933014,
0.18650659918785095,
-0.4627635180950165,
1.7037856578826904,
-1.0606820583343506,
-1.1372723579406738,
-0.43216773867607117,
-0.972010552883... |
func (o *StorageHitachiPortAllOf) GetLoopId() string {
if o == nil || o.LoopId == nil {
var ret string
return ret
}
return *o.LoopId
} | [
0.44350045919418335,
-0.007334698922932148,
0.10792316496372223,
0.8540123105049133,
-0.6100444197654724,
0.9770798683166504,
-0.12542259693145752,
-0.9069247841835022,
1.3826203346252441,
0.18925711512565613,
0.24862048029899597,
-0.6806978583335876,
-0.5497410893440247,
0.853611171245575... |
func (o *StorageHitachiPortAllOf) GetLoopIdOk() (*string, bool) {
if o == nil || o.LoopId == nil {
return nil, false
}
return o.LoopId, true
} | [
-0.08062471449375153,
0.09108985215425491,
0.38212329149246216,
0.5302509665489197,
0.002730998443439603,
1.1761757135391235,
-0.10470233857631683,
0.21847930550575256,
0.44569069147109985,
0.2862865626811981,
-0.9906529188156128,
-0.4003124535083771,
-0.09167657047510147,
0.75484585762023... |
func (o *StorageHitachiPortAllOf) HasLoopId() bool {
if o != nil && o.LoopId != nil {
return true
}
return false
} | [
0.5276532173156738,
0.13269300758838654,
0.3733229339122772,
0.1556185483932495,
-0.40106621384620667,
0.47261375188827515,
-0.9768385887145996,
0.17054738104343414,
0.6103222370147705,
0.05629953742027283,
-0.4252658784389496,
-0.5239524245262146,
0.23063533008098602,
0.7706562876701355,
... |
func (o *StorageHitachiPortAllOf) SetLoopId(v string) {
o.LoopId = &v
} | [
0.7759331464767456,
-0.2387116253376007,
0.09747876971960068,
-0.043361835181713104,
-1.5691698789596558,
1.0524327754974365,
-1.2048684358596802,
-0.9598895907402039,
0.5406435132026672,
0.7186369895935059,
0.045203790068626404,
0.7876365780830383,
0.2286461889743805,
-0.19683058559894562... |
func (o *StorageHitachiPortAllOf) GetPortConnection() string {
if o == nil || o.PortConnection == nil {
var ret string
return ret
}
return *o.PortConnection
} | [
0.21028853952884674,
0.0067174057476222515,
0.24933812022209167,
1.2508295774459839,
0.15938811004161835,
-0.485289603471756,
1.1086119413375854,
-0.22091642022132874,
0.5866944789886475,
-0.15381991863250732,
0.17363561689853668,
-1.7879462242126465,
-0.7997519373893738,
0.275242865085601... |
func (o *StorageHitachiPortAllOf) GetPortConnectionOk() (*string, bool) {
if o == nil || o.PortConnection == nil {
return nil, false
}
return o.PortConnection, true
} | [
0.19468212127685547,
-0.18528629839420319,
0.315807968378067,
1.0499072074890137,
-0.19112060964107513,
-0.10852842777967453,
1.3032493591308594,
1.072180151939392,
-0.3030570149421692,
0.8622196316719055,
0.024036120623350143,
-1.7643802165985107,
0.16585764288902283,
-0.3722253441810608,... |
func (o *StorageHitachiPortAllOf) HasPortConnection() bool {
if o != nil && o.PortConnection != nil {
return true
}
return false
} | [
0.7350585460662842,
0.24120664596557617,
0.44912847876548767,
0.9795824289321899,
0.9065018892288208,
-1.1526482105255127,
0.5357595086097717,
0.9139200448989868,
0.36368420720100403,
-0.6755892038345337,
-0.12882015109062195,
-1.5868455171585083,
0.03185376524925232,
0.05580876022577286,
... |
func (o *StorageHitachiPortAllOf) SetPortConnection(v string) {
o.PortConnection = &v
} | [
0.9823238253593445,
-0.4900667071342468,
-0.10767408460378647,
0.5124040842056274,
-0.19816872477531433,
-0.6535359621047974,
0.04117622226476669,
-0.20436137914657593,
-0.2473350167274475,
-0.07638214528560638,
0.05671771243214607,
0.059929702430963516,
-0.11055237799882889,
-0.6744241714... |
func (o *StorageHitachiPortAllOf) GetPortLunSecurity() bool {
if o == nil || o.PortLunSecurity == nil {
var ret bool
return ret
}
return *o.PortLunSecurity
} | [
-0.07529254257678986,
0.58455890417099,
0.44582635164260864,
0.8277051448822021,
-0.39813780784606934,
0.6111764311790466,
-0.005966805387288332,
0.02854227088391781,
0.8792529702186584,
-0.5519092679023743,
-1.0320345163345337,
-0.531886875629425,
-1.2157717943191528,
-0.8836857080459595,... |
func (o *StorageHitachiPortAllOf) GetPortLunSecurityOk() (*bool, bool) {
if o == nil || o.PortLunSecurity == nil {
return nil, false
}
return o.PortLunSecurity, true
} | [
0.4023900628089905,
0.21204239130020142,
0.5445854663848877,
0.8500517010688782,
0.18612630665302277,
0.8212259411811829,
0.42818984389305115,
0.4386168420314789,
0.2708612382411957,
0.14034156501293182,
-0.9209227561950684,
-0.356745183467865,
0.30853259563446045,
-0.41366666555404663,
... |
func (o *StorageHitachiPortAllOf) HasPortLunSecurity() bool {
if o != nil && o.PortLunSecurity != nil {
return true
}
return false
} | [
0.589038074016571,
0.5301622748374939,
0.3719603717327118,
0.6807422041893005,
0.7287606596946716,
-0.14107957482337952,
-0.4444052278995514,
0.4206371605396271,
0.6204056739807129,
-0.703198254108429,
-1.1230988502502441,
-0.7274946570396423,
-0.30870935320854187,
-0.22115924954414368,
... |
func (o *StorageHitachiPortAllOf) SetPortLunSecurity(v bool) {
o.PortLunSecurity = &v
} | [
0.4843909740447998,
0.37573114037513733,
0.0804227814078331,
0.5796611905097961,
-0.06965480744838715,
0.6833475828170776,
-0.27979031205177307,
-0.14072923362255096,
0.01738489419221878,
0.10082543641328812,
-0.721591055393219,
-0.05726547911763191,
-0.5491214394569397,
-1.119110941886901... |
func (o *StorageHitachiPortAllOf) GetPortMode() string {
if o == nil || o.PortMode == nil {
var ret string
return ret
}
return *o.PortMode
} | [
0.38588735461235046,
-0.026957018300890923,
0.27712002396583557,
0.7125285267829895,
0.3379416763782501,
0.6242780089378357,
0.3691009283065796,
-0.2048492729663849,
0.6612932682037354,
-0.33399176597595215,
-0.21154466271400452,
-1.252044916152954,
-0.987002968788147,
0.35916998982429504,... |
func (o *StorageHitachiPortAllOf) GetPortModeOk() (*string, bool) {
if o == nil || o.PortMode == nil {
return nil, false
}
return o.PortMode, true
} | [
0.08513052761554718,
-0.1566828489303589,
0.36123448610305786,
0.6624408960342407,
0.09195475280284882,
0.7445633411407471,
0.6041370630264282,
0.7198643684387207,
-0.23815201222896576,
1.0798251628875732,
-0.5810837149620056,
-0.797633171081543,
-0.4797859489917755,
0.17823322117328644,
... |
func (o *StorageHitachiPortAllOf) HasPortMode() bool {
if o != nil && o.PortMode != nil {
return true
}
return false
} | [
0.7920171022415161,
0.3470917046070099,
0.32744789123535156,
0.37130364775657654,
0.8699440956115723,
0.1497332751750946,
0.009023822844028473,
0.42057856917381287,
0.3513129949569702,
-0.5550664663314819,
-0.6569439768791199,
-0.7430827021598816,
-0.46294209361076355,
0.17098267376422882,... |
func (o *StorageHitachiPortAllOf) SetPortMode(v string) {
o.PortMode = &v
} | [
0.8831252455711365,
-0.09299967437982559,
-0.16870936751365662,
0.025500532239675522,
-0.07470127195119858,
0.5149452686309814,
-0.8098093867301941,
-0.6357033848762512,
0.1262618899345398,
0.05418352037668228,
-0.2412848323583603,
0.3986615240573883,
-0.5604802966117859,
-0.50726097822189... |
func (o *StorageHitachiPortAllOf) GetShortportId() string {
if o == nil || o.ShortportId == nil {
var ret string
return ret
}
return *o.ShortportId
} | [
2.0751469135284424,
-1.00244140625,
0.4010930359363556,
0.6007440686225891,
-0.01736338622868061,
0.6027687788009644,
0.24073217809200287,
-0.5122379660606384,
1.751387119293213,
-0.16863685846328735,
-0.6572575569152832,
-0.2652840316295624,
-0.2954632639884949,
0.5742322206497192,
0.11... |
func (o *StorageHitachiPortAllOf) GetShortportIdOk() (*string, bool) {
if o == nil || o.ShortportId == nil {
return nil, false
}
return o.ShortportId, true
} | [
1.2482476234436035,
-0.4498039484024048,
0.6422569751739502,
0.8780689835548401,
0.35404595732688904,
1.0483821630477905,
0.7371222376823425,
0.5640614032745361,
0.8854397535324097,
0.055459894239902496,
-1.6414546966552734,
-0.23287048935890198,
0.2210363894701004,
-0.07579173892736435,
... |
func (o *StorageHitachiPortAllOf) HasShortportId() bool {
if o != nil && o.ShortportId != nil {
return true
}
return false
} | [
1.9184774160385132,
-1.104300618171692,
0.5647315979003906,
0.33572256565093994,
0.21392174065113068,
-0.13796018064022064,
-0.18952059745788574,
0.2065514326095581,
0.8541309833526611,
-0.6858712434768677,
-1.6850452423095703,
-0.0181936863809824,
0.5761672258377075,
0.7431411743164062,
... |
func (o *StorageHitachiPortAllOf) SetShortportId(v string) {
o.ShortportId = &v
} | [
2.496786594390869,
-1.3663463592529297,
0.015718363225460052,
-0.20578205585479736,
-0.6377319693565369,
0.4082466959953308,
-0.2130213975906372,
-0.5013987421989441,
1.2073770761489868,
0.17929679155349731,
-0.6774894595146179,
1.0747959613800049,
0.1145181879401207,
-0.21710170805454254,... |
func (o *StorageHitachiPortAllOf) GetTcpMtu() int64 {
if o == nil || o.TcpMtu == nil {
var ret int64
return ret
}
return *o.TcpMtu
} | [
-0.9276846647262573,
0.31480687856674194,
0.1756557822227478,
-0.5131444334983826,
0.735522449016571,
-0.25318843126296997,
0.3109055757522583,
0.045731980353593826,
0.792322039604187,
-1.1610777378082275,
0.03866272792220116,
-1.3037910461425781,
-0.9957841038703918,
0.3690657913684845,
... |
func (o *StorageHitachiPortAllOf) GetTcpMtuOk() (*int64, bool) {
if o == nil || o.TcpMtu == nil {
return nil, false
}
return o.TcpMtu, true
} | [
-0.8236713409423828,
0.407431960105896,
0.3153945803642273,
-0.5455239415168762,
0.4215622544288635,
-0.13747061789035797,
0.524963915348053,
0.7628839612007141,
0.30988556146621704,
0.10719765722751617,
-0.30725622177124023,
-1.1921626329421997,
-0.3206450939178467,
0.40409785509109497,
... |
func (o *StorageHitachiPortAllOf) HasTcpMtu() bool {
if o != nil && o.TcpMtu != nil {
return true
}
return false
} | [
-0.27063992619514465,
0.2833600342273712,
0.24226181209087372,
-1.1597644090652466,
1.13717520236969,
-1.133076548576355,
-0.510425865650177,
0.6932599544525146,
0.11175160109996796,
-0.9005451202392578,
-0.6904970407485962,
-1.5064245462417603,
-0.41260403394699097,
0.8863708972930908,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.