// Set stores the data using the provided fileName
7876
func (s *RemoteStore) Set(fileName string, data []byte) error {
	sm := &SetMsg{
		FileName: fileName,
		Data:     data,
	}
	ctx, cancel := s.getContext()
	defer cancel()
	_, err := s.client.Set(ctx, sm)
	return err
}
393522
func (s *String) Set(val string) error {
	*s = String(val)
	return nil
}
788723
func (u *Uint64) Set(s string) error {
	v, err := strconv.ParseUint(s, 0, 64)
	*u = Uint64(v)
	return err
}
1012271
func (p *peer) Set(key string, data interface{}) {
	p.Data.Set(key, data)
}
1189033
func (a Attrs) Set(name string, expr bzl.Expr) {
	a[name] = expr
}
1253138
func (b *BytesRefBuilder) Set(offset int, v byte) {
	b.ref.Bytes[offset] = v
}
1293165
func (env *Env) Set(name, value string) {
	if name == "" {
		panic(fmt.Sprintf("Set() can not be called with empty key for value: %q", value))
	}
	if value == "" {
		delete(env.data, name)
		return
	}
	env.data[name] = value
}
1281613
func Set(path, name string, value []byte) error {
	return syscall.Setxattr(path, name, value, 0)
}
402962
func (s HTTPStore) Set(name string, blob []byte) error {
	return s.SetMulti(map[string][]byte{name: blob})
}
1251302
func (d *Data) Set(key string, value string) {
	d.Values.Set(key, value)
}
477883
func (c *Config) Set(key, value string) error {
	data, err := load(c.filename, c.passphrase)
	if err != nil {
		return errors.Wrapf(err, "failed to read secrects config %s: %s", c.filename, err)
	}

	old := data[key]
	if value == old {
		return nil
	}

	data[key] = value
	return save(c.filename, c.passphrase, data)
}
22095
func (f *Filter) Set(filter, value string) {
	f.v.Set(filter, value)
}
972657
func (s *fs) Set(data []byte) (digest.Digest, error) {
	s.Lock()
	defer s.Unlock()

	if len(data) == 0 {
		return "", fmt.Errorf("invalid empty data")
	}

	dgst := digest.FromBytes(data)
	if err := ioutils.AtomicWriteFile(s.contentFile(dgst), data, 0600); err != nil {
		return "", errors.Wrap(err, "failed to write digest data")
	}

	return dgst, nil
}
149708
func (m *MemBytes) Set(value string) error {
	val, err := units.RAMInBytes(value)
	*m = MemBytes(val)
	return err
}
1022603
func (m *DiskCacheMode) Set(s string) error {
	*m = DiskCacheModeOff
	switch strings.ToLower(strings.TrimSpace(s)) {
	case "local":
		*m = DiskCacheModeLocal
	case "remote":
		*m = DiskCacheModeRemote
	}
	return nil
}
898593
func (r *DB) set(data interface{}, allowed ...string) string {
	set := r.setMap(data, allowed...)
	return r.setImplode(", ", set)
}
1259447
func (d *DiskStorer) Set(key, value string) error {
	if !validKey(key) {
		return errNoSession{}
	}

	filePath := path.Join(d.folderPath, key)

	d.mut.Lock()
	defer d.mut.Unlock()

	return ioutil.WriteFile(filePath, []byte(value), 0600)
}