Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,183 for Save (0.15 sec)

  1. cmd/bucket-metadata.go

    		b.VersioningConfigUpdatedAt = b.Created
    	}
    
    	if b.LifecycleConfigUpdatedAt.IsZero() {
    		b.LifecycleConfigUpdatedAt = b.Created
    	}
    }
    
    // Save config to supplied ObjectLayer api.
    func (b *BucketMetadata) Save(ctx context.Context, api ObjectLayer) error {
    	if err := b.parseAllConfigs(ctx, api); err != nil {
    		return err
    	}
    
    	data := make([]byte, 4, b.Msgsize()+4)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-decom.go

    		}
    		p.Pools[idx].LastUpdate = now
    		if err := p.save(ctx, pools); err != nil {
    			return false, err
    		}
    		return true, nil
    	}
    	return false, nil
    }
    
    func (p poolMeta) save(ctx context.Context, pools []*erasureSets) error {
    	if p.dontSave {
    		return nil
    	}
    	data := make([]byte, 4, p.Msgsize()+4)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  3. tests/joins_test.go

    	})
    
    	for idx, user := range users {
    		CheckUser(t, user, users2[idx])
    	}
    }
    
    func TestJoinConds(t *testing.T) {
    	user := *GetUser("joins-conds", Config{Account: true, Pets: 3})
    	DB.Save(&user)
    
    	var users1 []User
    	DB.Joins("inner join pets on pets.user_id = users.id").Where("users.name = ?", user.Name).Find(&users1)
    	if len(users1) != 3 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Wed Apr 26 14:19:32 GMT 2023
    - 13.5K bytes
    - Viewed (1)
  4. cmd/batch-expire.go

    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  5. cmd/batch-rotate.go

    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"encoding/base64"
    	"fmt"
    	"math/rand"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  6. cmd/bucket-metadata-sys.go

    	}
    
    	err = sys.save(ctx, meta)
    	return updatedAt, err
    }
    
    func (sys *BucketMetadataSys) save(ctx context.Context, meta BucketMetadata) error {
    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		return errServerNotInitialized
    	}
    
    	if isMinioMetaBucketName(meta.Name) {
    		return errInvalidArgument
    	}
    
    	if err := meta.Save(ctx, objAPI); err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  7. cmd/erasure-multipart.go

    	}
    	delete(fi.Metadata, hash.MinIOMultipartChecksum) // Not needed in final object.
    
    	// Save the final object size and modtime.
    	fi.Size = objectSize
    	fi.ModTime = opts.MTime
    	if opts.MTime.IsZero() {
    		fi.ModTime = UTCNow()
    	}
    
    	// Save successfully calculated md5sum.
    	// for replica, newMultipartUpload would have already sent the replication ETag
    	if fi.Metadata["etag"] == "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
  8. cmd/tier.go

    	}
    	// Copy over the new tier configs
    	for tier, cfg := range newConfig.Tiers {
    		config.Tiers[tier] = cfg
    	}
    	config.lastRefreshedAt = UTCNow()
    	return nil
    }
    
    // Save saves tier configuration onto objAPI
    func (config *TierConfigMgr) Save(ctx context.Context, objAPI ObjectLayer) error {
    	if objAPI == nil {
    		return errServerNotInitialized
    	}
    
    	pr, opts, err := globalTierConfigMgr.configReader(ctx)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  9. cmd/handler-utils.go

    		// Add more fields here.
    	}
    }
    
    // Trims away `aws-chunked` from the content-encoding header if present.
    // Streaming signature clients can have custom content-encoding such as
    // `aws-chunked,gzip` here we need to only save `gzip`.
    // For more refer http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html
    func trimAwsChunkedContentEncoding(contentEnc string) (trimmedContentEnc string) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  10. association.go

    	if association.Error == nil {
    		reflectValue := association.DB.Statement.ReflectValue
    		rel := association.Relationship
    
    		var oldBelongsToExpr clause.Expression
    		// we have to record the old BelongsTo value
    		if association.Unscope && rel.Type == schema.BelongsTo {
    			var foreignFields []*schema.Field
    			for _, ref := range rel.References {
    				if !ref.OwnPrimaryKey {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu May 04 11:30:45 GMT 2023
    - 21.2K bytes
    - Viewed (0)
Back to top