Documentation
¶
Overview ¶
Package store 는 백업 산출물 저장소 어댑터다.
설계: docs/11_기능설계/Nullus_백업복구_설계.md §4.2 (nullus-plan#75)
목적지는 **대상 클러스터 밖**의 S3 호환 오브젝트 스토리지다. 클러스터· 노드·스토리지가 통째로 사라져도 백업본은 남아야 하기 때문이다.
Index ¶
- type Config
- type S3Store
- func (s *S3Store) Delete(ctx context.Context, prefix string) error
- func (s *S3Store) Get(ctx context.Context, key string) (io.ReadCloser, error)
- func (s *S3Store) Preflight(ctx context.Context, requiredBytes int64) error
- func (s *S3Store) Put(ctx context.Context, key string, r io.Reader) (port.PutResult, error)
- func (s *S3Store) Stat(ctx context.Context, key string) (int64, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Store ¶
type S3Store struct {
// contains filtered or unexported fields
}
func (*S3Store) Preflight ¶
Preflight 는 정지 창에 들어가기 전에 목적지를 검사한다.
정지 창을 소비하고도 산출물을 못 만드는 것이 최악의 조합이므로 (§9 F7b·F8), 연결·인증·쓰기 권한을 **멈추기 전에** 확인한다.
Click to show internal directories.
Click to hide internal directories.