go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/projects/blogctl/pkg/config/s3.go (about)

     1  /*
     2  
     3  Copyright (c) 2023 - Present. Will Charczuk. All rights reserved.
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     5  
     6  */
     7  
     8  package config
     9  
    10  // S3 is an optional s3 config.
    11  type S3 struct {
    12  	Region string `json:"region,omitempty" yaml:"region,omitempty"`
    13  	Bucket string `json:"bucket,omitempty" yaml:"bucket,omitempty"`
    14  }
    15  
    16  // IsZero returns if the s3 bucket config is set.
    17  func (c S3) IsZero() bool {
    18  	return c.Bucket == ""
    19  }