Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for Lifecycle (0.62 sec)

  1. internal/bucket/lifecycle/lifecycle.go

    }
    
    // ParseLifecycleConfig - parses data in given reader to Lifecycle.
    func ParseLifecycleConfig(reader io.Reader) (*Lifecycle, error) {
    	var lc Lifecycle
    	if err := xml.NewDecoder(reader).Decode(&lc); err != nil {
    		return nil, err
    	}
    	return &lc, nil
    }
    
    // Validate - validates the lifecycle configuration
    func (lc Lifecycle) Validate() error {
    	// Lifecycle config can't have more than 1000 rules
    	if len(lc.Rules) > 1000 {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 17.5K bytes
    - Viewed (0)
  2. cmd/bucket-lifecycle.go

    )
    
    // LifecycleSys - Bucket lifecycle subsystem.
    type LifecycleSys struct{}
    
    // Get - gets lifecycle config associated to a given bucket name.
    func (sys *LifecycleSys) Get(bucketName string) (lc *lifecycle.Lifecycle, err error) {
    	lc, _, err = globalBucketMetadataSys.GetLifecycleConfig(bucketName)
    	return lc, err
    }
    
    // NewLifecycleSys - creates new lifecycle system.
    func NewLifecycleSys() *LifecycleSys {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  3. internal/bucket/lifecycle/lifecycle_test.go

    			expectedParsingErr:    errDuplicatedXMLTag,
    			expectedValidationErr: nil,
    		},
    		{ // lifecycle config with no rules
    			inputConfig: `<LifecycleConfiguration>
    		                          </LifecycleConfiguration>`,
    			expectedParsingErr:    nil,
    			expectedValidationErr: errLifecycleNoRule,
    		},
    		{ // lifecycle config with rules having overlapping prefix
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  4. cmd/bucket-lifecycle-audit.go

    //
    // 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 "github.com/minio/minio/internal/bucket/lifecycle"
    
    //go:generate stringer -type lcEventSrc -trimprefix lcEventSrc_ $GOFILE
    type lcEventSrc uint8
    
    //revive:disable:var-naming Underscores is used here to indicate where common prefix ends and the enumeration name begins
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 01 15:56:24 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle-handlers.go

    	"time"
    
    	"github.com/minio/minio/internal/bucket/lifecycle"
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v2/policy"
    )
    
    const (
    	// Lifecycle configuration file.
    	bucketLifecycleConfig = "lifecycle.xml"
    )
    
    // PutBucketLifecycleHandler - This HTTP handler stores given bucket lifecycle configuration as per
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 17:48:06 GMT 2023
    - 7K bytes
    - Viewed (0)
  6. cmd/bucket-lifecycle_test.go

    			expectedErr: nil,
    		},
    	}
    	for i, tc := range testCases {
    		lc, err := lifecycle.ParseLifecycleConfig(bytes.NewReader(tc.xml))
    		if err != nil {
    			t.Fatalf("Test %d: Failed to parse lifecycle config %v", i+1, err)
    		}
    
    		err = validateTransitionTier(lc)
    		if err != tc.expectedErr {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 31 09:57:57 GMT 2022
    - 7K bytes
    - Viewed (0)
  7. cmd/bucket-lifecycle-handlers_test.go

    	testBucketLifecycle(obj, instanceType, bucketName, apiRouter, t, testCases)
    }
    
    // Test S3 Bucket lifecycle APIs
    func TestBucketLifecycle(t *testing.T) {
    	ExecObjectLayerAPITest(t, testBucketLifecycleHandlers, []string{"GetBucketLifecycle", "PutBucketLifecycle", "DeleteBucketLifecycle"})
    }
    
    // Simple tests of bucket lifecycle: PUT, GET, DELETE.
    // Tests are related and the order is important.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 13 20:52:33 GMT 2023
    - 11.2K bytes
    - Viewed (0)
  8. cmd/data-scanner_test.go

    			}
    		}
    	}()
    	lc := lifecycle.Lifecycle{
    		Rules: []lifecycle.Rule{
    			{
    				ID:     "max-versions",
    				Status: "Enabled",
    				NoncurrentVersionExpiration: lifecycle.NoncurrentVersionExpiration{
    					NewerNoncurrentVersions: 1,
    				},
    			},
    		},
    	}
    	lcXML, err := xml.Marshal(lc)
    	if err != nil {
    		t.Fatalf("Failed to marshal lifecycle config: %v", err)
    	}
    	vcfg := versioning.Versioning{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. internal/bucket/lifecycle/action_string.go

    // Code generated by "stringer -type Action lifecycle.go"; DO NOT EDIT.
    
    package lifecycle
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[NoneAction-0]
    	_ = x[DeleteAction-1]
    	_ = x[DeleteVersionAction-2]
    	_ = x[TransitionAction-3]
    	_ = x[TransitionVersionAction-4]
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/error.go

    // 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 lifecycle
    
    import (
    	"fmt"
    )
    
    // Error is the generic type for any error happening during tag
    // parsing.
    type Error struct {
    	err error
    }
    
    // Errorf - formats according to a format specifier and returns
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.3K bytes
    - Viewed (0)
Back to top